Organ simulation gets slow when fixed constraints are removed #4731
Unanswered
yangwxb
asked this question in
Write / Run a simulation
Replies: 2 comments 8 replies
-
What do you mean by "constraints disappear" ? |
Beta Was this translation helpful? Give feedback.
4 replies
-
This is my script: <Node name="xuanrendai">
<EulerImplicitSolver name="EulerImplicit" rayleighStiffness="0.1" rayleighMass="0.15" />
<CGLinearSolver name="CG Solver2" iterations="25" tolerance="1e-9" threshold="1e-25"/>
<MeshGmshLoader filename="D:\unity\CataractSurgery\Assets\SofaUnity\Scenes\SofaScenes\mesh\XuanRenD.msh" name="loader" scale3d="1 1 1"/>
<MechanicalObject src="@loader" name="gong" rotation="-90 0 0" translation ="0 0.01 0"/>
<!-- <FixedConstraint name="FixedConstraint" indices="157 130 153 244 227 209 192 174"/> -->
<TetrahedronSetTopologyContainer name="Tetra_topo" position="@gong.position" src="@loader"/>
<TetrahedronSetTopologyModifier name="Modifier" />
<TetrahedronSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" drawTetrahedra="0" drawScaleTetrahedra="0.8"/>
<!-- <UniformMass totalMass="1"/> -->
<DiagonalMass massDensity="10" />
<TetrahedralCorotationalFEMForceField name="FEM" youngModulus="3000000" poissonRatio="0.3" method="large" />
<UncoupledConstraintCorrection useOdeSolverIntegrationFactors="0"/>
<Node name="Surface">
<TriangleSetTopologyContainer name="Container"/>
<TriangleSetTopologyModifier name="Modifier" />
<TriangleSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" drawTriangles="0"/>
<Tetra2TriangleTopologicalMapping input="@../Tetra_topo" output="@Container" />
<TriangularFEMForceField name="FEM" youngModulus="10000" poissonRatio="0.3" method="large" />
<TriangularBendingSprings name="FEM-Bend" stiffness="50000" damping="1000.0" />
<TriangleCollisionModel name="triangleCol" bothSide="true" group="1" tags="CarvingSurface" />
<LineCollisionModel name='edgeCol' group="1" tags="CarvingSurface" />
<PointCollisionModel name="pointCol" group="1" tags="CarvingSurface" />
<Node name="Visua1">
<OglModel name="Visualmode1" color = "red"/>
<IdentityMapping input="@../../gong" output="@Visualmode1" />
</Node>
</Node>
</Node> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am now using sofa to do a simulation of software organization, I use fixed constraints to fix it in the scene, when the constraints disappear, I find that it moves very slowly, is there any way to improve it?
Beta Was this translation helpful? Give feedback.
All reactions