Modifyng liver example #2703
-
Starting my SOFA testing trying to modify the liver example. Created new version of the liver sim mesh with 40k tet liver.zip and just substituting into the mesh directory to the original one is getting loaded and working. I have some questions
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, I worked on a multithreaded version of In the liver scene, there are no collision mesh. If you added one on your own simulation, you can use any surface mesh matching the surface of your tets. The force field If you start cutting, it will slow down your simulation for sure. I let someone else answer on how to cut a volume mesh. |
Beta Was this translation helpful? Give feedback.
-
@hugtalbot sorry for not answering, got caught in other priorities this week and can return on the topic only next week at best. |
Beta Was this translation helpful? Give feedback.
Hi,
I worked on a multithreaded version of
HexahedronFEMForceField
(https://github.com/sofa-framework/sofa/blob/master/applications/plugins/MultiThreading/src/MultiThreading/ParallelHexahedronFEMForceField.h). I wanted to do the same for tets, but never found the time.In the liver scene, there are no collision mesh. If you added one on your own simulation, you can use any surface mesh matching the surface of your tets.
The force field
TetrahedronFEMForceField
is available in CUDA. See the example https://github.com/sofa-framework/sofa/blob/master/applications/plugins/SofaCUDA/examples/liver-CUDA.scn which is actually the liver scene setup with CUDA. On my laptop (NVIDIA RTX A3000), I hav…