File: tutorial4FEM.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 (106 lines) | stat: -rw-r--r-- 4,780 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<Node name="root"  dt="0.03333" showBehaviorModels="0" showCollisionModels="0" showMappings="0" showForceFields="0">
	<Object type="CollisionPipeline" verbose="0" depth="10" draw="0"/>
	<Object type="BruteForceDetection" name="N2" />
	<Object type="MinProximityIntersection" name="Proximity" alarmDistance="0.75" contactDistance="0.5" />
	<Object type="CollisionResponse" name="Response" response="default" />
	<Object type="CollisionGroup" name="Group" />
	<Node name="M1">
		<Object type="EulerImplicit" />
		<Object type="CGLinearSolver" iterations="25" tol="0.01" threshold="0.000001" />
		<Object type="MechanicalObject" dx="0" dy="20" dz="29"/>
		<Object type="UniformMass" totalmass="10"/>
		<Object type="RegularGrid"
			nx="6" ny="5" nz="2"
			xmin="-7.5" xmax="7.5"
			ymin="-6" ymax="6"
			zmin="-1.75" zmax="1.75"
			/>
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="500" poissonRatio="0.3" method="polar"/>
		<Node name="Visu">
			<Object type="OglModel" name="Visual" filename="mesh/torus2_scale3.obj" color="blue" dx="0" dy="20" dz="29"/>
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>
		<Node name="Surf">
			<Object type="MeshLoader"  filename="mesh/torus2_scale3.obj" />
			<Object type="Mesh"  />
			<Object type="MechanicalObject" dx="0" dy="20" dz="29"/>
			<Object type="Triangle" />
			<Object type="Line" />
			<Object type="Point" />
			<Object type="BarycentricMapping" />
		</Node>
	</Node>
	<Node name="M1">
		<Object type="EulerImplicit" />
		<Object type="CGLinearSolver" iterations="25" tol="0.01" threshold="0.000001" />
		<Object type="MechanicalObject" dx="20" dy="20" dz="29"/>
		<Object type="UniformMass" totalmass="10"/>
		<Object type="RegularGrid"
			nx="6" ny="5" nz="3"
			xmin="-11" xmax="11"
			ymin="-7" ymax="7"
			zmin="-4" zmax="4"
			/>
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="500" poissonRatio="0.3" method="polar"/>
		<Node name="Visu">
			<Object type="OglModel" name="Visual" filename="mesh/dragon.obj" color="red" dx="20" dy="20" dz="29"/>
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>
		<Node name="Surf">
			<Object type="MeshLoader"  filename="mesh/dragon.obj" />
			<Object type="Mesh"  />
			<Object type="MechanicalObject" dx="20" dy="20" dz="29"/>
			<Object type="Triangle" />
			<Object type="Line" />
			<Object type="Point" />
			<Object type="BarycentricMapping" />
		</Node>
	</Node>
	<Node name="M1">
		<Object type="EulerImplicit" />
		<Object type="CGLinearSolver" iterations="25" tol="0.01" threshold="0.000001" />
		<Object type="MechanicalObject" dx="-20" dy="20" dz="29"/>
		<Object type="UniformMass" totalmass="10"/>
		<Object type="RegularGrid"
			nx="6" ny="3" nz="5"
			xmin="-10" xmax="8"
			ymin="-3" ymax="2.5"
			zmin="-7" zmax="7"
			/>
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="500" poissonRatio="0.3" method="polar"/>
		<Node name="Visu1">
			<Object type="OglModel" name="VisualBody" filename="mesh/frog_body.obj" normals="0" color="0.17 0.70 0.05" dx="-20" dy="20" dz="29"/>
			<Object type="BarycentricMapping" object1="../.." object2="VisualBody" />
		</Node>
		<Node name="Visu2">
			<Object type="OglModel" name="VisualEyes" filename="mesh/frog_eyes.obj" normals="0" color="0.04 0.19 0.52" dx="-20" dy="20" dz="29"/>
			<Object type="BarycentricMapping" object1="../.." object2="VisualEyes" />
		</Node>
		<Node name="Visu3">
			<Object type="OglModel" name="VisualEyebrows" filename="mesh/frog_eyebrows.obj" normals="0" color="0.44 0.43 0.00" dx="-20" dy="20" dz="29"/>
			<Object type="BarycentricMapping" object1="../.." object2="VisualEyebrows" />
		</Node>
		<Node name="Visu4">
			<Object type="OglModel" name="VisualLips" filename="mesh/frog_lips.obj" normals="0" color="0.47 0.25 0.03" dx="-20" dy="20" dz="29"/>
			<Object type="BarycentricMapping" object1="../.." object2="VisualLips" />
		</Node>
		<Node name="Surf">
			<Object type="MeshLoader"  filename="mesh/frog-push25.obj" />
			<Object type="Mesh" />
			<Object type="MechanicalObject" dx="-20" dy="20" dz="29"/>
			<Object type="Triangle" />
			<Object type="Line" />
			<Object type="Point" />
			<Object type="BarycentricMapping" />
		</Node>
	</Node>
	<Node name="Floor">
		<Object type="MeshLoader"  filename="mesh/floor2b.obj" />
		<Object type="Mesh"  />
		<Object type="MechanicalObject" dy="-10.25" scale="0.5" />
		<Object type="Triangle" name="Floor" simulated="0" moving="0" />
		<Object type="Line" name="Floor" simulated="0" moving="0" />
		<Object type="Point" name="Floor" simulated="0" moving="0" />
		<Object type="OglModel" name="FloorV" filename="mesh/floor2b.obj" scale="0.5" notexturename="textures/floor.png" color="gray" dy="-10" />
	</Node>
</Node>