modelSpring

Linear 2D translational spring

Extends from BaseClasses.TwoConnectorShapes (Partial base class containing two frames and cylinder shapes at these frames).

Information

A linear translational spring. x- and y direction stiffness can be parameterized.

Parameters

TypeNameDefaultDescription
SI.TranslationalSpringConstantc_xSpring constant in x dir
SI.TranslationalSpringConstantc_ySpring constant in y dir
SI.RotationalSpringConstantc_phiSpring constant
SI.Positions_relx00Unstretched spring length
SI.Positions_rely00Unstretched spring length
SI.Anglephi_rel00Unstretched spring angle
Animation
Booleananimate (from TwoConnectorShapes)trueEnable animation
Animation › if animation = true
SI.LengthzPosition (from TwoConnectorShapes)planarWorld.defaultZPositionPosition z of cylinder representing the fixed translation
Animation › Connectors (if animation = true)
BooleananimateConnectors (from TwoConnectorShapes)true=true, if connectors a and b should be animated as cylinders
SI.DiameterdiameterConnector_a (from TwoConnectorShapes)planarWorld.defaultJointWidthDiameter of connector at frame_a
SI.DiameterdiameterConnector_b (from TwoConnectorShapes)planarWorld.defaultJointWidthDiameter of connector at frame_b
Advanced
StateSelectstateSelectStateSelect.defaultPriority to use phi and w as states
SI.Positions_small1.E-10Prevent zero-division if distance between frame_a and frame_b is zero
BooleanenableAsserttrueCause an assert when the distance between frame_a and frame_b < s_small
Animation › Spring coil (if animation = true)
IntegernumberOfWindings5Number of spring windings

Connectors

TypeNameDefaultDescription
Frame_aframe_a (from PartialTwoFrames)Coordinate system fixed to the component with one cut-force and cut-torque
Frame_bframe_b (from PartialTwoFrames)Coordinate system fixed to the component with one cut-force and cut-torque

Components

TypeNameDefaultDescription
MB.Types.SpecularCoefficientspecularCoefficient (from TwoConnectorShapes)planarWorld.defaultSpecularCoefficientReflection of ambient light (= 0: light is completely absorbed)
MB.Types.ColorcolorConnector_a (from TwoConnectorShapes)Types.Defaults.RodColorColor of connector at frame_a
MB.Types.ColorcolorConnector_b (from TwoConnectorShapes)Types.Defaults.RodColorColor of connector at frame_a
SI.Positions_relxSpring length
SI.Positions_relySpring length
SI.Anglephi_relSpring angle
SI.Forcef_xForce in x direction
SI.Forcef_yForce in y direction
SI.LengthwidthplanarWorld.defaultJointWidthWidth of spring
SI.LengthcoilWidthwidth/10Width of spring coil
MB.Types.ColorcolorTypes.Defaults.SpringColorColor of spring
SI.LengthlengthDistance between the origin of frame_a and the origin of frame_b
SI.Position[3]r_rel_0Position vector (3D) from frame_a to frame_b resolved in multibody world frame
Real[3]e_rel_0Unit vector (3D) in direction from frame_a to frame_b, resolved in multibody world frame

Revisions

DLR logo Developed 2010 at the DLR Institute of System Dynamics and Control