Spring
Linear spring: f = c·(s_rel − s_rel0).
- translational
- Modelica Standard Library
- 2 ports
- 2 parameters
transSpringLibraryTranslationalDescription
A linear spring between two translational flanges.
Example
Mass, spring, and damper Two 1 kg masses on 100 N/m springs and 2 N·s/m dampers, pushed by 1 N, with every translational sensor.
Force step 1 NApplied forceMass 1 kgSpring-damperWallPositionVelocityAccelerationForce 1 NMass 1 kg (lower)Spring 100 N/mDamper 2 N·s/mWall (lower)Spring compressionPosition (lower)
Also in this example:Fixed (translational)MassDamperSpring-damperConstant forceForce stepPosition sensorVelocity sensorAcceleration sensor (linear)Force sensorRelative position sensor
Ports
Conserving terminals 2
-
a
flange_aFlange a. Receives −f.
-
b
flange_bFlange b. Receives f, the spring force.
Parameters
-
Stiffness
c1000 N/m≥ 0
Stiffness, in N/m. Zero or positive.
-
Unstretched length
s_rel00 mUnstretched length (relative position at which the force is zero), in meters.
Equations
Modelica
s_rel = flange_b.s − flange_a.s f = c · (s_rel − s_rel0) flange_b.f = f, flange_a.f = −f
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Mechanics.Translational.Components.SpringAssumptions and limitations
- No damping and no mass.
See also
Select a block in Gradara and press F1 to open its page offline.