vinf_to_energy Function

public pure function vinf_to_energy(vinfmag) result(energy)

Convert V-infinity magnitude to energy.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: vinfmag

vector magnitude [km/s]

Return Value real(kind=wp)

two-body orbital energy [km^2/s^2]


Source Code

    pure function vinf_to_energy(vinfmag) result(energy)

    implicit none

    real(wp),intent(in) :: vinfmag  !! \(v^{\infty} \) vector magnitude [km/s]
    real(wp)            :: energy   !! two-body orbital energy [km^2/s^2]

    energy = (vinfmag**2)/two

    end function vinf_to_energy