- This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Getting Started › [SOLVED] AngularSpring Problems
Tagged: 64_bits, Linux_ubuntu, SOFA_1912
Hi there,
I am attempting to model a basic mass-spring system by linking a line of particles with linear springs, and then spherical joint springs connecting each link together. I am very new to SOFA and hence apologise for the simple question.
I have created a set of linked particles using linear springs (attached code), however when I attempt to add angular springs I have difficulty in getting anything to work.
Am I modelling this problem correctly, also am I making stupid mistakes as to why I cannot function these angular springs.
Any help would be greatly appreciated, thank you!
<?xml version="1.0" ?>
<Node name="root" dt="0.01" gravity="0 -9.81 0">
<!-- Basic Components to perform the collision detection -->
<VisualStyle displayFlags="showBehavior showCollisionModels" />
<DefaultPipeline />
<BruteForceDetection />
<DefaultContactManager />
<MinProximityIntersection alarmDistance="1" contactDistance="0.5"/>
<Node name="Linkage">
<EulerImplicitSolver name="EulerImplicit Cube1" rayleighStiffness="0.1" rayleighMass="0.1" />
<CGLinearSolver name="CG Solver Cube1" iterations="25" tolerance="1e-5" threshold="1e-5"/>
<!-- Spring Models -->
<Node name="spring">
<MechanicalObject name="Guidewire" template="Vec3d" position="0 0 1 0 0 2 0 0 3 0 0 4"/>
<UniformMass name="Mass Cube1" totalMass="1" />
<SpringForceField template="Vec3d" name="InternalSprings1" spring="0 1 100 10 1 1 2 100 10 1 2 3 100 10 1"/>
<SphereCollisionModel name="Cubes For Collision Cube1" radius="0.2" />
<FixedConstraint template="Vec3d" name="FixedConstraint" indices="0" />
</Node>
</Node>
</Node>
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.