Re-shape a body during simulation

10 views
Skip to first unread message

Guan Yu

unread,
Jul 3, 2022, 11:12:20 PMJul 3
to ProjectChrono
Hi all,

I would like to ask if I can re-shape a body during a simulation, for example, a bar that has the length becoming shorter based on a constant rate? Or, can I change the density of a body during a simulation?

If these are possible, what would be a proper way to realize?

Thank you in advance,
Best,
Yu

Radu Serban

unread,
Jul 4, 2022, 2:48:05 AMJul 4
to ProjectChrono

Yu,

 

Are you interested in rigid or flexible bodies?

 

Assuming rigid bodies, keep in mind that “shape” is relevant only if you have collisions. If you do not, you can simply update the body mass and inertia inside your simulation loop.  If you do have contacts, you could also change the collision shape during simulation, but that will affect more computational cost.

 

--Radu

--
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 projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/c25da995-f7dd-491a-9f81-651fc5adc213n%40googlegroups.com.

Guan Yu

unread,
Jul 4, 2022, 4:31:06 AMJul 4
to ProjectChrono
Thank you a lot for the explanation!

Best,
Yu

Reply all
Reply to author
Forward
0 new messages