-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SolidMechanics.TensorMass] Implement buildStiffnessMatrix for Tetrah…
…edralTensorMassForceField (#4127)
- Loading branch information
Showing
3 changed files
with
81 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
examples/Component/SolidMechanics/TensorMass/TetrahedralTensorMassForceField.scn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<Node name="root"> | ||
<Node name="plugins"> | ||
<RequiredPlugin name="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedConstraint] --> | ||
<RequiredPlugin name="Sofa.Component.Engine.Select"/> <!-- Needed to use components [BoxROI] --> | ||
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [EigenSimplicialLDLT] --> | ||
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [IdentityMapping] --> | ||
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [UniformMass] --> | ||
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] --> | ||
<RequiredPlugin name="Sofa.Component.SolidMechanics.TensorMass"/> <!-- Needed to use components [TetrahedralTensorMassForceField] --> | ||
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] --> | ||
<RequiredPlugin name="Sofa.Component.Topology.Container.Dynamic"/> <!-- Needed to use components [QuadSetGeometryAlgorithms,QuadSetTopologyContainer,QuadSetTopologyModifier,TetrahedronSetGeometryAlgorithms,TetrahedronSetTopologyContainer,TetrahedronSetTopologyModifier] --> | ||
<RequiredPlugin name="Sofa.Component.Topology.Container.Grid"/> <!-- Needed to use components [RegularGridTopology] --> | ||
<RequiredPlugin name="Sofa.Component.Topology.Mapping"/> <!-- Needed to use components [Hexa2QuadTopologicalMapping,Hexa2TetraTopologicalMapping] --> | ||
<RequiredPlugin name="Sofa.Component.Visual"/> <!-- Needed to use components [VisualStyle] --> | ||
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglModel] --> | ||
</Node> | ||
|
||
<VisualStyle displayFlags="showBehaviorModels showForceFields" /> | ||
|
||
<DefaultAnimationLoop name="animationLoop"/> | ||
<DefaultVisualManagerLoop name="visualLoop"/> | ||
|
||
<EulerImplicitSolver name="odesolver" rayleighStiffness="0.1" rayleighMass="0.1" /> | ||
<EigenSimplicialLDLT template="CompressedRowSparseMatrixMat3x3"/> | ||
<MechanicalObject name="DoFs" /> | ||
<UniformMass name="mass" totalMass="320" /> | ||
<RegularGridTopology name="grid" nx="4" ny="4" nz="20" xmin="-9" xmax="-6" ymin="0" ymax="3" zmin="0" zmax="19" /> | ||
<BoxROI name="box" box="-10 -1 -0.0001 -5 4 0.0001"/> | ||
<FixedConstraint indices="@box.indices" /> | ||
|
||
<TetrahedronSetTopologyContainer name="Tetra_topo"/> | ||
<TetrahedronSetTopologyModifier name="Modifier" /> | ||
<TetrahedronSetGeometryAlgorithms template="Vec3" name="GeomAlgo" /> | ||
<Hexa2TetraTopologicalMapping input="@grid" output="@Tetra_topo" /> | ||
<TetrahedralTensorMassForceField name="deformable" youngModulus="100000" poissonRatio="0.4" /> | ||
|
||
<Node name="quads"> | ||
<QuadSetTopologyContainer name="Container" /> | ||
<QuadSetTopologyModifier name="Modifier" /> | ||
<QuadSetGeometryAlgorithms name="GeomAlgo" template="Vec3" /> | ||
<Hexa2QuadTopologicalMapping input="@../grid" output="@Container" /> | ||
<Node name="Visu"> | ||
<OglModel name="Visual" color="yellow" /> | ||
<IdentityMapping input="@../../DoFs" output="@Visual" /> | ||
</Node> | ||
</Node> | ||
</Node> |