66 TYPE(t_region
),
POINTER :: pregion
72 CHARACTER(CHRLEN) :: rcsidentstring
73 INTEGER :: cvmixtxvel,cvmixtyvel,cvmixtzvel,c1,c2,ifg,ipatch
75 REAL(RFREAL) :: flx(3)
76 REAL(RFREAL),
DIMENSION(:),
POINTER :: pvf
77 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,prhs
79 TYPE(t_grid),
POINTER :: pgrid
85 rcsidentstring =
'$RCSfile: RFLU_InvFlux_I.F90,v $ $Revision: 1.3 $'
87 global => pregion%global
98 pcv => pregion%mixt%cv
99 prhs => pregion%mixt%rhs
100 pvf => pregion%mixt%vfMixt
102 cvmixtxvel =
rflu_getcvloc(global,fluid_model_incomp,cv_mixt_xvel)
103 cvmixtyvel =
rflu_getcvloc(global,fluid_model_incomp,cv_mixt_yvel)
104 cvmixtzvel =
rflu_getcvloc(global,fluid_model_incomp,cv_mixt_zvel)
110 DO ifg = 1,pgrid%nFaces
111 c1 = pgrid%f2c(1,ifg)
112 c2 = pgrid%f2c(2,ifg)
114 term = 0.5_rfreal*pvf(ifg)*pgrid%fn(xyzmag,ifg)
116 flx(1) = pcv(cvmixtxvel,c2)*
term
117 flx(2) = pcv(cvmixtyvel,c2)*
term
118 flx(3) = pcv(cvmixtzvel,c2)*
term
120 prhs(cvmixtxvel,c1) = prhs(cvmixtxvel,c1) - flx(1)
121 prhs(cvmixtyvel,c1) = prhs(cvmixtyvel,c1) - flx(2)
122 prhs(cvmixtzvel,c1) = prhs(cvmixtzvel,c1) - flx(3)
124 flx(1) = -pcv(cvmixtxvel,c1)*
term
125 flx(2) = -pcv(cvmixtyvel,c1)*
term
126 flx(3) = -pcv(cvmixtzvel,c1)*
term
128 prhs(cvmixtxvel,c2) = prhs(cvmixtxvel,c2) - flx(1)
129 prhs(cvmixtyvel,c2) = prhs(cvmixtyvel,c2) - flx(2)
130 prhs(cvmixtzvel,c2) = prhs(cvmixtzvel,c2) - flx(3)
INTEGER function rflu_getcvloc(global, fluidModel, var)
subroutine registerfunction(global, funName, fileName)
subroutine rflu_centralfirstpatch(pRegion, pPatch)
subroutine deregisterfunction(global)
subroutine rflu_invflux_i(pRegion)