Compute the vertical pressure velocity omega
as a function of the vertical velocity w
and the density rho
.
Essentially, .
(KCW, 2025-07-10)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | constant_g | |||
real(kind=real64), | intent(in) | :: | w | |||
real(kind=real64), | intent(in) | :: | rho |
pure elemental function omega_of_w_rho(constant_g, w, rho) result(omega) use, intrinsic :: iso_fortran_env, only: real64 real(real64), intent(in) :: constant_g, w, rho real(real64) :: omega omega = -rho * constant_g * w end function omega_of_w_rho