70 CHARACTER(CHRLEN) :: &
71 RCSIdentString =
'$RCSfile: TURB_RFLU_ModRocstarAdmin.F90,v $ $Revision: 1.7 $'
113 TYPE(t_region
),
POINTER :: pregion
119 CHARACTER(CHRLEN) :: winv
126 global => pregion%global
169 TYPE(t_region
),
POINTER :: pregion
175 CHARACTER(CHRLEN) :: winv
176 INTEGER :: paneid, ilb, ndim, ntv, errorflag
177 REAL(RFREAL),
POINTER :: preal
178 TYPE(t_grid),
POINTER :: pgrid
185 global => pregion%global
187 pgrid => pregion%grid
189 IF ( global%myProcid == masterproc .AND. &
190 global%verbLevel >= verbose_high )
THEN
191 WRITE(stdout,
'(A,1X,A)') solver_name,
'Registering turbulence data...'
202 winv = global%volWinName
207 CALL com_new_attribute(trim(winv)//
'.esg1Sum',
'w',com_double,1,
'J/(m^3s)')
208 CALL com_new_attribute(trim(winv)//
'.esg4Sum',
'w',com_double,1,
'J/(m^3s)')
209 CALL com_set_array( trim(winv)//
'.esg1Sum' ,0, global%esg1Sum )
210 CALL com_set_array( trim(winv)//
'.esg4Sum' ,0, global%esg4Sum )
216 CALL com_new_attribute( trim(winv)//
'.lens',
'e',com_double,1,
'm' )
217 CALL com_new_attribute( trim(winv)//
'.mut' ,
'e',com_double,1,
'kg/(ms)' )
218 CALL com_new_attribute( trim(winv)//
'.vort',
'e',com_double,3,
'1/s' )
229 winv = global%volWinName
233 IF ( global%myProcid == masterproc .AND. &
234 global%verbLevel >= verbose_high)
THEN
235 WRITE(stdout,
'(A,3X,A,1X,A)') solver_name,
'Window name:',trim(winv)
236 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Pane id:', paneid
242 IF (pregion%turbInput%modelClass /= model_rans)
THEN
243 ALLOCATE( pregion%turb%lens(pgrid%nCellsTot),stat=errorflag )
244 global%error = errorflag
245 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
247 IF (pregion%mixtInput%turbModel == turb_model_none)
THEN
248 ALLOCATE( pregion%turb%vort(3,pgrid%nCellsTot),stat=errorflag )
249 global%error = errorflag
250 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
253 pregion%mixt%tv = 0._rfreal
254 pregion%turb%lens = 0._rfreal
255 pregion%turb%vort = 0._rfreal
261 ndim = pgrid%nCellsTot
262 ntv = pregion%mixtInput%nTv
264 preal => pregion%turb%lens(1)
265 CALL com_set_array( trim(winv)//
'.lens' ,paneid, preal )
267 preal => pregion%mixt%tv(tv_mixt_muet,ilb)
268 CALL com_set_array( trim(winv)//
'.mut',paneid, preal,ntv )
270 preal => pregion%turb%vort(1,ilb)
271 CALL com_set_array( trim(winv)//
'.vort',paneid,preal )
277 IF ( global%myProcid == masterproc .AND. &
278 global%verbLevel >= verbose_high )
THEN
279 WRITE(stdout,
'(A,1X,A)') solver_name,
'Registering turbulence data done.'
318 TYPE(t_region
),
POINTER :: pregion
329 CHARACTER(CHRLEN) :: winname,winnamein
330 CHARACTER(CHRLEN),
POINTER :: statnm(:,:,:)
331 INTEGER :: handlein,handleobtain,handleout
333 TYPE(t_grid),
POINTER :: pgrid
339 global => pregion%global
341 winnamein = global%volWinNameInput
342 winname = global%volWinName
348 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.mut')
349 IF (handlein <= 0)
THEN
350 IF ( global%myProcid == masterproc .AND. &
351 global%verbLevel >= verbose_high )
THEN
352 WRITE(stdout,
'(A,1X,A)') solver_name,
'Starting new turbulence...'
361 handleobtain = global%handleObtain
363 IF ( global%myProcid == masterproc .AND. &
364 global%verbLevel >= verbose_high )
THEN
365 WRITE(stdout,
'(A,1X,A)') solver_name,
'Getting turbulence data...'
368 IF ( global%myProcid == masterproc .AND. &
369 global%verbLevel >= verbose_high)
THEN
370 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
371 pregion%iRegionGlobal
378 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.esg1Sum')
379 handleout = com_get_attribute_handle(trim(winname)//
'.esg1Sum')
380 CALL com_call_function(handleobtain,2,handlein,handleout)
382 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.esg4Sum')
383 handleout = com_get_attribute_handle(trim(winname)//
'.esg4Sum')
384 CALL com_call_function(handleobtain,2,handlein,handleout)
390 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.lens')
391 handleout = com_get_attribute_handle(trim(winname)//
'.lens')
392 CALL com_call_function(handleobtain,2,handlein,handleout)
394 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.mut')
395 handleout = com_get_attribute_handle(trim(winname)//
'.mut')
396 CALL com_call_function(handleobtain,2,handlein,handleout)
398 handlein = com_get_attribute_handle_const(trim(winnamein)//
'.vort')
399 handleout = com_get_attribute_handle(trim(winname)//
'.vort')
400 CALL com_call_function(handleobtain,2,handlein,handleout)
407 IF ( global%myProcid == masterproc .AND. &
408 global%verbLevel >= verbose_high )
THEN
409 WRITE(stdout,
'(A,1X,A)') solver_name,
'Getting turbulence data done.'
subroutine, public turb_rflu_genxregisterdata(pRegion)
subroutine, public turb_rflu_genxcreateattr(pRegion)
subroutine, public turb_rflu_genxgetdata(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine, public rflu_genx_buildpaneid(iRegion, iPatch, paneId)