62 TYPE(t_region
),
POINTER :: regions(:)
65 CHARACTER(CHRLEN) :: rcsidentstring
70 INTEGER ::
brbeg, brend
71 INTEGER,
PARAMETER :: nvals_max = 25
73 LOGICAL :: defined(nvals_max)
74 REAL(RFREAL) :: vals(nvals_max)
75 CHARACTER(20) :: keys(nvals_max)
79 rcsidentstring =
'$RCSfile: TURB_ReadTurbSection.F90,v $'
81 global => regions(1)%global
83 'TURB_ReadTurbSection.F90' )
91 keys( 1) =
'TURBMODEL'
92 keys( 2) =
'OUTPUTNUMBER'
93 keys( 3) =
'CSMAGORINSKY'
97 keys( 7) =
'FILTERTYPE'
98 keys( 8) =
'DELTATYPE'
99 keys( 9) =
'IFILTERWIDTH'
100 keys(10) =
'JFILTERWIDTH'
101 keys(11) =
'KFILTERWIDTH'
102 keys(12) =
'IHOMOGENDIR'
103 keys(13) =
'JHOMOGENDIR'
104 keys(14) =
'KHOMOGENDIR'
105 keys(15) =
'ENERGYMODEL'
106 keys(16) =
'CALCVORTIC'
107 keys(17) =
'WALLDISTMETHOD'
108 keys(18) =
'WALLDISTFREQ'
109 keys(19) =
'VISCFUNCTION'
125 brbeg = lbound(regions,1)
126 brend = ubound(regions,1)
128 IF (defined(1) .eqv. .true.)
THEN
129 regions(
brbeg:brend)%mixtInput%turbModel = int(vals(1)+0.5_rfreal)
132 IF (defined(2) .eqv. .true.)
THEN
133 regions(
brbeg:brend)%turbInput%nOutField = int(vals(2)+0.5_rfreal)
136 IF (defined(3) .eqv. .true.) regions(
brbeg:brend)%turbInput%cSmag = abs(vals(3))
138 IF (defined(4) .eqv. .true.)
THEN
139 regions(
brbeg:brend)%turbInput%xyzSmag(xcoord) = abs(vals(4))
142 IF (defined(5) .eqv. .true.)
THEN
143 regions(
brbeg:brend)%turbInput%xyzSmag(ycoord) = abs(vals(5))
146 IF (defined(6) .eqv. .true.)
THEN
147 regions(
brbeg:brend)%turbInput%xyzSmag(zcoord) = abs(vals(6))
151 IF (defined(7) .eqv. .true.)
THEN
152 regions(
brbeg:brend)%turbInput%filterType = int(vals(7)+0.5_rfreal)
154 IF (defined(8) .eqv. .true.)
THEN
155 regions(
brbeg:brend)%turbInput%deltaType = int(vals(8)+0.5_rfreal)
158 IF (defined(9) .eqv. .true.)
THEN
159 regions(
brbeg:brend)%turbInput%filterWidth(diri) = int(vals(9)+0.5_rfreal)
162 IF (defined(10) .eqv. .true.)
THEN
163 regions(
brbeg:brend)%turbInput%filterWidth(dirj) = int(vals(10)+0.5_rfreal)
165 IF (defined(11) .eqv. .true.)
THEN
166 regions(
brbeg:brend)%turbInput%filterWidth(dirk) = int(vals(11)+0.5_rfreal)
168 IF (defined(12) .eqv. .true.)
THEN
169 regions(
brbeg:brend)%turbInput%homDir(diri) = int(vals(12)+0.5_rfreal)
171 IF (defined(13) .eqv. .true.)
THEN
172 regions(
brbeg:brend)%turbInput%homDir(dirj) = int(vals(13)+0.5_rfreal)
174 IF (defined(14) .eqv. .true.)
THEN
175 regions(
brbeg:brend)%turbInput%homDir(dirk) = int(vals(14)+0.5_rfreal)
178 IF (defined(15) .eqv. .true.)
THEN
179 regions(
brbeg:brend)%turbInput%engModel = int(vals(15)+0.5_rfreal)
181 IF (defined(16) .eqv. .true.)
THEN
182 regions(
brbeg:brend)%turbInput%calcVort = int(vals(16)+0.5_rfreal)
184 IF (defined(17) .eqv. .true.)
THEN
185 regions(
brbeg:brend)%turbInput%wDistMethod = int(vals(17)+0.5_rfreal)
187 IF (defined(18) .eqv. .true.)
THEN
188 global%turbCalcWDistFreq =
max( global%turbCalcWDistFreq, &
189 int(vals(18)+0.5_rfreal) )
191 IF (defined(19) .eqv. .true.)
THEN
192 regions(
brbeg:brend)%turbInput%functV1 = int(vals(19)+0.5_rfreal)
195 IF (defined(20) .eqv. .true.) regions(
brbeg:brend)%turbInput%cDes = abs(vals(20))
196 IF (defined(21) .eqv. .true.) regions(
brbeg:brend)%turbInput%smoocf = vals(21)
198 IF (defined(22) .eqv. .true.)
THEN
199 regions(
brbeg:brend)%turbInput%spaceDiscr = int(vals(22)+0.5_rfreal)
202 IF (defined(23) .eqv. .true.) regions(
brbeg:brend)%turbInput%vis2 = abs(vals(23))
204 IF (defined(24) .eqv. .true.)
THEN
205 IF (vals(24) > 1.e-10_rfreal)
THEN
206 regions(
brbeg:brend)%turbInput%vis4 = 1._rfreal/vals(24)
207 ELSEIF (vals(24) > 0._rfreal .AND. vals(24) <= 1.e-10_rfreal)
THEN
208 regions(
brbeg:brend)%turbInput%vis4 = 1.e+10_rfreal
209 ELSEIF (vals(24) <= 0._rfreal )
THEN
210 regions(
brbeg:brend)%turbInput%vis4 = 0.0_rfreal
213 IF (defined(25) .eqv. .true.)
THEN
214 regions(
brbeg:brend)%turbInput%spaceOrder = int(vals(25)+0.5_rfreal)
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
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 readsection(global, fileID, nvals, keys, vals, defined)
subroutine turb_readturbsection(regions)
subroutine readregionsection(global, fileID, nvals, keys, vals, brbeg, brend, 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 nvals
subroutine deregisterfunction(global)