modelFindLengthSpring1D

Linear 1D translational spring with unstretched length initialization

Information

Attribution Notice

This model is an extension of the Spring block in the Mechanics.Translational.Components package of the Modelica Standard Library
Copyright © 1998-2016, Modelica Association and DLR.

A linear 1D translational spring with unstretched length initialization.

The initial stretched spring length is given by parameter Ls and the unstretched spring length L0 is determined during intialization. Parameter dL0 is the difference between Ls and L0, which can be used to make a better starting guess for initialization (the default is 0.0).

The spring constant c is defined as the stiffness of a 1m spring. This is because the length of the spring is unknown until after initialization (i.e., the stiffness k=E*A/L cannot be determined until later). Therefore, the spring constant c is equivalent to c=E*A.

Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED

Parameters

TypeNameDefaultDescription
SI.TranslationalSpringConstantcSpring constant for a 1m spring (units in N, equivalent to EA)
SI.LengthLs1.0Initial stretched spring length
SI.LengthL0Ls - dL0Unstretched spring length
SI.DistancedL0Difference between unstretched spring length and Ls

Connectors

TypeNameDefaultDescription
Interfaces.Flange_aflange_aLeft flange of compliant 1-dim. translational component
Interfaces.Flange_bflange_bRight flange of compliant 1-dim. translational component

Components

TypeNameDefaultDescription
SI.Positions_relRelative distance (= flange_b.s - flange_a.s)
SI.ForcefForce between flanges (positive in direction of flange axis R)