Constant force
A constant force.
- translational
- Modelica Standard Library
- 1 port
- 1 parameter
constantForceLibraryTranslationalDescription
Applies a constant force to the flange, independent of speed and direction. Use it for gravity on a vertical axis or a constant load.
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)MassSpringDamperSpring-damperForce stepPosition sensorVelocity sensorAcceleration sensor (linear)Force sensorRelative position sensor
Ports
Conserving terminals 1
-
shaft
flangeFlange the force acts on.
Parameters
-
Force
f_constant1 NThe force, in newtons. Positive accelerates the flange in the positive direction; negative acts as a load.
Equations
Modelica
flange.f = −f_constant
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Mechanics.Translational.Sources.ConstantForceTips
- For gravity on a mass m with positive direction upward, set f_constant = −9.81 · m.
See also
Select a block in Gradara and press F1 to open its page offline.