Inspector returning the ID

24 views
Skip to first unread message

Yves ROBERT

unread,
Feb 22, 2024, 12:09:20 PM2/22/24
to ProjectChrono
Hello,

I would like to know how I could add an inspector in DEM-Engine that would return the ID of the clump instead of the value itself. For instance, while CreateInspector("clump_max_z") would return the maximum z value for all clumps, I would like to get the ID of the clump which has the maximum z, or even the object itself, for further manipulation.

I am open to other ideas which would not require to extract each position in Python separately, which seems inefficient.

Thank you!

Ruochun Zhang

unread,
Feb 24, 2024, 7:43:24 AM2/24/24
to ProjectChrono
Hi Yves,

Inspectors cannot do that at this moment. You will probably need to use a tracker to inspect this on the host. You can try doing it less frequently to save time.

I do have plans to add custom query functionalities to allow that. It is going to take some time.

Ruochun

Reply all
Reply to author
Forward
0 new messages