WOLFRAM SYSTEM MODELER

PointGravityWithPointMasses

Two point masses in a point gravity field (rotation of bodies is neglected)

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This model demonstrates the usage of model Parts.PointMass in a point gravity field. The PointMass model has the feature that the rotation is not taken into account and can therefore also not be calculated. This example demonstrates two cases where this does not matter: If a PointMass is not connected (body1, body2), the orientation object in these point masses is set to a unit rotation. If a PointMass is connected by a line force element, such as the used Forces.LineForceWithMass component, then the orientation object is set to a unit rotation within the line force element. These are the two cases where the rotation is automatically set to a default value, when the physical system does not provide the equations.

Components (6)

world

Type: World

Description: World coordinate system + gravity field + default animation definition

body1

Type: PointMass

Description: Rigid body where body rotation and inertia tensor is neglected (6 potential states)

body2

Type: PointMass

Description: Rigid body where body rotation and inertia tensor is neglected (6 potential states)

body3

Type: PointMass

Description: Rigid body where body rotation and inertia tensor is neglected (6 potential states)

body4

Type: PointMass

Description: Rigid body where body rotation and inertia tensor is neglected (6 potential states)

spring

Type: Spring

Description: Linear translational spring with optional mass