-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathParticlesRepulsionForceField.scn
More file actions
68 lines (62 loc) · 4.3 KB
/
Copy pathParticlesRepulsionForceField.scn
File metadata and controls
68 lines (62 loc) · 4.3 KB
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
<?xml version="1.0" ?>
<Node name="root" gravity="0.0 -2.0 0.0" dt="0.04">
<RequiredPlugin name="Sofa.Component.Collision.Detection.Algorithm"/> <!-- Needed to use components [BVHNarrowPhase BruteForceBroadPhase CollisionPipeline] -->
<RequiredPlugin name="Sofa.Component.Collision.Detection.Intersection"/> <!-- Needed to use components [NewProximityIntersection] -->
<RequiredPlugin name="Sofa.Component.Collision.Geometry"/> <!-- Needed to use components [SphereCollisionModel] -->
<RequiredPlugin name="Sofa.Component.Collision.Response.Contact"/> <!-- Needed to use components [CollisionResponse] -->
<RequiredPlugin name="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedProjectiveConstraint] -->
<RequiredPlugin name="Sofa.Component.Engine.Select"/> <!-- Needed to use components [BoxROI] -->
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [MeshOBJLoader] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [CGLinearSolver] -->
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [IdentityMapping SubsetMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [UniformMass] -->
<RequiredPlugin name="Sofa.Component.MechanicalLoad"/> <!-- Needed to use components [PlaneForceField SphereForceField] -->
<RequiredPlugin name="Sofa.Component.IntegrationScheme.Backward"/> <!-- Needed to use components [EulerImplicitIntegrationScheme] -->
<RequiredPlugin name="Sofa.Component.SolidMechanics.Spring"/> <!-- Needed to use components [MeshSpringForceField QuadBendingSprings] -->
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
<RequiredPlugin name="Sofa.Component.Topology.Container.Grid"/> <!-- Needed to use components [RegularGridTopology] -->
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglModel] -->
<RequiredPlugin name="SofaSphFluid"/> <!-- Needed to use components [ParticlesRepulsionForceField SpatialGridContainer] -->
<DefaultAnimationLoop/>
<CollisionPipeline verbose="0" />
<BruteForceBroadPhase/>
<BVHNarrowPhase/>
<CollisionResponse name="Response" response="PenalityContactForceField"/>
<NewProximityIntersection alarmDistance="0.002" contactDistance="0.001" />
<Node name="Floor">
<RegularGridTopology nx="2" ny="1" nz="2" xmin="20" xmax="-20" ymin="-3.05" ymax="-3.05" zmin="-20" zmax="20" />
<MechanicalObject />
<Node name="Visu">
<OglModel name="Visual" color="red" />
<IdentityMapping input="@.." output="@Visual" />
</Node>
</Node>
<Node name="SquareCloth1">
<EulerImplicitIntegrationScheme rayleighMass="0.05" rayleighStiffness="0.1" />
<CGLinearSolver iterations="10" threshold="0.000001" tolerance="1e-5"/>
<RegularGridTopology nx="100" ny="1" nz="100" xmin="12" xmax="-12" ymin="7" ymax="7" zmin="-12" zmax="12" />
<MechanicalObject />
<UniformMass totalMass="100" />
<BoxConstraint box="-12 7 12 -10 7 12 10 7 12 12 7 12" />
<MeshSpringForceField name="Springs" stiffness="1000" damping="0" />
<QuadBendingSprings name="Bend" stiffness="2000" damping="1" />
<SphereForceField stiffness="1000" damping="1" center="0 1 3" radius="4" />
<PlaneForceField stiffness="1000" damping="20" normal="0 1 0" d="-3" />
<SpatialGridContainer cellWidth="0.2" autoUpdate="false" showGrid="false" />
<ParticlesRepulsionForceField distance="0.2" stiffness="1000" />
<Node name="Visu">
<OglModel name="Visual" color="green" />
<IdentityMapping input="@.." output="@Visual" />
</Node>
<Node>
<RegularGridTopology nx="4" ny="1" nz="4" xmin="12" xmax="-12" ymin="7" ymax="7" zmin="-12" zmax="12" />/
<MechanicalObject />
<SphereCollisionModel radius="1.0" contactStiffness="1" />
<SubsetMapping />
</Node>
</Node>
<Node name="Sphere">
<MeshOBJLoader name="meshLoader_0" filename="mesh/sphere.obj" scale="3.95" handleSeams="1" />
<OglModel name="Visual" src="@meshLoader_0" dx="0" dy="1" dz="3" color="blue" />
</Node>
</Node>