-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cylinder_EigenSimplicialLDLT.scn
32 lines (26 loc) · 2.03 KB
/
Cylinder_EigenSimplicialLDLT.scn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<Node name="root" gravity="-1.8 0 100" dt="0.001">
<RequiredPlugin name="EigenLinearSolvers"/> <!-- Needed to use components [EigenSimplicialLDLT] -->
<RequiredPlugin name="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedConstraint] -->
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [BarycentricMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [MeshMatrixMass] -->
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
<RequiredPlugin name="Sofa.Component.SolidMechanics.FEM.Elastic"/> <!-- Needed to use components [TetrahedronFEMForceField] -->
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglModel] -->
<Node name="DeformableObject">
<EulerImplicitSolver name="odeImplicitSolver" />
<EigenSimplicialLDLT template="CompressedRowSparseMatrixMat3x3d" ordering="Metis"/>
<MeshGmshLoader name="loader" filename="mesh/truthcylinder1.msh" />
<TetrahedronSetTopologyContainer src="@loader" name="topologyContainer"/>
<TetrahedronSetGeometryAlgorithms name="geomAlgo"/>
<MechanicalObject name="dofs" src="@loader"/>
<MeshMatrixMass totalMass="15" topology="@topologyContainer"/>
<FixedConstraint indices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 268 269 270 271 343 345" />
<TetrahedronFEMForceField name="FEM" youngModulus="1000" poissonRatio="0.49" method="large" />
<Node>
<MeshOBJLoader name="meshLoader_0" filename="mesh/truthcylinder1.obj" handleSeams="0" />
<OglModel name="Visual" src="@meshLoader_0" color="red"/>
<BarycentricMapping input="@../dofs" output="@Visual" />
</Node>
</Node>
</Node>