File: TriangleFEMForceField.scn

package info (click to toggle)
sofa-framework 1.0~beta4-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 88,828 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (72 lines) | stat: -rw-r--r-- 2,720 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
61
62
63
64
65
66
67
68
69
70
71
72
<!-- Mechanical MassSpring Group Basic Example -->
<Node name="root" gravity="0 0 1"  dt="0.05" showBehaviorModels="1" showCollisionModels="1" showMappings="1" showForceFields="1">

  <Object type="CollisionPipeline" verbose="0" name="CollisionPipeline"/>
  <Object type="BruteForceDetection" name="N2" />
  <Object type="CollisionResponse" response="default" name="collision response"/>

	<Node name="M1"> 	                   
 	        <Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
		<Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />

		<Object type="MechanicalObject" />
		<Object type="UniformMass" mass="0.1" />
		<Object type="RegularGrid"
			nx="3" ny="3" nz="1"
			xmin="10" xmax="19"
			ymin="0" ymax="9"
			zmin="4" zmax="5"
		/>
		<Object type="FixedConstraint" indices="0 8"/>
		<Object type="TriangleFEMForceField" name="FEM1" youngModulus="5000" poissonRatio="0.3" method="large"/>
		<Object type="Triangle" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" color="green"/>
			<Object type="IdentityMapping" object1="../.." object2="Visual"/>
		</Node>	
		
	</Node>

	<Node name="M2">
 	        <Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
		<Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />

		<Object type="MechanicalObject" />
		<Object type="UniformMass" mass="0.1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="1"
			xmin="20" xmax="29"
			ymin="0" ymax="9"
			zmin="8" zmax="9"
		/>
		<Object type="FixedConstraint" indices="0 15"/>
		<Object type="TriangleFEMForceField" name="FEM2" youngModulus="5000" poissonRatio="0.3" method="large"/>
		<Object type="Triangle" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" color="blue"/>
			<Object type="IdentityMapping" object1="../.." object2="Visual"/>
		</Node>		
		
	</Node>

	<Node name="M3">
 	        <Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
		<Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />

		<Object type="MechanicalObject" />
		<Object type="UniformMass" mass="0.1" />
		<Object type="RegularGrid"
			nx="10" ny="10" nz="1"
			xmin="30" xmax="39"
			ymin="0" ymax="9"
			zmin="12" zmax="13"
		/>
		<Object type="FixedConstraint" indices="0 9 99"/>
		<Object type="TriangleFEMForceField" name="FEM3" youngModulus="5000" poissonRatio="0.3" method="large"/>
		<Object type="Triangle" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" color="yellow"/>
			<Object type="IdentityMapping" object1="../.." object2="Visual"/>
		</Node>
	</Node>
</Node>