modelFindLengthSpring1D
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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.TranslationalSpringConstant | c | Spring constant for a 1m spring (units in N, equivalent to EA) | |
| SI.Length | Ls | 1.0 | Initial stretched spring length |
| SI.Length | L0 | Ls - dL0 | Unstretched spring length |
| SI.Distance | dL0 | Difference between unstretched spring length and Ls |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Flange_a | flange_a | Left flange of compliant 1-dim. translational component | |
| Interfaces.Flange_b | flange_b | Right flange of compliant 1-dim. translational component |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Position | s_rel | Relative distance (= flange_b.s - flange_a.s) | |
| SI.Force | f | Force between flanges (positive in direction of flange axis R) |