File: SpatialGridPointModel.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 (60 lines) | stat: -rw-r--r-- 2,609 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
<Node dt="0.005" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="1" gravity="0 -10 0" >
	<Object type="CollisionPipeline" verbose="0" />
	<Object type="NewProximityIntersection" alarmDistance="0.5" contactDistance="0.3" />
	<Object type="BruteForceDetection" name="N2" />
	<Object type="CollisionResponse" response="default" />
	<Node name="Fluid">
		<Object type="RungeKutta4"/>
		<Object type="PointSetTopologyContainer" />
		<Object type="MechanicalObject" name="MModel" />
		<Object type="ParticleSource" name="Source" center="
-0.375 0 -0.75
 0.0   0 -0.75
 0.375 0 -0.75
-0.75  0 -0.375
-0.375 0 -0.375
 0.0   0 -0.375
 0.375 0 -0.375
 0.75  0 -0.375
-0.75  0  0.0
-0.375 0  0.0
 0.0   0  0.0
 0.375 0  0.0
 0.75  0  0.0
-0.75  0  0.375
-0.375 0  0.375
 0.0   0  0.375
 0.375 0  0.375
 0.75  0  0.375
-0.375 0  0.75
 0.0   0  0.75
 0.375 0  0.75
 " translation="0 3 0" radius="0.01 0.1 0.01" velocity="0 -20 0" delay="0.01875" start="-0.1" stop="2" />
		<Object type="ParticleSink" normal="0 1 0" d0="-10" d1="-11" showPlane="true" printLog="true" />
		<Object type="UniformMass" name="M1" mass="1" />
		<Object type="SpatialGridContainer" cellWidth="0.75" sortPoints="true" />
		<Object type="SPHFluidForceField" radius="0.75" density="15" viscosity="10" pressure="1000" surfaceTension="-1000" />
		<!-- The following force fields handle collision with walls and an inclined floor -->


		<Node id="Visual">
			<Object type="OglModel" name="VModel" color="blue" />
			<Object type="SPHFluidSurfaceMapping" name="MarchingCube" object1="../../MModel" object2="VModel" isoValue="0.5" radius="0.75" step="0.25"/>
		</Node>
		<Object type="SpatialGridPointModel" contactStiffness="1000" />
	</Node>
	<Node name="World">
	  <Object type="MechanicalObject" position="
						    -4 -1.6 -4    4 -5.6 -4    4 -6.4 4    -4 -2.4 4
						    -4 -1.6 -4    -4 -1.5 -4    4 -1.5 -4    4 -5.6 -4
						    4 -5.6 -4    4 -1.5 -4    4 -1.5 4    4 -6.4 4
						    4 -6.4 4    4 -1.5 4    -4 -1.5 4    -4 -2.4 4
						    -4 -2.4 4    -4 -1.5 4    -4 -1.5 -4    -4 -1.6 -4
						    " scale="1.075" />
		<Object type="Mesh" triangles="0 1 2  0 2 3    4 5 6  4 6 7    8 9 10  8 10 11    12 13 14  12 14 15    16 17 18  16 18 19" />
		<Object type="Triangle" contactStiffness="20" moving="false" simulated="false" />
		<Object type="Line"     contactStiffness="20" moving="false" simulated="false" />
		<Object type="Point"    contactStiffness="20" moving="false" simulated="false" />
		<Object type="OglModel" name="VModel" color="0.95 1.0 0.95 0.25" printLog="true" />
	</Node>
</Node>