File: AttachConstraint.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 (109 lines) | stat: -rw-r--r-- 5,004 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
<Node name="root" dt="0.02" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="1">
	<Node name="Single">
	<Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
		<Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />
	<Node name="M1">
		<Object type="MechanicalObject" />
		<Object type="UniformMass" mass="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="28"
			xmin="-9" xmax="-6"
			ymin="0" ymax="3"
			zmin="0" zmax="27"
		/>
		<Object type="BoxConstraint" box="-9.1 -0.1 -0.1 -5.9 3.1 0.1" />
		<!--<Object type="BoxConstraint" box="-9.1 -0.1 26.9 -5.9 3.1 27.1" />-->
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</Node>
	</Node>
	<Node name="AttachOneWay">
	<Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
		<Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />
	<Node name="M1">
		<Object type="MechanicalObject" />
		<Object type="UniformMass" mass="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="10"
			xmin="1" xmax="4"
			ymin="0" ymax="3"
			zmin="0" zmax="9"
		/>
		<Object type="BoxConstraint" box="0.9 -0.1 -0.1 4.1 3.1 0.1" />
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</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="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="10"
			xmin="1" xmax="4"
			ymin="0" ymax="3"
			zmin="9" zmax="18"
		/>
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</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="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="10"
			xmin="1" xmax="4"
			ymin="0" ymax="3"
			zmin="18" zmax="27"
		/>
		<!--<Object type="BoxConstraint" box="0.9 -0.1 26.9 4.1 3.1 27.1" />-->
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</Node>
	<Object type="AttachConstraint" object1="M1" object2="M2" radius="0.1" indices1="144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159" indices2="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" />
	<Object type="AttachConstraint" object1="M2" object2="M3" radius="0.1" indices1="144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159" indices2="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" />
	</Node>
	<Node name="AttachTwoWay">
	<Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
		<Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />
	<Node name="M1">
		<Object type="MechanicalObject" />
		<Object type="UniformMass" mass="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="10"
			xmin="-4" xmax="-1"
			ymin="0" ymax="3"
			zmin="0" zmax="9"
		/>
		<Object type="BoxConstraint" box="-4.1 -0.1 -0.1 -0.9 3.1 0.1" />
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</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="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="10"
			xmin="-4" xmax="-1"
			ymin="0" ymax="3"
			zmin="9" zmax="18"
		/>
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</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="1" />
		<Object type="RegularGrid"
			nx="4" ny="4" nz="10"
			xmin="-4" xmax="-1"
			ymin="0" ymax="3"
			zmin="18" zmax="27"
		/>
		<!--<Object type="BoxConstraint" box="-4.1 -0.1 26.9 -0.9 3.1 27.1" />-->
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="4000" poissonRatio="0.3" />
	</Node>
	<Object type="AttachConstraint" object1="M1" object2="M2" twoWay="true" radius="0.1" indices1="144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159" indices2="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" />
	<Object type="AttachConstraint" object1="M2" object2="M3" twoWay="true" radius="0.1" indices1="144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159" indices2="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" />
	</Node>
</Node>