Gradient of the third-body acceleration , , with respect to the spacecraft position (the indirect term does not depend on it): . This is also the gradient of Battin's equivalent form (the same function).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(3) | :: | r |
spacecraft 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] |
pure function third_body_gravity_gradient(r,rb,mu) result(grad) implicit none real(wp),dimension(3),intent(in) :: r !! spacecraft position vector [km] real(wp),dimension(3),intent(in) :: rb !! third-body position vector [km] real(wp),intent(in) :: mu !! third-body gravitational parameter [km^3/s^2] real(wp),dimension(3,3) :: grad grad = point_gradient(r-rb,mu) ! (a function of r - rb only) end function third_body_gravity_gradient