tv_of_tm_qv Function

public pure elemental function tv_of_tm_qv(tm, qv) result(tv)

Uses

  • proc~~tv_of_tm_qv~~UsesGraph proc~tv_of_tm_qv tv_of_tm_qv iso_fortran_env iso_fortran_env proc~tv_of_tm_qv->iso_fortran_env

Compute the virtual temperature tv as a function of the modified moist temperature tm and the water vapor mixing ratio qv. Essentially, . This modified "moist" temperature is described herein: The paragraph below equation 2.7 in doi:10.5065/1DFH-6P97. The paragraph below equation 2 in doi:10.1175/MWR-D-11-00215.1. Similarly, it can be shown that the relation, , also holds. (KCW, 2025-07-11)

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: tm
real(kind=real64), intent(in) :: qv

Return Value real(kind=real64)


Called by

proc~~tv_of_tm_qv~~CalledByGraph proc~tv_of_tm_qv tv_of_tm_qv none~set_mpas_state_rho_theta set_mpas_state_rho_theta none~set_mpas_state_rho_theta->proc~tv_of_tm_qv proc~set_analytic_initial_condition set_analytic_initial_condition proc~set_analytic_initial_condition->none~set_mpas_state_rho_theta proc~dyn_init dyn_init proc~dyn_init->proc~set_analytic_initial_condition interface~dyn_init dyn_init interface~dyn_init->proc~dyn_init

Source Code

    pure elemental function tv_of_tm_qv(tm, qv) result(tv)
        use, intrinsic :: iso_fortran_env, only: real64

        real(real64), intent(in) :: tm, qv
        real(real64) :: tv

        tv = tm / (1.0_real64 + qv)
    end function tv_of_tm_qv