File: TutorialTopologyHexa2QuadTopologicalMapping.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 (39 lines) | stat: -rw-r--r-- 2,087 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
<?xml version="1.0" ?>
<!-- See https://wiki.sofa-framework.org/wiki/TutorialTopologyVolumeToSurfaceTopologicalMapping -->
<Node 	name="root" gravity="0 -9.81 1" dt="0.05" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="0" >
  <!-- Basic Components to perform the collision detection -->
  <DefaultPipeline name="DefaultCollisionPipeline" depth="6"/>
  <BruteForceDetection name="Detection"/>
  <MinProximityIntersection name="Proximity" alarmDistance="0.8" contactDistance="0.5"/>
  <DefaultContactManager name="Response"/>
  <DefaultCollisionGroupManager name="Group"/>

  <Node name="Cube">
    <EulerImplicitSolver name="cg_odesolver" printLog="0"/>
    <CGLinearSolver template="GraphScattered" name="linear solver" iterations="25" tolerance="1e-09" threshold="1e-09"/>
    <MechanicalObject template="Vec3d" name="Hexa"/>
    <UniformMass template="Vec3d" name="Mass" mass="0.25"/>

    <RegularGridTopology name="grid" n="6 6 6" min="-10 -10 -10" max="10 10 10" p0="-10 -10 -10"/>
    <RegularGridSpringForceField template="Vec3d" name="FEM-bend"/>
    <HexahedronFEMForceField name="FEM" template="Vec3d"/>    
    <FixedConstraint template="Vec3d" name="Fixed Dofs" indices="0 5 180 185" drawSize="0"/>
    
    <Node name="Q">
      <QuadSetTopologyContainer name="Container"/>
      <QuadSetTopologyModifier name="Modifier"/>
      <QuadSetTopologyAlgorithms template="Vec3d" name="TopoAlgo"/>
      <QuadSetGeometryAlgorithms template="Vec3d" name="GeomAlgo"/>
	
      <Hexa2QuadTopologicalMapping name="default6" object1="../../grid" object2="Container"/>
      <QuadularBendingSprings template="Vec3d" name="FEM-Bend" stiffness="3000" damping="1"/>
      <TriangleModel name="default7"/>
      
      <Node name="Visu">
	<OglModel template="ExtVec3f" name="Visual" material="Default Diffuse 1 0 0 1 1 Ambient 1 0 0 0.2 1 Specular 0 0 0 1 1 Emissive 0 0 0 1 1 Shininess 0 45"/>
	<IdentityMapping template="Mapping&lt;Vec3d,ExtVec3f&gt;" name="default8" object1="../../../Hexa" object2="Visual"/>
      </Node>
    </Node>
  </Node>

</Node>