Full state from (ro,T): r, p, e, c.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | ro | |||
| real(kind=dp), | intent(in) | :: | T | |||
| real(kind=dp), | intent(out) | :: | r | |||
| real(kind=dp), | intent(out) | :: | p | |||
| real(kind=dp), | intent(out) | :: | e | |||
| real(kind=dp), | intent(out) | :: | c |
elemental subroutine state_roT(ro, T, r, p, e, c) !! Full state from (ro,T): r, p, e, c. real(dp), intent(in) :: ro, T real(dp), intent(out) :: r, p, e, c real(dp) :: dPdRo, dPdT, dTdRo, cv call jacobian_roT(ro, T, cv, dPdT, dTdRo=dTdRo, r=r, p=p) dPdRo = -dTdRo*dPdT c = sqrt(dPdRo + T*(dPdT**2)/(cv*(ro**2))) e = (r - p)/ro end subroutine state_roT