Deformable liver on flat surface with gravity #5393
Replies: 2 comments 2 replies
-
|
Hi @LichtiL Welcome on the SOFA forum! In general, when you have multiple colliding objects, it is advised to use Lagrangian multipliers to solve the constraint/contact problem. About the gravity, just know that it is computed using the gravitational acceleration global to the scene and the mass component specified for each object. I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am new to SOFA and I would like to model and simulate a deformable liver which falls onto a flat surface/floor/table and then stays there.
For that I have a created a volumetric mesh of the liver and added a floor to the simulation. I also inserted a simple sphere to collide with the liver and with the floor.
In my current simulation the sphere collides and bounces off the liver and the floor as intended, but I have encountered some problems on which I am stuck on:
The liver does not bounce off the floor, it just goes straight through. (See screenshot)

It seems like the applied gravity acts like a normal force on each of the nodes of the liver model separately rather than on the volumetric mesh as a whole. (See screenshot with fixed constraints on some nodes of the liver mesh)

It would also be nice if the surface could be rigid & not effected by gravity.
Attached you can find my code and the volumetric mesh that I am using. Thanks to any help in advance!
LiverFloorGravity.zip
Beta Was this translation helpful? Give feedback.
All reactions