56 TYPE(t_region
),
POINTER :: regions(:)
59 INTEGER :: ireg, ipatch
62 CHARACTER(CHRLEN) :: rcsidentstring
63 CHARACTER(15) :: keys(3)
64 CHARACTER(256) :: fname
65 CHARACTER(CHRLEN) :: bcname
68 INTEGER :: ijbeg, ijend, errorflag
72 REAL(RFREAL) :: vals(3)
79 rcsidentstring =
'$RCSfile: TURB_coWlmReadBcSectionFlu.F90,v $ $Revision: 1.4 $'
81 global => regions(1)%global
83 'TURB_coWlmReadBcSectionFlu.F90' )
94 IF (
prend > global%nPatches )
THEN
95 CALL
errorstop(global,err_patch_range,__line__)
100 brbeg = lbound(regions,1)
101 brend = ubound(regions,1)
104 IF (regions(ireg)%mixtInput%turbModel<=turb_model_none)
THEN
105 CALL
errorstop( global,err_turb_region,__line__,
'Wall model unapplicable.' )
108 regions(ireg)%turbInput%wallModel = 0
109 regions(ireg)%turbInput%wallRough = 0._rfreal
112 patch => regions(ireg)%patches(ipatch)
114 IF (
patch%bcType>=bc_noslipwall .AND. &
115 patch%bcType<=bc_noslipwall+bc_range)
THEN
117 IF (
patch%bcCoupled == bc_external)
THEN
118 patch%valBola%distrib = bcdat_distrib
120 patch%valBola%distrib = distrib
126 patch%valBola%switches(wlm_input_model)=
max( 0,int(vals(1)+0.5_rfreal) )
128 CALL
errorstop( global,err_no_bcswitch,__line__,
'WLM model missing.' )
131 IF (
patch%valBola%switches(wlm_input_model) == wlm_model_nomodel) goto 999
134 patch%valBola%switches(wlm_input_refpoint) = int(vals(2)+0.5_rfreal)
136 CALL
errorstop( global,err_no_bcswitch,__line__, &
137 'WLM reference point missing.' )
142 patch%valBola%nData =
patch%valBola%nData + 2*tensor_all_nelm + 3 + 9
144 ijend =
patch%nBFaces
146 ALLOCATE(
patch%valBola%vals(ijbeg:ijend,
patch%valBola%nData), &
148 global%error = errorflag
149 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
151 IF (
patch%valBola%distrib==bcdat_distrib)
THEN
154 CALL
errorstop( global,err_val_bcval,__line__,
'No variable roughness yet' )
158 patch%valBola%vals(:,wlm_vals_rough) = vals(3)
160 patch%valBola%vals(:,wlm_vals_rough) = 0._rfreal
164 IF (
patch%valBola%switches(wlm_input_model) == wlm_model_extern)
THEN
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine turb_cowlmreadbcsection(regions)
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 brbeg
subroutine readpatchsection(global, fileID, nvals, keys, vals, brbeg, brend, prbeg, prend, distrib, profType, fname, defined)
**********************************************************************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 USE ModDataTypes USE prend
**********************************************************************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 USE ModDataTypes USE prbeg
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)