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 | = -(mue/(r*r))*r/|r| | Point gravity field with spherical mass |
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 Modelica.SIunits.Acceleration g[3] "Constant gravity acceleration, resolved in world frame, if gravityType=UniformGravity" annotation( Dialog); input Real mue(unit = "m3/s2") "Field constant of point gravity field, if gravityType=PointGravity" annotation( Dialog); end standardGravityAcceleration;