GET_GRAVITY

Utility/Data Access SubroutineReturns the gravitational acceleration specified using Force_Gravity modeling element.

Use

The function can be called by any user-defined subroutine.

Format

Fortran Calling Syntax
CALL GET_GRAVITY(GX, GY, GZ)
C/C++ Calling Syntax
c_get_gravity(gx, gy, gz)
Python Calling Syntax
[gx, gy, gz] = py_get_gravity()
MATLAB Calling Syntax
[gx, gy, gz] = m_get_gravity()

Output

GX
[double precision]
X component of gravity.
GY
[double precision]
Y component of gravity.
GZ
[double precision]
Z component of gravity.