Softbody to softbody collision model breaking into each other when force applied #5132
Unanswered
thundermms
asked this question in
Write / Run a simulation
Replies: 1 comment 1 reply
-
Hello ! Many parameters influence this behavior. We can start with the ones with direct influence :
You are using Penality-based constraints which are very weak and doesn't grantee to have no interpenetration at the end of the time step. So for contact with a lot of stress like this this is really not recommended. You should use Lagrangian-based constraints instead. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Description
I am new to SOFA and finite element modeling, and I would love to get some input and opinion from you guys!
Basically I am trying to simulate a human muscle,fat and skin (layered on top of each other as attached in image) All of these have a Tetrahedron .msh, visual and collision model setup.
I am trying to get soft body to soft body collision set up but I am facing an issue where the layers tear into another one if i drag it more than an extent or if i drag it fast. ( as shown in the video).
Is this behaviour because I haven't set up the collision model properly yet or is this an expected outcome due to the Poisson ratio and Youngs modulus of each layer.
I have attached my code as well for reference
Environment
Context
Env vars
python -c "exec( \"import os, sys\nprint('#################')\nprint('--- sys.version ---')\nprint(sys.version)\nprint('--- PATH ---')\ntry:\n print(os.environ['PATH'])\nexcept Exception:\n pass\nprint('--- SOFA_ROOT ---')\ntry:\n print(os.environ['SOFA_ROOT'])\nexcept Exception:\n pass\nprint('--- PYTHONPATH ---')\ntry:\n print(os.environ['PYTHONPATH'])\nexcept Exception:\n pass\nprint('--- sys.path ---')\ntry:\n print(str(sys.path))\nexcept Exception:\n pass\nprint('#################')\" )"
--- sys.version --- 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] --- PATH --- /home/sun/sofa/build/bin:/home/sun/.local/bin:/usr/bin/python3:/usr/local/bin:/home/sun/sofa/build/bin:/home/sun/.local/bin:/usr/bin/python3:/usr/local/bin:/opt/ros/humble/bin:/home/sun/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin --- SOFA_ROOT --- /home/sun/SOFA/v24.06.00:/home/sun/SOFA/v24.06.00: --- PYTHONPATH --- /home/sun/SOFA/v24.06.00/plugins/SofaPython3/lib/python3/site-packages:/home/sun/SOFA/v24.06.00/plugins/SofaPython3/lib/python3/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages --- sys.path --- ['', '/home/sun/SOFA/v24.06.00/plugins/SofaPython3/lib/python3/site-packages', '/opt/ros/humble/lib/python3.10/site-packages', '/opt/ros/humble/local/lib/python3.10/dist-packages', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/sun/.local/lib/python3.10/site-packages', '/home/sun/.local/lib/python3.10/site-packages/rerun_sdk', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages']
WhatsApp.Video.2024-11-18.at.11.42.36.AM.mp4
Beta Was this translation helpful? Give feedback.
All reactions