Thanks! On Thursday, August 11, 2022 at 6:01:09 PM UTC-4 [email protected] wrote:
> Hello Qihan, > > The functions that could be helpful are ReadCheckpoint(ChSystem* system, > const std::string& filename) and WriteCheckpoint(ChSystem* system, const > std::string& filename). > > Take a look at "demo_MCORE_cratering.cpp" or "demo_VEH_Cosim_WheelRig.cpp" > for example. You can always customize your own checkpoint file in if you > need more information. > > For people using Chrono::GPU, the demo on checkpointing is > demo_GPU_ballcosim.cpp. > > Thank you, > Luning > > On Wednesday, August 10, 2022 at 12:16:18 PM UTC-5 [email protected] > wrote: > >> Hi, >> >> I am going to run two simulations. >> The second one is to continue the first simulation. >> >> So I need to store the information of the last moment of the first >> simulation, and use it as the start status of the second one. >> >> I know I can store all information like position, orientation, velocity, >> etc., and modify the codes to reset the initial status. But this way takes >> too much effort. >> >> So, I am wondering is there an easier way to continue the second >> simulation? >> >> Thanks, >> Qihan >> > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/c085a243-450b-47c5-85e1-796f049be4bfn%40googlegroups.com.
