54 TYPE(t_region
),
TARGET :: pregion
55 INTEGER,
INTENT(IN) :: cvstatefuture
61 CHARACTER(CHRLEN) :: rcsidentstring
63 REAL(RFREAL) :: ir,mol,p,
r,rgas
64 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,pdv,pgv
65 TYPE(t_grid),
POINTER :: pgrid
72 rcsidentstring =
'$RCSfile: TURB_fluCv2Prim.F90,v $ $Revision: 1.4 $'
74 global => pregion%global
77 'TURB_fluCv2Prim.F90')
84 pcv => pregion%mixt%cv
85 pdv => pregion%mixt%dv
86 pgv => pregion%mixt%gv
88 indmol = pregion%mixtInput%indMol
94 SELECT CASE (pregion%mixt%cvState)
100 CASE (cv_mixt_state_cons)
101 SELECT CASE (cvstatefuture)
107 CASE (cv_mixt_state_duvwp)
108 pregion%mixt%cvState = cv_mixt_state_duvwp
110 DO ic = 1,pgrid%nCellsTot
111 ir = 1.0_rfreal/pcv(cv_mixt_dens,
ic)
113 pcv(cv_mixt_xvel,
ic) = ir*pcv(cv_mixt_xmom,
ic)
114 pcv(cv_mixt_yvel,
ic) = ir*pcv(cv_mixt_ymom,
ic)
115 pcv(cv_mixt_zvel,
ic) = ir*pcv(cv_mixt_zmom,
ic)
117 pcv(cv_mixt_pres,
ic) = pdv(dv_mixt_pres,
ic)
124 CASE (cv_mixt_state_duvwt)
125 pregion%mixt%cvState = cv_mixt_state_duvwt
127 SELECT CASE (pregion%mixtInput%gasModel)
131 CASE (gas_model_tcperf)
132 DO ic = 1,pgrid%nCellsTot
133 r = pcv(cv_mixt_dens,
ic)
134 p = pdv(dv_mixt_pres,
ic)
137 pcv(cv_mixt_xvel,
ic) = ir*pcv(cv_mixt_xmom,
ic)
138 pcv(cv_mixt_yvel,
ic) = ir*pcv(cv_mixt_ymom,
ic)
139 pcv(cv_mixt_zvel,
ic) = ir*pcv(cv_mixt_zmom,
ic)
141 mol = pgv(gv_mixt_mol,indmol*
ic)
148 CALL
errorstop(global,err_reached_default,__line__)
151 CALL
errorstop(global,err_reached_default,__line__)
159 CALL
errorstop(global,err_reached_default,__line__)
real(rfreal) function mixtperf_r_m(M)
subroutine registerfunction(global, funName, fileName)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE ic
real(rfreal) function mixtperf_t_dpr(D, P, R)
subroutine turb_flucv2prim(pRegion, cvStateFuture)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)