Hi Yi,

You are right that mesh info is not included in the checkpointing file. I 
thought about this and in the end, I felt that quietly incorporating 
boundary and mesh info into the checkpoint could introduce more troubles 
and surprises to the user than not to. For the current iteration of this 
package, it is what it is.

To pick up the mesh information from where you stop last time, you should 
load the mesh into the simulation exactly like you did in the previous 
simulation, then re-build the system from a checkpointing file, initialize 
it and use *ApplyMeshMotion *to bring the/each meshed object to their 
previous location, then begin the restarted simulation. 

About the arguments you should use for the *ApplyMeshMotion *call, well if 
you used the co-simulation framework then you can get it from the ChBody 
object at the end of the previous simulation, exactly like the 
*ApplyMeshMotion *call at each time step in the Ballcosim demo. If you did 
not use the co-simulation framework then I assume you enforce the mesh 
location/velocity yourself? So you should know where it was at the end of 
the previous simulation right?

I took a look and there seems to be no explicit method to get the mesh 
location/velocity. I guess you don't need it anyway this time, but is it 
true? In any case, that info can be easily queried from 
*tri_params->fam_frame_broad[mesh_id]*,* meshSoup->vel[mesh_id] *and
* meshSoup->omega[mesh_id]*. Let me know if you have further questions.

Thank you,
Ruochun


On Thursday, July 21, 2022 at 10:39:37 AM UTC-5 Yi Zhong wrote:

> Hi Ruochun,
>
> A follow-up on this question. Meshes are also not included in the 
> checkpoint file. When the checkpoint file is loaded, meshes should be 
> reloaded. The position and orientation of meshes may be changed in previous 
> simulations. So when the meshes are reloaded, are the translation and 
> rotation of meshes needed to be set manually? Is there a way to save the 
> meshes as well (saying output meshes as .obj file which can be easily 
> reloaded)?
>
> Best,
> Yi
>
> On Thursday, December 16, 2021 at 12:23:34 AM UTC-7 Ruochun Zhang wrote:
>
>> Hi Yi,
>>
>> Yes. If these entries are not in the checkpoint file, then they will not 
>> be loaded when you read that checkpoint file. You have to manually enter 
>> them each time. The material based model is a new addition and this 
>> behavior seems to be an unfortunate bug.
>>
>> Thank you,
>> Ruochun
>>
>> On Wednesday, December 15, 2021 at 3:53:25 PM UTC-6 Yi Zhong wrote:
>>
>>> Hi,
>>>
>>> I am using the GPU module in Chrono/7.0.0. I noticed that when 
>>> *UseMaterialBasedModel 
>>> *, some simulation parameters such as Young's modulus, and Poisson's 
>>> ratio are not included in the checkpoint file. I would like to make sure 
>>> that I do need to specify these simulation parameters again after I load 
>>> the checkpoint file, right? 
>>>
>>> Best,
>>> Yi
>>>
>>

-- 
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/c1fb3c66-9647-484d-9955-eaf3cfdaf548n%40googlegroups.com.

Reply via email to