modelFixedTranslation
Fixed translation of frame_b with respect to frame_a
Information
Component for a fixed translation of frame_b with respect to frame_a, i.e., the relationship between connectors frame_a and frame_b remains constant and frame_a is always parallel to frame_b.
By default, this component is visualized by a cylinder connecting frame_a and frame_b, as shown in the figure below. Note, that the two visualized frames are not part of the component animation and that the animation may be switched off via parameter animation = false.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | animation | true | = true, if animation shall be enabled |
| SI.Position[3] | r | Vector from frame_a to frame_b resolved in frame_a | |
| Animation › if animation = true | |||
| Types.ShapeType | shapeType | "cylinder" | Type of shape |
| SI.Position[3] | r_shape | {0, 0, 0} | Vector from frame_a to shape origin, resolved in frame_a |
| Types.Axis | lengthDirection | to_unit1(r - r_shape) | Vector in length direction of shape, resolved in frame_a |
| Types.Axis | widthDirection | {0, 1, 0} | Vector in width direction of shape, resolved in frame_a |
| SI.Length | length | Modelica.Math.Vectors.length(r - r_shape) | Length of shape |
| SI.Distance | width | length/world.defaultWidthFraction | Width of shape |
| SI.Distance | height | width | Height of shape |
| Types.ShapeExtra | extra | 0.0 | Additional parameter depending on shapeType (see docu of Visualizers.Advanced.Shape) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Frame_a | frame_a | Coordinate system fixed to the component with one cut-force and cut-torque | |
| Interfaces.Frame_b | frame_b | Coordinate system fixed to the component with one cut-force and cut-torque |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Color | color | Modelica.Mechanics.MultiBody.Types.Defaults.RodColor | Color of shape |
| Types.SpecularCoefficient | specularCoefficient | world.defaultSpecularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) |