File: TutorialTopologyVolumeDifferentMesh.scn

package info (click to toggle)
sofa-framework 1.0~beta4-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88,820 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (60 lines) | stat: -rw-r--r-- 3,703 bytes parent folder | download | duplicates (5)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" ?>
<!-- See https://wiki.sofa-framework.org/wiki/TutorialTopologyVolumeMesh -->
<Node name="root" gravity="0 -9.86 0" dt="0.05" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="0">
  <!-- Basic Components to perform the collision detection -->
  <DefaultPipeline name="DefaultCollisionPipeline" verbose="0"/>
  <BruteForceDetection name="Detection"/>
  <MinProximityIntersection name="Proximity" alarmDistance="0.8" contactDistance="0.5"/>
  <DefaultContactManager name="Response"/>
  <DefaultCollisionGroupManager name="Group"/>

  <Node name="Cylinder Static Mesh">
    <MechanicalObject name="DOFs" template="Vec3d" translation="0 0 0" rotation="0 90 0" scale="10"/>
    <FixedConstraint name="FixedConstraint" template="Vec3d" indices="0"/>
    <UniformMass name="Mass" template="Vec3d" totalmass="50"/>
    <EulerImplicitSolver name="cg_odesolver" printLog="0"/>
    <CGLinearSolver name="linear solver" template="GraphScattered" iterations="25" tolerance="1e-09" threshold="1e-09"/>

    <MeshTopology name="Static Mesh" fileTopology="mesh/cylinder.msh" />
    <MeshSpringForceField name="FEM-Bend" template="Vec3d"/>
    <TetrahedronFEMForceField name="FEM" template="Vec3d" method="polar" poissonRatio="0.3" youngModulus="1116" assembling="0"/>

    <TetrahedronModel name="Models"/>
    <OglModel name="Visual" template="ExtVec3f" color="red"/>
    <IdentityMapping name="Mapping" template="Mapping&lt;Vec3d,ExtVec3f&gt;" object1=".." object2="Visual"/>
  </Node>

  <Node name="Cylinder Regular Mesh">
    <MechanicalObject name="DOFs" template="Vec3d" translation="0 0 -10" rotation="0 0 -90"/>
    <FixedConstraint name="FixedConstraint" template="Vec3d" indices="54 44 45 55" drawSize="0"/>
    <UniformMass name="Mass" template="Vec3d" totalmass="500"/>
    <EulerImplicitSolver name="cg_odesolver" printLog="0"/>
    <CGLinearSolver name="linear solver" template="GraphScattered" iterations="25" tolerance="1e-09" threshold="1e-09"/>

    <CylinderGridTopology name="Regular Mesh" n="10 10 10" axis="0 1 0" radius="2" length="10"/>
    <MeshSpringForceField name="FEM-Bend" template="Vec3d"/>
    <TetrahedronFEMForceField name="FEM" template="Vec3d" method="polar" poissonRatio="0.3" youngModulus="1116" assembling="0"/>

    <OglModel name="Visual" template="ExtVec3f" color="blue"/>
    <IdentityMapping name="Mapping" template="Mapping&lt;Vec3d,ExtVec3f&gt;" object1=".." object2="Visual"/>
  </Node>

  <Node name="Cylinder Dynamic Mesh">
    <MechanicalObject name="DOFs" template="Vec3d" translation="0 0 10" rotation="0 90 0" scale="10"/>
    <FixedConstraint name="FixedConstraint" template="Vec3d" indices="0"/>
    <UniformMass name="Mass" template="Vec3d" totalmass="50"/>
    <EulerImplicitSolver name="cg_odesolver" printLog="0"/>
    <CGLinearSolver name="linear solver" template="GraphScattered" iterations="25" tolerance="1e-09" threshold="1e-09"/>
    
    <TetrahedronSetTopologyContainer name="Topology Container" fileTopology="mesh/cylinder.msh"  drawTetras="0"/>
    <TetrahedronSetTopologyModifier name="Topology Modifier"/>
    <TetrahedronSetTopologyAlgorithms name="Topology Algorithms" template="Vec3d"/>
    <TetrahedronSetGeometryAlgorithms name="Geometry Algorithms" template="Vec3d"/>
    <MeshSpringForceField name="FEM-Bend" template="Vec3d"/>
    <TetrahedronFEMForceField name="FEM" template="Vec3d" method="polar" poissonRatio="0.3" youngModulus="1116" assembling="0"/>

    <TetrahedronModel name="Models"/>
    <OglModel name="Visual" template="ExtVec3f" color="green"/>
    <IdentityMapping name="Mapping" template="Mapping&lt;Vec3d,ExtVec3f&gt;" object1=".." object2="Visual"/>
  </Node>
</Node>