Accgrav

Model ElementAccgrav defines the acceleration due to gravity along the global X, Y, and Z directions.

Class Name

Accgrav

Attribute Summary

Name Property Modifiable by Command? Designable?
igrav Double (0) Yes FD Only
jgrav Double (0) Yes
kgrav Double (0) Yes

Usage

Accgrav (optional_attributes)

Attributes

igrav
Double
Defines the acceleration due to gravity in the global X direction.
The igrav attribute is optional. When not specified, it defaults to 0.0.
jgrav
Double
Defines the acceleration due to gravity in the global Y direction.
The jgrav attribute is optional. When not specified, it defaults to 0.0.
kgrav
Double
Defines the acceleration due to gravity in the global Z direction.
The kgrav attribute is optional. When not specified, it defaults to 0.0.

Example

Specify gravity on the surface of the Earth, Jupiter, and the Sun in m/s2.
# Earth
Accgrav (kgrav=-9.81)

# Jupiter
Accgrav (kgrav=-24.79)

# Sun
Accgrav (kgrav=-274.87)