RevoluteConstraintBody attached by one spring and revolute joint or constrained to environment |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This example demonstrates the functionality of constraint representing revolute joint. Each of two bodies is at one of its end connected by spring to the world. The other end is also connected to the world either by revolute joint or by appropriate constraint. Therefore, the body can only perform rotation about the revolute axis depending on working forces.
Simulation results
After simulating the model, see the animation of the multibody system and compare movement of body connected by joint (blue colored) with movement of that one connected by constraint (of green color). Additionally, the outputs from sensorConstraintRelative
depict both position and angle deviations in the constraining element.
animation |
Value: true Type: Boolean Description: = true, if animation shall be enabled |
---|
joint |
Type: Revolute |
|
---|---|---|
constraint |
Type: Revolute |
|
sensorConstraintRelative |
Type: RelativeSensor |
|
bodyOfJoint |
Type: BodyShape |
|
bodyOfConstraint |
Type: BodyShape |
|
springOfJoint |
Type: Spring |
|
springOfConstraint |
Type: Spring |
|
world |
Type: World |
|
fixedRotation |
Type: FixedRotation |
|
fixedTranslation |
Type: FixedTranslation |
|
freeMotionScalarInit |
Type: FreeMotionScalarInit |