t_of_tm_qv Function

public pure elemental function t_of_tm_qv(constant_rd, constant_rv, tm, qv) result(t)

Uses

  • proc~~t_of_tm_qv~~UsesGraph proc~t_of_tm_qv t_of_tm_qv iso_fortran_env iso_fortran_env proc~t_of_tm_qv->iso_fortran_env

Compute the temperature t 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-10)

Arguments

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

Return Value real(kind=real64)


Called by

proc~~t_of_tm_qv~~CalledByGraph proc~t_of_tm_qv t_of_tm_qv none~set_mpas_physics_tendency_rtheta set_mpas_physics_tendency_rtheta none~set_mpas_physics_tendency_rtheta->proc~t_of_tm_qv none~update_shared_variables update_shared_variables none~update_shared_variables->proc~t_of_tm_qv proc~dynamics_to_physics_coupling dynamics_to_physics_coupling proc~dynamics_to_physics_coupling->none~update_shared_variables proc~physics_to_dynamics_coupling physics_to_dynamics_coupling proc~physics_to_dynamics_coupling->none~set_mpas_physics_tendency_rtheta interface~dynamics_to_physics_coupling dynamics_to_physics_coupling interface~dynamics_to_physics_coupling->proc~dynamics_to_physics_coupling interface~physics_to_dynamics_coupling physics_to_dynamics_coupling interface~physics_to_dynamics_coupling->proc~physics_to_dynamics_coupling proc~stepon_run2 stepon_run2 proc~stepon_run2->interface~physics_to_dynamics_coupling proc~stepon_timestep_init stepon_timestep_init proc~stepon_timestep_init->interface~dynamics_to_physics_coupling

Source Code

    pure elemental function t_of_tm_qv(constant_rd, constant_rv, tm, qv) result(t)
        use, intrinsic :: iso_fortran_env, only: real64

        real(real64), intent(in) :: constant_rd, constant_rv, tm, qv
        real(real64) :: t

        t = tm / (1.0_real64 + constant_rv / constant_rd * qv)
    end function t_of_tm_qv