/usr/share/sofa/examples/CUDA/beam10x10x46-fem-implicit-CUDA.scn is in sofa-data 1.0~beta4-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <Node name="root" dt="0.04" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="0">
<Object type="CollisionPipeline" verbose="0" />
<Object type="BruteForceDetection" name="N2" />
<Object type="CollisionResponse" name="Response" />
<Object type="CudaProximityIntersection" alarmDistance="0.002" contactDistance="0.001" />
<Node name="Floor">
<Object type="RegularGrid"
nx="2" ny="1" nz="2"
xmin="10" xmax="-10"
ymin="-3.05" ymax="-3.05"
zmin="-10" zmax="10" />
<Object type="MechanicalObject" />
<Node name="Visu">
<Object type="OglModel" name="Visual" color="red"/>
<Object type="IdentityMapping" object1="../.." object2="Visual"/>
</Node>
</Node>
<Node name="M1">
<!--<Object type="CGImplicit" iterations="10" />-->
<Object type="EulerImplicit" />
<Object type="CGLinearSolver" iterations="10"/>
<Object type="RegularGrid"
nx="10" ny="10" nz="46"
xmin="-1.5" xmax="1.5"
ymin="0" ymax="3"
zmin="-7.5" zmax="7.5"
/>
<Object type="MechanicalObject" template="CudaVec3f" />
<Object type="UniformMass" totalmass="400" />
<Object type="BoxConstraint" box="-1.6 -0.1 -7.6 1.6 3.1 -7.4" />
<!-- <Object type="MeshSpringForceField" stiffness="2333" /> -->
<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="10000" poissonRatio="0.4" method="large" />
<Object type="PlaneForceField" normal="0 1 0" d="-3" stiffness="10000" draw="1" />
<!-- <Object type="PlaneForceField" normal="0 0 1" d="-7.5" stiffness="10000" draw="1" color="0.2 0.2 0.7" /> -->
<Node>
<Object type="RegularGrid"
nx="2" ny="2" nz="9"
xmin="-0.75" xmax="0.75"
ymin="0.75" ymax="2.25"
zmin="-5.5" zmax="6.5"
/>
<Object type="CudaSphereModel" radius="1.0" />
<MechanicalObject template="CudaVec3f"/>
<Object type="BarycentricMapping" />
</Node>
<Node>
<Object type="CubeTopology" internalPoints="0" splitNormals="1"
nx="10" ny="10" nz="46"
xmin="-1.5" xmax="1.5"
ymin="0" ymax="3"
zmin="-7.5" zmax="7.5"
/>
<Object type="MappedObject" name="Mapped" template="CudaVec3f" />
<Object type="SubsetMapping" object2="Mapped" />
<Node>
<Object type="CudaVisualModel" template="CudaVec3f" diffuse="0.8 0.8 0.8 1.0" computeNormals="true" />
</Node>
</Node>
</Node>
</Node>
|