-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathAdaptiveBeamController.scn
More file actions
50 lines (47 loc) · 2.86 KB
/
AdaptiveBeamController.scn
File metadata and controls
50 lines (47 loc) · 2.86 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
<?xml version="1.0"?>
<Node name="root" gravity="0 -9.81 0" dt="0.01" bbox="0 0 0 10 10 10">
<RequiredPlugin pluginName="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedProjectiveConstraint] -->
<RequiredPlugin pluginName="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [EigenSparseLU] -->
<RequiredPlugin pluginName="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
<RequiredPlugin pluginName="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
<RequiredPlugin pluginName="Sofa.Component.Topology.Container.Constant"/> <!-- Needed to use components [MeshTopology] -->
<RequiredPlugin pluginName="Sofa.Component.Visual"/> <!-- Needed to use components [VisualStyle] -->
<RequiredPlugin pluginName="BeamAdapter"/> <!-- Needed to use components [AdaptiveBeamController,AdaptiveBeamForceFieldAndMass,BeamInterpolation] -->
<VisualStyle displayFlags="showBehaviorModels showCollisionModels hideBoundingCollisionModels showForceFields" />
<DefaultAnimationLoop />
<Node name="AdaptiveBeam1">
<EulerImplicitSolver rayleighStiffness="0" rayleighMass="0" printLog="false" />
<EigenSparseLU template="CompressedRowSparseMatrixMat3x3d"/>
<MechanicalObject template="Rigid3d" name="DOFs" position="0 0 0 0 0 0 1 0.5 0 0 0 0 0 1 1 0 0 0 0 0 1 1.5 0 0 0 0 0 1 2 0 0 0 0 0 1 2.5 0 0 0 0 0 1 3 0 0 0 0 0 1"/>
<MeshTopology name="lines" lines="0 1 1 2 2 3 3 4 4 5 5 6" />
<FixedProjectiveConstraint name="FixedConstraint" indices="0" />
<BeamInterpolation name="BeamInterpolation" radius="0.1"/>
<AdaptiveBeamForceFieldAndMass name="BeamForceField" computeMass="1" massDensity="50"/>
<!--
<Node name="Collision">
<CubeTopology nx="13" ny="2" nz="2" min="0 -0.2 -0.2" max="3 0.2 0.2" />
<MechanicalObject name="collision"/>
<AdaptiveBeamMapping isMechanical="true" input="@../DOFs" output="@collision"/>
<Triangle />
</Node>
-->
</Node>
<Node name="AdaptiveBeam2">
<EulerImplicitSolver rayleighStiffness="0" rayleighMass="0" printLog="false" />
<EigenSparseLU template="CompressedRowSparseMatrixMat3x3d"/>
<MeshTopology name="lines" lines="0 1 1 2 2 3" />
<MechanicalObject template="Rigid3d" name="DOFs" position="0 0 2 0 0 0 1 1 0 2 0 0 0 1 2 0 2 0 0 0 1 3 0 2 0 0 0 1"/>
<BeamInterpolation name="BeamInterpolation2" radius="0.1" />
<FixedProjectiveConstraint name="FixedConstraint" indices="0" />
<AdaptiveBeamController template="Rigid3d" name="m_controller"/>
<AdaptiveBeamForceFieldAndMass name="BeamForceField" computeMass="1" massDensity="50"/>
<!--
<Node name="Collision">
<CubeTopology nx="13" ny="2" nz="2" min="0 -0.2 -0.2" max="3 0.2 0.2" />
<MechanicalObject name="collision"/>
<AdaptiveBeamMapping isMechanical="true" input="@../DOFs" output="@collision"/>
<Triangle />
</Node>
-->
</Node>
</Node>