Compute the pressure p2
at height z2
from the pressure p1
at height z1
by hypsometric equation.
tv
is the mean virtual temperature between z1
and z2
. Essentially,
.
(KCW, 2024-07-02)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | constant_g | |||
real(kind=real64), | intent(in) | :: | constant_rd | |||
real(kind=real64), | intent(in) | :: | p1 | |||
real(kind=real64), | intent(in) | :: | z1 | |||
real(kind=real64), | intent(in) | :: | tv | |||
real(kind=real64), | intent(in) | :: | z2 |
pure elemental function p_by_hypsometric_equation(constant_g, constant_rd, p1, z1, tv, z2) result(p2) use, intrinsic :: iso_fortran_env, only: real64 real(real64), intent(in) :: constant_g, constant_rd, p1, z1, tv, z2 real(real64) :: p2 p2 = p1 * exp(-(z2 - z1) * constant_g / (constant_rd * tv)) end function p_by_hypsometric_equation