Hi Marouane,

Stock output methods *WriteSphereFile *and *WriteClumpFile *cannot add 
contact information to the file. You can instead consider using the 
dedicated method *WriteContactFile*. It will write the information of all 
current contacts (geometries involved, contact point, force 
magnitude/direction, etc., and you control what goes to the output by 
*SetContactOutputContent*) to a file. Then you post-process the file to get 
the "contact map" you want. *DEMdemo_ContactChain *is an example that uses 
this method. If you have trouble interpreting the output contact file, 
please post on the forum.

I'd like to add that if you just need the contact pairs (IDs) and the *total 
*force each clump experiences as a result of all the contacts surrounding 
it, there's another approach. *DEMdemo_Indentation* uses *GetClumpContacts *to 
query the IDs of the owners that are in contact with each clump, then use 
this information to build a "contact map." Then the *total *force of each 
clump experience can be extracted via trackers. The caveat, as I mentioned, 
is you cannot easily get *each *force pair concerning a clump because it's 
stored in a different way in memory to improve efficiency.

Thank you,
Ruochun

On Saturday, July 20, 2024 at 12:51:03 AM UTC+8 ermaro...@gmail.com wrote:

> Hello,
>
> I'm currently working with the DEM-Engine for simulating granular flow, 
> similar to the scenario in DEMO_Hopper_Cylinder_sphere. In this demo, the 
> generated CSV files include data on position, radius, velocity, and family 
> for each particle. What i want to do is to add contact forces :  
> Specifically, for any given particle (let's call it Particle A), I want to 
> identify all particles in contact with it, record the force exerted by each 
> contacting particle, and include this information on the same dedicated 
> line of the CSV file for Particle A. Is there an existing method or 
> approach  that would allow me to achieve this? 
>
> Thank you!
>
> Marouane ELBISSOURI
>

-- 
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 projectchrono+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/9f6f4fb8-391b-4a7b-85b5-61429a0c185bn%40googlegroups.com.

Reply via email to