modelForceAndTorque
Extends from Modelica.Mechanics.MultiBody.Interfaces.PartialTwoFrames (Base model for components providing two frame connectors + outer world + assert to guarantee that the component is connected), ObsoleteModelica3.Icons.ObsoleteModel (Icon for an obsolete model (use only for this case)).
Information
The 6 signals of the load connector are interpreted as the x-, y- and z-coordinates of a force and as the x-, y-, and z-coordinates of a torque acting at the frame connector to which frame_b of this component is attached. If connector frame_resolve is not connected, the force and torque coordinates are with respect to frame_b. If connector frame_resolve is connected, the force and torque coordinates are with respect to frame_resolve. In this case the force and torque in connector frame_resolve are set to zero, i.e., this connector is solely used to provide the information of the coordinate system, in which the force/torque coordinates are defined. The input signals are mapped to the force and torque in the following way:
force = load[1:3] torque = load[4:6]
Additionally, a force and torque acts on frame_a in such a way that the force and torque balance between frame_a and frame_b is fulfilled.
An example how to use this model is given in the following figure:
This leads to the following animation (the yellow cylinder characterizes the line between frame_a and frame_b of the ForceAndTorque component, i.e., the force and torque acts with negative sign also on the opposite side of this cylinder, but for clarity this is not shown in the animation):

Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | animation | true | = true, if animation shall be enabled |
| if animation = true | |||
| Real | N_to_m | world.defaultN_to_m | Force arrow scaling (length = force/N_to_m) |
| Real | Nm_to_m | world.defaultNm_to_m | Torque arrow scaling (length = torque/Nm_to_m) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Frame_a | frame_a (from PartialTwoFrames) | Coordinate system a fixed to the component with one cut-force and cut-torque | |
| Interfaces.Frame_b | frame_b (from PartialTwoFrames) | Coordinate system b fixed to the component with one cut-force and cut-torque | |
| Modelica.Mechanics.MultiBody.Interfaces.Frame_resolve | frame_resolve | If connected, the input signals are resolved in this frame | |
| Modelica.Blocks.Interfaces.RealInput[6] | load | [1:6] = x-, y-, z-coordinates of force and x-, y-, z-coordiantes of torque resolved in frame_b or frame_resolved (if connected) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Diameter | forceDiameter | world.defaultArrowDiameter | Diameter of force arrow |
| SI.Diameter | torqueDiameter | forceDiameter | Diameter of torque arrow |
| SI.Diameter | connectionLineDiameter | forceDiameter | Diameter of line connecting frame_a and frame_b |
| 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.Color | connectionLineColor | Modelica.Mechanics.MultiBody.Types.Defaults.SensorColor | Color of line connecting frame_a and frame_b |
| Types.SpecularCoefficient | specularCoefficient | world.defaultSpecularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) |
| SI.Position[3] | r_0 | Position vector from origin of frame_a to origin of frame_b resolved in world frame | |
| SI.Force[3] | f_b_0 | frame_b.f resolved in world frame | |
| SI.Torque[3] | t_b_0 | frame_b.t resolved in world frame |