private called by junction solve
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | PPP(Nb_VarP) | |||
| real(kind=dp), | intent(out) | :: | Jacob_star(Nb_VarC,Nb_VarC) |
subroutine jacobian_star_Req_rem_loc(PPP, Jacob_star) !! private called by junction solve real(dp), intent(in) :: PPP(Nb_VarP) real(dp), intent(out) :: Jacob_star(Nb_VarC,Nb_VarC) real(dp) :: HH,kk,KKK,dPde,dPdT,dedT HH = PPP(Pri_e) + 0.5_dp * PPP(Pri_u)**2 + PPP(Pri_p) / PPP(Pri_ro) call jacobian_roT(PPP(Pri_ro), PPP(Pri_T), dedT, dPdT) dPde = dPdT / dedT kk = dPde / PPP(Pri_ro) KKK = PPP(Pri_c)**2 + kk * (PPP(Pri_u)**2 - HH) Jacob_star = 0.0_dp Jacob_star(2,1) = 1.0_dp Jacob_star(1,2) = KKK - PPP(Pri_u)**2 Jacob_star(2,2) = PPP(Pri_u) * (2.0_dp - kk) Jacob_star(3,2) = kk Jacob_star(1,3) = (KKK-HH) * PPP(Pri_u) Jacob_star(2,3) = HH - kk * PPP(Pri_u)**2 Jacob_star(3,3) = PPP(Pri_u) * (1.0_dp + kk) end subroutine jacobian_star_Req_rem_loc