state_roE_withR Subroutine

public subroutine state_roE_withR(ro, e, r, p, T, c)

State from (ro,e) when r is already known: p, T, c.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: ro
real(kind=dp), intent(in) :: e
real(kind=dp), intent(in) :: r
real(kind=dp), intent(out) :: p
real(kind=dp), intent(out) :: T
real(kind=dp), intent(out) :: c

Calls

proc~~state_roe_withr~~CallsGraph proc~state_roe_withr state_roE_withR proc~jacobian_rot jacobian_roT proc~state_roe_withr->proc~jacobian_rot proc~t_rop T_roP proc~state_roe_withr->proc~t_rop proc~eos_terms eos_terms proc~jacobian_rot->proc~eos_terms proc~brent brent proc~t_rop->proc~brent proc~fill_f_terms fill_f_terms proc~t_rop->proc~fill_f_terms proc~fill_g_dreg_terms fill_g_Dreg_terms proc~t_rop->proc~fill_g_dreg_terms f f proc~brent->f proc~set_error set_error proc~brent->proc~set_error proc~zero zero proc~brent->proc~zero proc~eos_terms->proc~fill_f_terms proc~eos_e_terms eos_e_terms proc~eos_terms->proc~eos_e_terms proc~fill_e_tpart fill_e_Tpart proc~eos_e_terms->proc~fill_e_tpart proc~fill_ff_terms fill_ff_terms proc~eos_e_terms->proc~fill_ff_terms proc~zero->f proc~fill_e_tpart->proc~fill_g_dreg_terms

Called by

proc~~state_roe_withr~~CalledByGraph proc~state_roe_withr state_roE_withR proc~friction_source_term friction_source_term proc~friction_source_term->proc~state_roe_withr proc~from_sol_to_prim_channel from_sol_to_prim_channel proc~from_sol_to_prim_channel->proc~state_roe_withr proc~sourceterms_notfriction_channel SourceTerms_NOTfriction_channel proc~sourceterms_notfriction_channel->proc~state_roe_withr proc~main_loop main_loop proc~main_loop->proc~friction_source_term proc~main_loop->proc~from_sol_to_prim_channel proc~source_term_definition_channel source_term_definition_channel proc~main_loop->proc~source_term_definition_channel proc~full_physics_definition_channel full_physics_definition_channel proc~main_loop->proc~full_physics_definition_channel proc~source_term_definition_channel->proc~sourceterms_notfriction_channel proc~full_physics_definition_channel->proc~source_term_definition_channel program~reims_p reims_p program~reims_p->proc~main_loop

Source Code

subroutine state_roE_withR(ro, e, r, p, T, c)
    !! State from (ro,e) when r is already known: p, T, c.
    real(dp), intent(in)  :: ro, e, r
    real(dp), intent(out) :: p, T, c
    real(dp) :: dPdRo, dPdT, dTdRo, cv

    p = r - ro*e
    T = T_roP(ro, p)
    call jacobian_roT(ro, T, cv, dPdT, dTdRo=dTdRo)
    dPdRo = -dTdRo*dPdT
    c = sqrt(dPdRo + T*(dPdT**2)/(cv*(ro**2)))
end subroutine state_roE_withR