function_of_pstar_PT Function

public function function_of_pstar_PT(sgnBC, Pstar, Rotank, Ctank, Ptank, Einttank, p_LR, u_LR, z_LR)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: sgnBC
real(kind=dp), intent(in) :: Pstar
real(kind=dp), intent(in) :: Rotank
real(kind=dp), intent(in) :: Ctank
real(kind=dp), intent(in) :: Ptank
real(kind=dp), intent(in) :: Einttank
real(kind=dp), intent(in) :: p_LR
real(kind=dp), intent(in) :: u_LR
real(kind=dp), intent(in) :: z_LR

Return Value real(kind=dp)


Calls

proc~~function_of_pstar_pt~~CallsGraph proc~function_of_pstar_pt function_of_pstar_PT proc~state_rop state_roP proc~function_of_pstar_pt->proc~state_rop proc~jacobian_rot jacobian_roT proc~state_rop->proc~jacobian_rot proc~t_rop T_roP proc~state_rop->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~~function_of_pstar_pt~~CalledByGraph proc~function_of_pstar_pt function_of_pstar_PT proc~solve_boundary_pt solve_boundary_PT proc~solve_boundary_pt->proc~function_of_pstar_pt proc~boundary_resolution_from_and_to_ports boundary_resolution_from_and_to_ports proc~boundary_resolution_from_and_to_ports->proc~solve_boundary_pt proc~main_loop main_loop proc~main_loop->proc~boundary_resolution_from_and_to_ports program~reims_p reims_p program~reims_p->proc~main_loop

Source Code

function function_of_pstar_PT(sgnBC,Pstar,Rotank,Ctank,Ptank,Einttank,p_LR,u_LR,z_LR)
        
  real(dp), intent(in) :: sgnBC,Pstar,Rotank,Ctank,Ptank,Einttank,p_LR,u_LR,z_LR
  real(dp) :: function_of_pstar_PT, ustar, rostar_LR, Tstar_LR, R_Corr_star_LR, estar_LR, Cstar_LR

  rostar_LR=Rotank+(Pstar-Ptank)/(Ctank**2)
  Ustar=u_LR+sgnBC*(Pstar-p_LR)/z_LR
  call state_roP(rostar_LR, Pstar, R_Corr_star_LR, estar_LR, Tstar_LR, Cstar_LR)

  function_of_pstar_PT=estar_LR+Pstar/rostar_LR+0.5_dp*(ustar**2)-Einttank-Ptank/Rotank      

end function function_of_pstar_PT