Re: [chrono] Re: Writing Chrono::System to file

2024-06-24 Thread June Knauth
Hey everyone, this is really helpful. Thanks for the info! June On Fri, Jun 21, 2024 at 3:11 PM chao peng wrote: > Hi, > > Just complemented another point. You might also need to Gather and Scatter > the acceleration and Lagrange multipliers if you want to recover the system > state exactly as

[chrono] Re: Writing Chrono::System to file

2024-06-21 Thread chao peng
Hi, Just complemented another point. You might also need to Gather and Scatter the acceleration and Lagrange multipliers if you want to recover the system state exactly as the snapshot investigated. Something like: auto state_der2 = chrono_types::make_shared(system.GetNumCoordsVelLeve

[chrono] Re: Writing Chrono::System to file

2024-06-20 Thread Dario Mangoni
BTW, if you just want to load/save the state of the system, without the model itself, you can come up with some easier yet not complete, solution of using ChSystem::StateGather and ChSystem::StateScatter. Something like: auto state = chrono_types::make_shared(system.GetNumCoordsPosLeve

[chrono] Re: Writing Chrono::System to file

2024-06-20 Thread Dario Mangoni
Hi, yes there is. You may find more references by searching for the "archive" keyword instead of serialization. *demo_CH_archive *is a starting point, but it's probably showing many more features that just s