File: RegularGridSpringForceField.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 (116 lines) | stat: -rw-r--r-- 4,994 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
107
108
109
110
111
112
113
114
115
116
<Node name="root"  dt="0.02" showBehaviorModels="0" showCollisionModels="0" showMappings="0" showForceFields="0">
	<Object type="CollisionPipeline" depth="6" verbose="0" draw="0"/>
	<Object type="BruteForceDetection" name="N2" />
	<Object type="NewProximityIntersection" name="Proximity" alarmDistance="0.3" contactDistance="0.2" />
	<Object type="CollisionResponse" name="Response" response="default" />
	<Object type="CollisionGroup" name="Group" />
	<Node name="Chain">
		<Node name="TorusFixed">
        		<Object type="MeshLoader" name="meshLoader" filename="mesh/torus2_for_collision.obj"/>
			<Object type="Mesh" />
			<Object type="MechanicalObject" />
			<Object type="Triangle" simulated="0" moving="0" />
			<Object type="OglModel" name="Visual" fileMesh="mesh/torus2.obj" color="gray" />
		</Node>
		<Node name="TorusFFD1">
		        <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" translation="2.5 0 0" />
			<Object type="UniformMass" totalmass="5" />
			<Object type="RegularGrid"
					nx="6" ny="2" nz="5"
					xmin="-2.5" xmax="2.5"
					ymin="-0.5" ymax="0.5"
					zmin="-2" zmax="2"
				/>
			<Object type="RegularGridSpringForceField" name="Springs" stiffness="200" damping="2" />
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/torus.obj" dx="2.5"  color="yellow" />
				<Object type="BarycentricMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
        		        <Object type="MeshLoader" name="meshLoader"  filename="mesh/torus_for_collision.obj"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" translation="2.5 0 0" />
				<Object type="Triangle" />
				<Object type="BarycentricMapping" />
			</Node>
		</Node>
		<Node name="TorusFFD2">
			<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" dx="5" />
			<Object type="UniformMass" totalmass="5" />
			<Object type="RegularGrid"
					nx="6" ny="5" nz="2"
					xmin="-2.5" xmax="2.5"
					ymin="-2" ymax="2"
					zmin="-0.5" zmax="0.5"
				/>
			<Object type="RegularGridSpringForceField" name="Springs" stiffness="200" damping="2" />
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/torus2.obj" dx="5" color="yellow" />
				<Object type="BarycentricMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
	        		<Object type="MeshLoader" name="meshLoader" filename="mesh/torus2_for_collision.obj"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" dx="5"/>
				<Object type="Triangle" />
				<Object type="BarycentricMapping" />
			</Node>
		</Node>
		<Node name="TorusFFD3">
	 	        <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" dx="7.5" />
			<Object type="UniformMass" totalmass="5" />
			<Object type="RegularGrid"
					nx="6" ny="2" nz="5"
					xmin="-2.5" xmax="2.5"
					ymin="-0.5" ymax="0.5"
					zmin="-2" zmax="2"
				/>
			<Object type="RegularGridSpringForceField" name="Springs" stiffness="200" damping="2" />
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/torus.obj"  dx="7.5" color="yellow" />
				<Object type="BarycentricMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
        		        <Object type="MeshLoader" name="meshLoader"  filename="mesh/torus_for_collision.obj"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" dx="7.5" />
				<Object type="Triangle" />
				<Object type="BarycentricMapping" />
			</Node>
		</Node>
		<Node name="TorusFFD4">
			<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" dx="10" />
			<Object type="UniformMass" totalmass="5" />
			<Object type="RegularGrid"
					nx="6" ny="5" nz="2"
					xmin="-2.5" xmax="2.5"
					ymin="-2" ymax="2"
					zmin="-0.5" zmax="0.5"
				/>
			<Object type="RegularGridSpringForceField" name="Springs" stiffness="200" damping="2" />
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/torus2.obj" dx="10" color="yellow" />
				<Object type="BarycentricMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
	        		<Object type="MeshLoader" name="meshLoader" filename="mesh/torus2_for_collision.obj"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" dx="10" />
				<Object type="Triangle" />
				<Object type="BarycentricMapping" />
			</Node>
		</Node>
	</Node>
</Node>