58 TYPE(t_region
),
POINTER :: regions(:)
61 INTEGER :: ireg, ipatch
64 CHARACTER(CHRLEN) :: rcsidentstring
65 CHARACTER(15) :: keys(3)
66 CHARACTER(256) :: fname
69 INTEGER :: n1, n2, ioff, ijbeg, ijend, errorflag
73 REAL(RFREAL) :: vals(3)
75 TYPE(t_patch),
POINTER :: patch1
80 rcsidentstring =
'$RCSfile: TURB_coWlmReadBcSectionFlo.F90,v $ $Revision: 1.7 $'
82 global => regions(1)%global
85 'TURB_coWlmReadBcSectionFlo.F90' )
99 IF (regions(ireg)%mixtInput%turbModel<=turb_model_none)
THEN
100 CALL
errorstop( global,err_turb_region,__line__,
'Wall model unapplicable.' )
103 regions(ireg)%turbInput%wallModel = 0
104 regions(ireg)%turbInput%wallRough = 0._rfreal
107 patch1 => regions(ireg)%levels(1)%patches(ipatch)
109 IF ((patch1%bcType>=bc_noslipwall .AND. &
110 patch1%bcType<=bc_noslipwall+bc_range) .AND. &
111 regions(ireg)%procid==global%myProcid .AND. &
112 regions(ireg)%active==active)
THEN
114 IF (patch1%valBola%bcSet .eqv. .true.) &
115 CALL
errorstop( global,err_patch_overspec,__line__,
'Wall layer model.' )
117 IF (patch1%bcCoupled == bc_external)
THEN
118 patch1%valBola%distrib = bcdat_distrib
120 patch1%valBola%distrib = distrib
125 IF (defined(1) .eqv. .true.)
THEN
126 patch1%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 (patch1%valBola%switches(wlm_input_model) == wlm_model_nomodel) goto 999
133 IF (defined(2) .eqv. .true.)
THEN
134 patch1%valBola%switches(wlm_input_refpoint) = int(vals(2)+0.5_rfreal)
136 CALL
errorstop( global,err_no_bcswitch,__line__, &
137 'WLM reference point missing.' )
148 patch1%valBola%nData = patch1%valBola%nData + 2*tensor_all_nelm + 3 + 9
149 n1 = abs(patch1%l1end-patch1%l1beg)
150 n2 = abs(patch1%l2end-patch1%l2beg)
152 ijbeg = indij( 0, 0,ioff)
153 ijend = indij(n1,n2,ioff)
155 ALLOCATE( patch1%valBola%vals(ijbeg:ijend,patch1%valBola%nData), &
157 global%error = errorflag
158 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
160 IF (patch1%valBola%distrib==bcdat_distrib)
THEN
163 CALL
errorstop( global,err_val_bcval,__line__,
'No variable roughness yet' )
166 IF (defined(3) .eqv. .true.)
THEN
167 patch1%valBola%vals(:,wlm_vals_rough) = vals(3)
169 patch1%valBola%vals(:,wlm_vals_rough) = 0._rfreal
173 IF (patch1%valBola%switches(wlm_input_model) == wlm_model_extern)
THEN
181 patch1%valBola%bcSet = .true.
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)