How to apply displacement to specific nodes of a TetrahedralMesh? #5179
-
Hello, I want to apply displacements (which can also be seen as external forces) to some specific 3D points(with their indices provided) of a Tetrahedral Mesh and model the entire Tetrahedral Mesh as a HyperElastic FEM Model, such as the ones listed here: tetrahedronhyperelasticityfemforcefield The goal is to set the target positions for the deformation of these 3D points and obtain the deformed model. The displacement vectors are shown in the figure below. Here are my questions:
The .scn file and .vtk file I’m using are available in the google drive. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello This is fairly easy to do. You can use In this example all of the objects are simulated, but one of the two inputed object can be only a node containing a Tell me how it goes ! |
Beta Was this translation helpful? Give feedback.
Hello
This is fairly easy to do. You can use
BilateralLagrangianConstraint
to impose the position of a subset of points of the model. See here an example : https://github.com/sofa-framework/sofa/blob/master/examples/Component/Constraint/Lagrangian/BilateralLagrangianConstraint_NNCG.scnIn this example all of the objects are simulated, but one of the two inputed object can be only a node containing a
MechanicalState
that contains the target points without any solvers of mechanics attached. Make sure to put this node in the rootNode, not as a child of any of the node of your liver.Tell me how it goes !