shgrav_g_acc_one Interface

interface
public module subroutine shgrav_g_acc_one(GMcb, r_0, phi_cb, rh, c_lm, g_sph, GMpl, aoblcb)

Arguments

Type IntentOptional Attributes Name
real(kind=DP), intent(in) :: GMcb

GMass of the central body

real(kind=DP), intent(in) :: r_0

radius of the central body

real(kind=DP), intent(in) :: phi_cb

rotation phase angle of the central body

real(kind=DP), intent(in), dimension(:) :: rh

distance vector of body

real(kind=DP), intent(in), dimension(:, :, :) :: c_lm

Spherical Harmonic coefficients

real(kind=DP), intent(out), dimension(NDIM) :: g_sph

acceleration vector

real(kind=DP), intent(in), optional :: GMpl

Mass of input body if it is not a test particle

real(kind=DP), intent(inout), optional, dimension(:) :: aoblcb

Barycentric acceleration of central body (only for massive input b

Description

Calculate the acceleration terms for one pair of bodies given c_lm, theta, phi, r