68 TYPE(t_region
),
POINTER :: pregion
75 CHARACTER(CHRLEN) :: rcsidentstring
77 REAL(RFREAL):: bp,bt,cavno,cvg,cvl,cvv,dinf,fac,fvol,
k,kf,kv,linf,
n,p, &
78 pinfpe,po,pv,rg,rhov,rhol,ro,rv,ryl,sv,t,tauf,tauv,to,ts, &
80 REAL(RFREAL),
DIMENSION(:),
POINTER :: vol
81 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcvmixt,pcvspec,pdvmixt,rhsmixt, &
89 '$RCSfile: SPEC_RFLU_SourceTerms_GL.F90,v $ $Revision: 1.5 $'
91 global => pregion%global
94 'SPEC_RFLU_SourceTerms_GL.F90')
100 pcvmixt => pregion%mixt%cv
101 pcvspec => pregion%spec%cv
102 pdvmixt => pregion%mixt%dv
104 rhsmixt => pregion%mixt%rhs
105 rhsspec => pregion%spec%rhs
107 vol => pregion%grid%vol
113 ro = global%refDensityLiq
114 po = global%refPressLiq
115 to = global%refTempLiq
116 bp = global%refBetaPLiq
117 bt = global%refBetaTLiq
118 cvl = global%refCvLiq
120 rg =
mixtperf_r_m(pregion%specInput%specType(1)%pMaterial%molw)
123 rv =
mixtperf_r_m(pregion%specInput%specType(2)%pMaterial%molw)
126 fac = 1.5_rfreal/global%dtMin
128 DO icg = 1,pregion%grid%nCellsTot
129 p = pdvmixt(dv_mixt_pres,icg)
130 t = pdvmixt(dv_mixt_temp,icg)
131 ryl = pcvmixt(cv_mixt_dens,icg) - pcvspec(1,icg) - pcvspec(2,icg)
134 pv = 100.0_rfreal*(10.0_rfreal**(10.79574_rfreal*(1.0_rfreal-ts/t) &
135 - 5.02800_rfreal*log10(t/ts) &
136 + 1.50475e-04_rfreal*(1.0_rfreal &
137 - 10.0_rfreal**(-8.2969_rfreal*(t/ts-1.0_rfreal))) &
138 + 0.42873e-03_rfreal &
139 * (10.0_rfreal**(4.76955*(1.0_rfreal-ts/t))-1.0_rfreal) &
146 dinf = 882.655_rfreal
148 linf = 2.0e-03_rfreal
150 pinfpe = 0.5_rfreal*dinf*vinf*vinf
152 tauv = 0.00001_rfreal
153 tauf = 0.00001_rfreal
155 kf = ((0.5_rfreal*(
sign(1.0_rfreal,p-pv) &
156 - 1.0_rfreal)*(p-pv))/(tauf*(pinfpe)))*vlinf
157 kv = ((0.5_rfreal*(-
sign(1.0_rfreal,p-pv) &
158 - 1.0_rfreal)*(p-pv))/(tauv*(pinfpe)))*vlinf
160 sv = kf*ryl + kv*pcvspec(2,icg)
162 rhsspec(2,icg) = rhsspec(2,icg) - vol(icg)*sv
real(rfreal) function mixtperf_r_m(M)
static SURF_BEGIN_NAMESPACE double sign(double x)
subroutine spec_rflu_sourceterms_gl(pRegion)
subroutine registerfunction(global, funName, fileName)
real(rfreal) function mixtperf_d_prt(P, R, T)
real(rfreal) function mixtperf_r_cpg(Cp, G)
real(rfreal) function mixtliq_d_dobpppobttto(Dz, Bp, Bt, P, Po, T, To)
subroutine deregisterfunction(global)
real(rfreal) function mixtperf_cv_cpr(Cp, R)