p_by_equation_of_state Function

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

Uses

  • proc~~p_by_equation_of_state~~UsesGraph proc~p_by_equation_of_state p_by_equation_of_state iso_fortran_env iso_fortran_env proc~p_by_equation_of_state->iso_fortran_env

Compute the pressure p from the density rho 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) :: rho
real(kind=real64), intent(in) :: t

Return Value real(kind=real64)


Called by

proc~~p_by_equation_of_state~~CalledByGraph proc~p_by_equation_of_state p_by_equation_of_state none~update_shared_variables update_shared_variables none~update_shared_variables->proc~p_by_equation_of_state proc~dynamics_to_physics_coupling dynamics_to_physics_coupling proc~dynamics_to_physics_coupling->none~update_shared_variables interface~dynamics_to_physics_coupling dynamics_to_physics_coupling interface~dynamics_to_physics_coupling->proc~dynamics_to_physics_coupling proc~stepon_timestep_init stepon_timestep_init proc~stepon_timestep_init->interface~dynamics_to_physics_coupling

Source Code

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

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

        p = rho * constant_r * t
    end function p_by_equation_of_state