File: RigidRigidMapping.scn

package info (click to toggle)
sofa-framework 1.0~beta4-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 88,688 kB
  • ctags: 27,205
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 67
file content (91 lines) | stat: -rw-r--r-- 4,007 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
<Node 	animate="0"
	dt="0.01"
	gravity="0 -9.81 0"
	multiThreadSimulation="0"
	name="root"
	showBehaviorModels="1"
	showBoundingCollisionModels="0"
	showCollisionModels="1"
	showForceFields="1"
	showInteractionForceFields="1"
	showMappings="0"
	showMechanicalMappings="1"
	showNormals="0"
	showVisualModels="1"
	showWireFrame="0"
	time="0"
>
	<Node 		animate="0"
		dt="0.01"
		gravity="0 -9.81 0"
		multiThreadSimulation="0"
		name="pendulum"
		showBehaviorModels="1"
		showBoundingCollisionModels="0"
		showCollisionModels="1"
		showForceFields="1"
		showInteractionForceFields="1"
		showMappings="0"
		showMechanicalMappings="1"
		showNormals="0"
		showVisualModels="1"
		showWireFrame="0"
		time="0"
	>

		<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" template="Rigid"
			name="DOFs"
			position="0 0 0 0 0 0 1 1 0 0 0 0 0 1 3 0 0 0 0 0 1 5 0 0 0 0 0 1 7 0 0 0 0 0 1 9 0 0 0 0 0 1 11 0 0 0 0 0 1 13 0 0 0 0 0 1 15 0 0 0 0 0 1 17 0 0 0 0 0 1 19 0 0 0 0 0 1"
			velocity="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
			/>
		<Object type="UniformMass" template="Rigid"
			totalmass="10"
			name="mass"
			/>
		<Object type="FixedConstraint" template="Rigid"
			indices="10"
			name="fixOrigin"
			/>
		<Node 			animate="0"
			dt="0.01"
			gravity="0 -9.81 0"
			multiThreadSimulation="0"
			name="segmentsNode"
			showBehaviorModels="1"
			showBoundingCollisionModels="0"
			showCollisionModels="1"
			showForceFields="1"
			showInteractionForceFields="1"
			showMappings="0"
			showMechanicalMappings="1"
			showNormals="0"
			showVisualModels="1"
			showWireFrame="0"
			time="0"
		>
			<Object type="MechanicalObject" template="Rigid"
				name="attaches"
				position="0 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214 -1 0 0 -0.707214 0 0 0.707214 1 0 0 -0.707214 0 0 0.707214"
				velocity="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
				/>
			<Object type="RigidRigidMapping"
				repartition="1 2 2 2 2 2 2 2 2 2 2"
				/>
			<Object type="JointSpringForceField" template="Rigid"
				name="joint springs"
				spring="BEGIN_SPRING 0 1    FREE_AXIS 0 0 0 0 0 1  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 2 3    FREE_AXIS 0 0 0 0 0 1  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 4 5    FREE_AXIS 0 0 0 0 0 1  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 6 7    FREE_AXIS 0 0 0 0 0 1  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 8 9    FREE_AXIS 0 0 0 0 0 1  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 10 11  FREE_AXIS 0 0 0 0 1 0  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 12 13  FREE_AXIS 0 0 0 0 1 0  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 14 15  FREE_AXIS 0 0 0 0 1 0  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 16 17  FREE_AXIS 0 0 0 0 1 0  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING 
						BEGIN_SPRING 18 19  FREE_AXIS 0 0 0 0 1 0  KS_T 0.0 30000.0  KS_R 0.0 600000.0  END_SPRING "
				/>
		</Node>
	</Node>
</Node>