.Modelica.Mechanics.MultiBody.Forces.Internal.standardGravityAcceleration

Information

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

Interface

function standardGravityAcceleration
  extends Modelica.Icons.Function;
  extends Modelica.Mechanics.MultiBody.Interfaces.partialGravityAcceleration;
  import Modelica.Mechanics.MultiBody.Types.GravityTypes;
  input GravityTypes gravityType "Type of gravity field" annotation(
    Dialog);
  input SI.Acceleration g[3] "Constant gravity acceleration, resolved in world frame, if gravityType=UniformGravity" annotation(
    Dialog);
  input Real mu(unit = "m3/s2") "Field constant of point gravity field, if gravityType=PointGravity" annotation(
    Dialog);
end standardGravityAcceleration;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos