gravity_module Module

Gravity model

See also


Uses

  • module~~gravity_module~~UsesGraph module~gravity_module gravity_module iso_fortran_env iso_fortran_env module~gravity_module->iso_fortran_env module~kind_module kind_module module~gravity_module->module~kind_module module~numbers_module numbers_module module~gravity_module->module~numbers_module module~kind_module->iso_fortran_env module~numbers_module->module~kind_module

Used by

  • module~~gravity_module~~UsedByGraph module~gravity_module gravity_module module~fortran_astrodynamics_toolkit fortran_astrodynamics_toolkit module~fortran_astrodynamics_toolkit->module~gravity_module

Subroutines

public subroutine third_body_gravity(r, rb, mu, acc)

Third-body (pointmass) gravitational acceleration.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(3) :: r

satellite position vector [km]

real(kind=wp), intent(in), dimension(3) :: rb

third-body position vector [km]

real(kind=wp), intent(in) :: mu

third-body gravitational parameter [km^3/s^2]

real(kind=wp), intent(out), dimension(3) :: acc

gravity acceleration vector [km/s^2]

public subroutine gravity_j2_j3_j4(r, mu, req, j2, j3, j4, acc)

Gravitational acceleration due to simplified spherical harmonic expansion (only the J2-J4 terms are used).

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(3) :: r

satellite position vector [km]

real(kind=wp), intent(in) :: mu

central body gravitational parameter [km^3/s^2]

real(kind=wp), intent(in) :: req

body equatorial radius [km]

real(kind=wp), intent(in) :: j2

j2 coefficient

real(kind=wp), intent(in) :: j3

j3 coefficient

real(kind=wp), intent(in) :: j4

j4 coefficient

real(kind=wp), intent(out), dimension(3) :: acc

gravity acceleration vector [km/s^2]