t_by_equation_of_state Function

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

Uses

  • proc~~t_by_equation_of_state~~UsesGraph proc~t_by_equation_of_state t_by_equation_of_state iso_fortran_env iso_fortran_env proc~t_by_equation_of_state->iso_fortran_env

Compute the temperature t from the pressure p and the density rho 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) :: rho

Return Value real(kind=real64)


Source Code

    pure elemental function t_by_equation_of_state(constant_r, p, rho) result(t)
        use, intrinsic :: iso_fortran_env, only: real64

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

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