-
Notifications
You must be signed in to change notification settings - Fork 299
/
rungekutta2_heterogeneousobjects.scn
33 lines (30 loc) · 1.53 KB
/
rungekutta2_heterogeneousobjects.scn
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
<Node dt="0.001" bbox="-1 -1 -1 1 1 1">
<RequiredPlugin name="Sofa.Component.Mapping.NonLinear"/> <!-- Needed to use components [RigidMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [UniformMass] -->
<RequiredPlugin name="Sofa.Component.MechanicalLoad"/> <!-- Needed to use components [PlaneForceField] -->
<RequiredPlugin name="Sofa.Component.ODESolver.Forward"/> <!-- Needed to use components [RungeKutta2Solver] -->
<RequiredPlugin name="Sofa.Component.SolidMechanics.Spring"/> <!-- Needed to use components [RegularGridSpringForceField] -->
<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.Component.Visual"/> <!-- Needed to use components [VisualStyle] -->
<DefaultAnimationLoop/>
<RungeKutta2Solver/>
<VisualStyle displayFlags="showBehavior showMapping" />
<Node name="rigid">
<MechanicalObject template="Rigid3" translation="2 0.5 0"/>
<PlaneForceField template="Rigid3" normal="0 1 0" d="-5" stiffness="10000" />
<UniformMass template="Rigid3" />
<Node name="mapped">
<MechanicalObject />
<RegularGridTopology p0="-0.5 -0.5 -0.5"/>
<RigidMapping input="@.." output="@."/>
</Node>
</Node>
<Node name="deformable">
<RegularGridTopology />
<MechanicalObject translation="-2 0 0"/>
<RegularGridSpringForceField />
<UniformMass />
<PlaneForceField normal="0 1 0" d="-5" stiffness="10000" />
</Node>
</Node>