Linear translational spring with optional mass
Linear spring acting as line force between frame_a and frame_b. A force f is exerted on the origin of frame_b and with opposite sign on the origin of frame_a along the line from the origin of frame_a to the origin of frame_b according to the equation:
f = c*(s - s_unstretched);
where "c" and "s_unstretched" are parameters and "s" is the distance between the origin of frame_a and the origin of frame_b.
Optionally, the mass of the spring is taken into account by a point mass located on the line between frame_a and frame_b (default: middle of the line). If the spring mass is zero, the additional equations to handle the mass are removed.
In the following figure a typical animation of the spring is shown. The blue sphere in the middle of the spring characterizes the location of the point mass.
|frame_a||Frame_a||Coordinate system fixed to the component with one cut-force and cut-torque|
|frame_b||Frame_b||Coordinate system fixed to the component with one cut-force and cut-torque|
|animation||Boolean||true||= true, if animation shall be enabled|
|showMass||Boolean||true||= true, if point mass shall be visualized as sphere if animation=true and m>0|
|s_unstretched||Length||0||Unstretched spring length|
|m||Mass||0||Spring mass located on the connetion line between the origin of frame_a and the origin of frame_b|
|lengthFraction||Real||0.5||Location of spring mass with respect to frame_a as a fraction of the distance from frame_a to frame_b (=0: at frame_a; =1: at frame_b)|
|numberOfWindings||Integer||5||Number of spring windings|
|Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings3-dim. springs in series and parallel connection|
|Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMassPoint mass hanging on a spring|
|Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystemMass attached with a spring to the world frame|
|Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemSimple spring/damper/mass system|
|Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMassesTwo point masses in a point gravity field (rotation of bodies is neglected)|
|Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamperSimple spring/damper/mass system|
|Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstantDetermine spring constant such that system is in steady state at given position|
|Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBodyFree flying body attached by two springs to environment|