Hi Mohammad,

You should in your script set the output flag such that this information is 
outputted. The flag is *FORCE_COMPONENTS*, so the command should look 
like...
*gpu_sys.SetParticleOutputFlags(ABSV | **FORCE_COMPONENTS**);*

Now that you mentioned it, I found no demos is actually using this flag. 
Maybe it should be changed... Note this flag would give you the total 
contact force each particle experiences. But if it's the contact force of 
each contact pair that you are looking for, you'd have to do something 
different.

Thank you,
Ruochun

On Sunday, October 16, 2022 at 2:48:33 AM UTC-5 [email protected] wrote:

> Hi, 
>
> I am trying to obtain the forces the particles experience in my simulation 
> as a CSV file. I am using the GPU module. I have looked and found that I 
> can possibly use the WriteCsvParticles function that is capable of doing 
> that. However, it seems that this is a protected function and can not be 
> accessed. Is there another way that I can obtain the forces on all the 
> particles in the system? 
>
> Thank you so much, 
>

-- 
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/19b1f990-ddff-4883-b7e0-76a0fbb49669n%40googlegroups.com.

Reply via email to