File: NonBuiltConstraintCorrection.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 (114 lines) | stat: -rwxr-xr-x 4,479 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
<Node name="root"  dt="0.03" showVisualModels="1" showBehaviorModels="1" showCollisionModels="0"  showMappings="0" showForceFields="0" showWireFrame="0">
	<Object type="MasterContactSolver" initial_guess="true" displayTime="1" maxIt="100" build_lcp="false"/>   
	<Object type="CollisionPipeline" depth="8" verbose="0" draw="0"/>
	<Object type="BruteForceDetection" name="N2" />
	<Object type="LocalMinDistance" name="Proximity" alarmDistance="0.35" contactDistance="0.1" />
	<Object type="CollisionResponse" name="Response" response="FrictionContact"/>
	
	<Node>
		<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="CollisionGroup" name="Group" />
		
				
		<Node name="TORUS">

			<Object type="MechanicalObject" template="Rigid" scale="1.0"  dx="0.0" dy="0.0" dz="0.0"/>
			<Object type="UniformMass"  mass="40.0" printLog="true"/>
			<Object type="UncoupledConstraintCorrection"/>
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/torus.obj" color="1.0 0.5 0.25 1.0" scale="1.0"/>
				<Object type="RigidMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
				<Object type="MeshLoader" name="meshLoader" filename="mesh/torus_for_collision.obj" triangulate="true"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" scale="1.0"/>
				<Object type="Triangle" /> 
				<Object type="Line" />
				<Object type="Point" />
				<Object type="RigidMapping" />
			</Node>
		</Node>
		
			
		
		<Node name="MAN">
			<Object type="EulerSolver"/>
			<Object type="MechanicalObject" template="Rigid"  dx="0.0" dy="0.0" dz="0.0"/>
			<Object type="UniformMass"  mass="100.0" printLog="true"/>
			<Object type="UncoupledConstraintCorrection"/>
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/man.obj" color="0.8 0.8 0.8 1.0" scale="10" dy="-3.0"/>
				<Object type="RigidMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
				<Object type="MeshLoader" name="meshLoader" filename="mesh/man.obj" triangulate="true"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" scale="10" dy="-3.0"/>
				<Object type="Triangle" /> 
				<Object type="Line" />
				<Object type="Point" />
				<Object type="RigidMapping" />
			</Node>
		</Node>
				
		
		<Node name="CUBE">
			<Object type="MechanicalObject" template="Rigid" scale="0.3"  dx="-2.0" dy="-2.0" dz="-0.5"/>
			<Object type="UniformMass"  mass="100.0" printLog="true"/>
			<Object type="UncoupledConstraintCorrection"/>
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/smCube27.obj" color="0.0 0.5 0.5 1.0" scale="0.3"/>
				<Object type="RigidMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
					<Object type="MeshLoader" name="meshLoader" filename="mesh/smCube27.obj" triangulate="true"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" scale="0.3"/>
				<Object type="Triangle" /> 
				<Object type="Line" />
				<Object type="Point" />
				<Object type="RigidMapping" />
			</Node>
		</Node>
		
	
		
		<Node name="DRAGON1">
			<Object type="EulerSolver"/>
			<Object type="MechanicalObject" template="Rigid"   dx="0.0" dy="2.5" dz="2.5"/>
			<Object type="UniformMass"  mass="100.0" printLog="true"/>
			<Object type="UncoupledConstraintCorrection"/>
			<Node name="Visu">
				<Object type="OglModel" name="Visual" fileMesh="mesh/dragon_clean.obj" color="0.2 0.2 0.8 1.0" scale="0.25"/>
				<Object type="RigidMapping" object1="../.." object2="Visual" />
			</Node>
			<Node name="Surf2">
				<Object type="MeshLoader" name="meshLoader" filename="mesh/dragon_clean.obj" triangulate="true"/>
				<Object type="Mesh" />
				<Object type="MechanicalObject" scale="0.25"/>
				<Object type="Triangle" /> 
				<Object type="Line" />
				<Object type="Point" />
				<Object type="RigidMapping" />
			</Node>
		</Node>




		
		<Node name="BOX">
			<Object type="MeshLoader" name="meshLoader" filename="mesh/box_inside.obj" triangulate="true"/>
			<Object type="Mesh"/>
			<Object type="MechanicalObject"/>
			<Object type="Triangle" simulated="0" moving="0"/>	
			<Object type="Line" simulated="0" moving="0"/>
			<Object type="Point" simulated="0" moving="0"/>
			<Object type="OglModel" name="Visual" fileMesh="mesh/box_outside.obj" color="1 0 0 0.3"/>
		</Node>

	</Node>
	
</Node>