modelCuboidContactBody
Predefined cuboid body with contact surfaces
Information
<!DOCTYPE html><html> <p>This model defines a cuboid body that can collide with every surface. Contact surfaces can be enabled seperately. The enumeration corresponds to the chosen directions and dimensions and is displayed in the Figure.</p> <p><br/><br/><img src="resources/IdealizedContact/Images/cuboidContactBody.png"/></p> </html>
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | enableSurface1 | true | = true, if contact surface 1 shall be enabled |
| Boolean | enableSurface2 | true | = true, if contact surface 2 shall be enabled |
| Boolean | enableSurface3 | true | = true, if contact surface 3 shall be enabled |
| Boolean | enableSurface4 | true | = true, if contact surface 4 shall be enabled |
| Boolean | enableSurface5 | true | = true, if contact surface 5 shall be enabled |
| Boolean | enableSurface6 | true | = true, if contact surface 6 shall be enabled |
| SI.Density | density | 7850 | density of the material |
| SI.Length | length | 0.04 | length of the cuboid |
| SI.Length | width | 0.02 | width of the cuboid |
| SI.Length | height | 0.001 | height of the cuboid |
| Modelica.Mechanics.MultiBody.Types.Axis | lengthDirection | {1, 0, 0} | definition of the length direction |
| Modelica.Mechanics.MultiBody.Types.Axis | widthDirection | {0, 0, 1} | definition of the width direction |
| Modelica.Mechanics.MultiBody.Types.Axis | heightDirection | abs(cross(lengthDirection, widthDirection)) | |
| Boolean | animation | true | = true, if animation of the body shall be enabled |
| Modelica.Mechanics.MultiBody.Types.Color | color | {0, 0, 255} | color of shape |
| Real | pi | Modelica.Constants.pi | |
| contact surface animation | |||
| Boolean | surfaceAnimation | true | = true, if animation of contact surfaces shall be enabled |
| Boolean | surfaceAnimation_BCS | true | = true, if animation of body coordinate system of contact surfaces shall be enabled |
| Modelica.Mechanics.MultiBody.Types.Color | surfaceColor | {255, 128, 0} | color of the contact surface |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.MultiBody.Interfaces.Frame_a | frame_a | center of mass | |
| Interfaces.Contact_a | contact_a1 | ||
| Interfaces.Contact_a | contact_a2 | ||
| Interfaces.Contact_a | contact_a3 | ||
| Interfaces.Contact_a | contact_a4 | ||
| Interfaces.Contact_a | contact_a5 | ||
| Interfaces.Contact_a | contact_a6 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.MultiBody.Parts.BodyShape | bodyShape | ||
| ContactSurfaces.RectangularPlaneContactSurface | rectangularPlaneContactSurface1 | ||
| Modelica.Mechanics.MultiBody.Parts.FixedTranslation | fixedTranslation | ||
| Modelica.Mechanics.MultiBody.Parts.FixedRotation | fixedTranslation1 | ||
| ContactSurfaces.RectangularPlaneContactSurface | rectangularPlaneContactSurface2 | ||
| ContactSurfaces.RectangularPlaneContactSurface | rectangularPlaneContactSurface3 | ||
| Modelica.Mechanics.MultiBody.Parts.FixedTranslation | fixedTranslation2 | ||
| Modelica.Mechanics.MultiBody.Parts.FixedRotation | fixedTranslation3 | ||
| ContactSurfaces.RectangularPlaneContactSurface | rectangularPlaneContactSurface4 | ||
| ContactSurfaces.RectangularPlaneContactSurface | rectangularPlaneContactSurface5 | ||
| Modelica.Mechanics.MultiBody.Parts.FixedTranslation | fixedTranslation5 | ||
| Modelica.Mechanics.MultiBody.Parts.FixedRotation | fixedTranslation4 | ||
| ContactSurfaces.RectangularPlaneContactSurface | rectangularPlaneContactSurface6 |