rho_by_equation_of_state Function

public pure elemental function rho_by_equation_of_state(constant_r, p, t) result(rho)

Uses

  • proc~~rho_by_equation_of_state~~UsesGraph proc~rho_by_equation_of_state rho_by_equation_of_state iso_fortran_env iso_fortran_env proc~rho_by_equation_of_state->iso_fortran_env

Compute the density rho from the pressure p and the temperature t by equation of state. Essentially, . Equation of state may take other forms, such as , , . Choose wisely which form to use. (KCW, 2025-07-10)

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: constant_r
real(kind=real64), intent(in) :: p
real(kind=real64), intent(in) :: t

Return Value real(kind=real64)


Called by

proc~~rho_by_equation_of_state~~CalledByGraph proc~rho_by_equation_of_state rho_by_equation_of_state none~set_mpas_state_rho_base_theta_base set_mpas_state_rho_base_theta_base none~set_mpas_state_rho_base_theta_base->proc~rho_by_equation_of_state none~set_mpas_state_rho_theta set_mpas_state_rho_theta none~set_mpas_state_rho_theta->proc~rho_by_equation_of_state proc~set_analytic_initial_condition set_analytic_initial_condition proc~set_analytic_initial_condition->none~set_mpas_state_rho_base_theta_base 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 rho_by_equation_of_state(constant_r, p, t) result(rho)
        use, intrinsic :: iso_fortran_env, only: real64

        real(real64), intent(in) :: constant_r, p, t
        real(real64) :: rho

        rho = p / (constant_r * t)
    end function rho_by_equation_of_state