Constant force

A constant force.

  • translational
  • Modelica Standard Library
  • 1 port
  • 1 parameter
BlockConstant forceKindconstantForceLibraryTranslational

Description

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)
In Gradara, select a Constant force block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:Fixed (translational)MassSpringDamperSpring-damperForce stepPosition sensorVelocity sensorAcceleration sensor (linear)Force sensorRelative position sensor

Ports

Conserving terminals 1

  • shaftflange

    Flange the force acts on.

Parameters

  • Forcef_constant1 N

    The 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.0Modelica.Mechanics.Translational.Sources.ConstantForce
MSL documentation

Tips

  • 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.