modelWorldForceAndTorque
Extends from Interfaces.PartialOneFrame_b (Base model for components providing one frame_b connector + outer world + assert to guarantee that the component is connected).
Information
The 3 signals of the force and torque connector are interpreted as the x-, y- and z-coordinates of a force and torque acting at the frame connector to which frame_b of this component is attached. Via parameter resolveInFrame it is defined, in which frame these coordinates shall be resolved:
| Types.ResolveInFrameB. | Meaning |
|---|---|
| world | Resolve input force and torque in world frame (= default) |
| frame_b | Resolve input force and torque in frame_b |
| frame_resolve | Resolve input force and torque in frame_resolve (frame_resolve must be connected) |
If resolveInFrame = Types.ResolveInFrameB.frame_resolve, the force and torque coordinates are with respect to the frame, that is connected to frame_resolve.
If force={100,0,0}, and for all parameters the default setting is used, then the interpretation is that a force of 100 N is acting along the positive x-axis of frame_b.
Conceptually, a force and torque acts on the world frame in such a way that the force and torque balance between world.frame_b and frame_b is fulfilled. For efficiency reasons, this reaction torque is, however, not computed.
The force and torque are by default visualized as an arrow (force) and as a double arrow (torque) acting at the connector to which they are connected. The colors of the arrows can be defined via forceColor and torqueColor. The arrows point in the directions defined by the force and torque vectors. The lengths of the arrows are proportional to the length of the force and torque vectors, respectively, using tool-dependent scaling factors.
An example how to use this model is given in the following figure:
This leads to the following animation
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | animation | true | = true, if animation shall be enabled |
| Modelica.Mechanics.MultiBody.Types.ResolveInFrameB | resolveInFrame | Modelica.Mechanics.MultiBody.Types.ResolveInFrameB.world | Frame in which input force and torque are resolved (1: world, 2: frame_b, 3: frame_resolve) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Frame_b | frame_b (from PartialOneFrame_b) | Coordinate system fixed to the component with one cut-force and cut-torque | |
| Interfaces.Frame_resolve | frame_resolve | The input signals are optionally resolved in this frame | |
| Blocks.Interfaces.RealInput[3] | force | x-, y-, z-coordinates of force resolved in frame defined by resolveInFrame | |
| Blocks.Interfaces.RealInput[3] | torque | x-, y-, z-coordinates of torque resolved in frame defined by resolveInFrame |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Color | forceColor | Modelica.Mechanics.MultiBody.Types.Defaults.ForceColor | Color of force arrow |
| Types.Color | torqueColor | Modelica.Mechanics.MultiBody.Types.Defaults.TorqueColor | Color of torque arrow |
| Types.SpecularCoefficient | specularCoefficient | world.defaultSpecularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) |
| Internal.BasicWorldForce | basicWorldForce | ||
| Internal.BasicWorldTorque | basicWorldTorque |