standardGravityAccelerationStandard gravity fields (no/parallel/point field) |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This function defines the standard gravity fields for the World object.
gravityType | gravity [m/s2] | description |
Types.GravityType.NoGravity | = {0,0,0} | No gravity |
Types.GravityType.UniformGravity | = g | Constant parallel gravity field |
Types.GravityType.PointGravity | = -(mu/(r*r))*r/|r| | Point gravity field with spherical mass |
r |
Type: Position[3] (m) Description: Position vector from world frame to actual point, resolved in world frame |
---|---|
gravityType |
Type: GravityTypes Description: Type of gravity field |
g |
Type: Acceleration[3] (m/s²) Description: Constant gravity acceleration, resolved in world frame, if gravityType=UniformGravity |
mu |
Type: Real (m³/s²) Description: Field constant of point gravity field, if gravityType=PointGravity |
gravity |
Type: Acceleration[3] (m/s²) Description: Gravity acceleration at position r, resolved in world frame |
---|
Modelica.Mechanics.MultiBody.World Function to compute the gravity acceleration, resolved in world frame |