This information is part of the Modelica Standard Library maintained by the Modelica Association.

Spring

Linear translational spring with optional mass

Information
CONNECTORS
CLOSE ALL
NameTypeDescription
frame_aFrame_aCoordinate system fixed to the component with one cut-force and cut-torque
frame_bFrame_bCoordinate system fixed to the component with one cut-force and cut-torque
PARAMETERS
NameTypeDefault ValueDescription
animationBooleantrue= true, if animation shall be enabled
showMassBooleantrue= true, if point mass shall be visualized as sphere if animation=true and m>0
cTranslationalSpringConstantSpring constant
s_unstretchedLength0Unstretched spring length
mMass0Spring mass located on the connetion line between the origin of frame_a and the origin of frame_b
lengthFractionReal0.5Location 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)
numberOfWindingsInteger5 Number of spring windings
USED IN EXAMPLES
Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings
3-dim. springs in series and parallel connection
Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass
Point mass hanging on a spring
Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem
Mass attached with a spring to the world frame
Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem
Simple spring/damper/mass system
Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses
Two point masses in a point gravity field (rotation of bodies is neglected)
Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper
Simple spring/damper/mass system
Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant
Determine spring constant such that system is in steady state at given position
Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody
Free flying body attached by two springs to environment