64 TYPE(t_region
),
DIMENSION(:),
POINTER :: regions
70 CHARACTER(CHRLEN) :: rcsidentstring
74 TYPE(t_region
),
POINTER :: pregion
81 '$RCSfile: RFLU_DerivedInputValues.F90,v $ $Revision: 1.21 $'
83 global => regions(1)%global
86 'RFLU_DerivedInputValues.F90')
88 IF ( global%myProcid == masterproc .AND. &
89 global%verbLevel >= verbose_high )
THEN
90 WRITE(stdout,
'(A,1X,A)') solver_name,
'Setting derived input variables...'
97 IF ( global%refREnum > 0.0_rfreal )
THEN
98 global%refVisc = global%refDensity*global%RefVelocity*global%refLength/ &
101 global%refVisc = 0.0_rfreal
108 DO ireg = lbound(regions,1),ubound(regions,1)
109 pregion => regions(ireg)
110 pmixtinput => pregion%mixtInput
116 SELECT CASE ( pmixtinput%fluidModel )
117 CASE ( fluid_model_incomp )
121 CASE ( fluid_model_comp )
126 SELECT CASE ( pmixtinput%gasModel )
127 CASE ( gas_model_tcperf )
128 pmixtinput%nGvAct = 0
131 pmixtinput%indMol = 0
132 CASE ( gas_model_mixt_tcperf )
133 pmixtinput%nGvAct = 2
136 pmixtinput%indMol = 1
137 CASE ( gas_model_mixt_pseudo )
138 pmixtinput%nGvAct = 2
141 pmixtinput%indMol = 1
142 CASE ( gas_model_mixt_gasliq )
143 pmixtinput%nGvAct = 0
146 pmixtinput%indMol = 1
148 CALL
errorstop(global,err_reached_default,__line__)
151 CALL
errorstop(global,err_reached_default,__line__)
154 IF ( pmixtinput%flowModel == flow_navst )
THEN
155 pmixtinput%computeTv = .true.
157 pmixtinput%computeTv = .false.
160 IF ( pmixtinput%computeTv )
THEN
170 IF ( pmixtinput%refVisc < 0.0_rfreal )
THEN
171 pmixtinput%refVisc = global%refVisc
174 pmixtinput%prLam = global%prLam
175 pmixtinput%prTurb = global%prTurb
176 pmixtinput%scnLam = global%scnLam
177 pmixtinput%scnTurb = global%scnTurb
184 IF ( pmixtinput%stencilDimensCells > 1 )
THEN
185 pmixtinput%stencilDimensCells = pmixtinput%dimens
188 IF ( pmixtinput%stencilDimensFaces > 1 )
THEN
189 pmixtinput%stencilDimensFaces = pmixtinput%dimens
192 IF ( pmixtinput%stencilDimensBFaces > 1 )
THEN
193 pmixtinput%stencilDimensBFaces = pmixtinput%dimens
200 IF ( pmixtinput%moveGrid .EQV. .true. )
THEN
201 pregion%grid%indGs = 1
203 pregion%grid%indGs = 0
210 IF ( global%flowType == flow_steady )
THEN
213 SELECT CASE ( global%rkScheme )
214 CASE ( rk_scheme_4_classical )
216 CASE ( rk_scheme_3_wray )
219 CALL
errorstop(global,err_reached_default,__line__)
223 IF ( global%flowType == flow_steady )
THEN
224 pmixtinput%ark(1) = 0.0695_rfreal
225 pmixtinput%ark(2) = 0.1602_rfreal
226 pmixtinput%ark(3) = 0.2898_rfreal
227 pmixtinput%ark(4) = 0.5060_rfreal
228 pmixtinput%ark(5) = 1.0000_rfreal
230 pmixtinput%betrk(1) = 1.0000_rfreal
231 pmixtinput%betrk(2) = 0.0000_rfreal
232 pmixtinput%betrk(3) = 0.5600_rfreal
233 pmixtinput%betrk(4) = 0.0000_rfreal
234 pmixtinput%betrk(5) = 0.4400_rfreal
236 pmixtinput%ldiss(1) = 1
237 pmixtinput%ldiss(2) = 0
238 pmixtinput%ldiss(3) = 1
239 pmixtinput%ldiss(4) = 0
240 pmixtinput%ldiss(5) = 1
242 SELECT CASE ( global%rkScheme )
243 CASE ( rk_scheme_4_classical )
244 pmixtinput%ark(1) = 0.5_rfreal
245 pmixtinput%ark(2) = 0.5_rfreal
246 pmixtinput%ark(3) = 1.0_rfreal
247 pmixtinput%ark(4) = 1.0_rfreal/6.0_rfreal
249 pmixtinput%betrk(1) = 1.0_rfreal
250 pmixtinput%betrk(2) = 1.0_rfreal
251 pmixtinput%betrk(3) = 1.0_rfreal
252 pmixtinput%betrk(4) = 1.0_rfreal
254 pmixtinput%grk(1) = 1.0_rfreal
255 pmixtinput%grk(2) = 2.0_rfreal
256 pmixtinput%grk(3) = 2.0_rfreal
257 pmixtinput%grk(4) = 1.0_rfreal
259 pmixtinput%trk(1) = 0.0_rfreal
260 pmixtinput%trk(2) = 0.5_rfreal
261 pmixtinput%trk(3) = 0.5_rfreal
262 pmixtinput%trk(4) = 1.0_rfreal
264 pmixtinput%ldiss(1) = 1
265 pmixtinput%ldiss(2) = 1
266 pmixtinput%ldiss(3) = 1
267 pmixtinput%ldiss(4) = 1
269 pmixtinput%cfl =
min(pmixtinput%cfl,3.0_rfreal)
270 CASE ( rk_scheme_3_wray )
271 pmixtinput%ark(1) = 8.0_rfreal/15.0_rfreal
272 pmixtinput%ark(2) = 5.0_rfreal/12.0_rfreal
273 pmixtinput%ark(3) = 0.75_rfreal
275 pmixtinput%betrk(1) = 0.0_rfreal
276 pmixtinput%betrk(2) = 0.0_rfreal
277 pmixtinput%betrk(3) = 0.0_rfreal
279 pmixtinput%grk(1) = 0.0_rfreal
280 pmixtinput%grk(2) = 17.0_rfreal/25.0_rfreal
281 pmixtinput%grk(3) = 5.0_rfreal/ 9.0_rfreal
283 pmixtinput%trk(1) = 0.0_rfreal
284 pmixtinput%trk(2) = 8.0_rfreal/15.0_rfreal
285 pmixtinput%trk(3) = 2.0_rfreal/3.0_rfreal
287 pmixtinput%ldiss(1) = 1
288 pmixtinput%ldiss(2) = 1
289 pmixtinput%ldiss(3) = 1
291 pmixtinput%cfl =
min(pmixtinput%cfl,2.0_rfreal)
293 CALL
errorstop(global,err_reached_default,__line__)
302 IF ( global%myProcid == masterproc .AND. &
303 global%verbLevel >= verbose_high )
THEN
304 WRITE(stdout,
'(A,1X,A)') solver_name,
'Setting derived input variables done.'
subroutine registerfunction(global, funName, fileName)
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)