Skip to content

Commit

Permalink
[Scenes] Update TearingEngine scenes physical parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod committed May 28, 2024
1 parent 7be8cf2 commit d560190
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions scenes/TearingEngine/SquareTissue_01_gravity.scn
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
<TriangleSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" />

<MechanicalObject name="Mo"/>
<DiagonalMass massDensity="10.0" />
<DiagonalMass massDensity="2.0" />

<BoxROI name="FixedSide" box="-0.1 9.9 0.1 10.1 10.1 -0.1" drawBoxes="1" />
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" />
<PlaneForceField normal="0 1 0" d="-20" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="1.0"
step="30" nbFractureMax="40" showFracturePath="0"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
8 changes: 4 additions & 4 deletions scenes/TearingEngine/SquareTissue_02_pressureBorder.scn
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<BoxROI template="Vec3d" name="PulledSide" box="-0.1 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>
<ConstantForceField name="CFF" indices="@PulledSide.indices" forces="0 -200 50" showArrowSize=".01" />
<ConstantForceField name="CFF" indices="@PulledSide.indices" forces="0 -40 10" showArrowSize=".01" />

<TriangularFEMForceField name="FEM" youngModulus="100" poissonRatio="0.3" method="large" computePrincipalStress="true" showStressVector="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="0.3"
step="20" nbFractureMax="40" showFracturePath="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true" showStressVector="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" showSprings="0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>
Expand Down
6 changes: 3 additions & 3 deletions scenes/TearingEngine/SquareTissue_03_centralePressure.scn
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
<!--<BoxROI template="Vec3d" name="PulledSide" box="-0.1 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>-->
<ConstantForceField name="CFF" indices="@PullMiddle.indices" forces="0 -300 0" showArrowSize=".01" />

<TriangularFEMForceField name="FEM" youngModulus="100" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="0.1"
step="20" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
6 changes: 3 additions & 3 deletions scenes/TearingEngine/SquareTissue_04_cornerPressure.scn
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
<BoxROI template="Vec3d" name="PullCorner" box="9.9 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>
<ConstantForceField name="CFF" indices="@PullCorner.indices" forces="0 -160 0" showArrowSize=".02" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="0.2"
step="20" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
10 changes: 5 additions & 5 deletions scenes/TearingEngine/SquareTissue_05_circleHole_gravity.scn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<!--Test case 5: Square tissue mesh has a big circular hole in the middle. Upper border is fixed and only heavy gravity is applied -->

<Node name="root" dt="0.05" showBoundingTree="0" gravity="0 -10 -1">
<Node name="root" dt="0.05" showBoundingTree="0" gravity="0 -9 -1">
<Node name="RequiredPlugins">
<RequiredPlugin name="Sofa.Component.Collision.Detection.Algorithm"/> <!-- Needed to use components [BVHNarrowPhase, BruteForceBroadPhase, DefaultPipeline] -->
<RequiredPlugin name="Sofa.Component.Collision.Detection.Intersection"/> <!-- Needed to use components [MinProximityIntersection] -->
Expand Down Expand Up @@ -43,19 +43,19 @@
<TriangleSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" />

<MechanicalObject name="Mo"/>
<DiagonalMass massDensity="10.0" />
<DiagonalMass massDensity="1.0" />

<BoxROI name="FixedSide" box="-0.1 9.9 0.1 10.1 10.1 -0.1" drawBoxes="1" />
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="1.0"
step="30" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<BoxROI template="Vec3d" name="PulledSide" box="-0.1 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>
<ConstantForceField name="CFF" indices="@PulledSide.indices" forces="0 -100 0" showArrowSize=".01" />
<ConstantForceField name="CFF" indices="@PulledSide.indices" forces="0 -20 0" showArrowSize=".01" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="0.5"
step="20" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
8 changes: 4 additions & 4 deletions scenes/TearingEngine/SquareTissue_07_squareHole_gravity.scn
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
<TriangleSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" />

<MechanicalObject name="Mo"/>
<DiagonalMass massDensity="10.0" />
<DiagonalMass massDensity="1.0" />

<BoxROI name="FixedSide" box="-0.1 9.9 0.1 10.1 10.1 -0.1" drawBoxes="1" />
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="1.0"
step="30" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
8 changes: 4 additions & 4 deletions scenes/TearingEngine/SquareTissue_08_verticalHole_gravity.scn
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
<TriangleSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" />

<MechanicalObject name="Mo"/>
<DiagonalMass massDensity="10.0" />
<DiagonalMass massDensity="1.5" />

<BoxROI name="FixedSide" box="-0.1 9.9 0.1 10.1 10.1 -0.1" drawBoxes="1" />
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="1.0"
step="30" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
8 changes: 4 additions & 4 deletions scenes/TearingEngine/SquareTissue_09_incised_gravity.scn
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
<TriangleSetGeometryAlgorithms name="GeomAlgo" template="Vec3d" />

<MechanicalObject name="Mo"/>
<DiagonalMass massDensity="10.0" />
<DiagonalMass massDensity="1.0" />

<BoxROI name="FixedSide" box="-0.1 9.9 0.1 10.1 10.1 -0.1" drawBoxes="1" />
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="1.0"
step="30" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
<FixedConstraint name="FixedConstraint" indices="@FixedSide.indices" />

<BoxROI template="Vec3d" name="PullCorner" box="9.9 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>
<ConstantForceField name="CFF" indices="@PullCorner.indices" forces="0 -450 0" showArrowSize="0.01" />
<ConstantForceField name="CFF" indices="@PullCorner.indices" forces="0 -450 0" showArrowSize="0.01" />

<TriangularFEMForceField name="FEM" youngModulus="60" poissonRatio="0.3" method="large" computePrincipalStress="1"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

<TriangleCollisionModel />

<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="0.5"
step="20" nbFractureMax="40" showFracturePath="1"/>
<TearingEngine name="TearingEngine" input_position="@Mo.position" stressThreshold="6.0"
step="30" nbFractureMax="40" showFracturePath="1" fractureMaxLength="1.0"/>

<Node >
<OglModel name="Visual" color="red" />
Expand Down
2 changes: 1 addition & 1 deletion scenes/TearingEngine/SquareTissue_11_MiddlePressure .scn
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<!--<BoxROI template="Vec3d" name="PulledSide" box="-0.1 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>-->
<ConstantForceField name="CFF" indices="772" forces="0 -300 0" showArrowSize=".01" />

<TriangularFEMForceField name="FEM" youngModulus="100" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

Expand Down
2 changes: 1 addition & 1 deletion scenes/TearingEngine/SquareTissue_12_MiddlePressure .scn
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<!--<BoxROI template="Vec3d" name="PulledSide" box="-0.1 0.1 0.1 10.1 -0.1 -0.1" drawBoxes="1"/>-->
<ConstantForceField name="CFF" indices="16" forces="0 -300 0" showArrowSize=".01" />

<TriangularFEMForceField name="FEM" youngModulus="100" poissonRatio="0.3" method="large" computePrincipalStress="true" showStressVector="true"/>
<TriangularFEMForceField name="FEM" youngModulus="300" poissonRatio="0.3" method="large" computePrincipalStress="true"/>
<TriangularBendingSprings name="FEM-Bend" stiffness="300" damping="1.0" />
<PlaneForceField normal="0 1 0" d="-30" stiffness="100000" showPlane="1" showPlaneSize="20"/>

Expand Down

0 comments on commit d560190

Please sign in to comment.