58 TYPE(t_region
),
POINTER :: regions(:)
61 INTEGER :: ireg, ipatch
64 CHARACTER(10) :: keys(7)
65 CHARACTER(256) :: fname
68 INTEGER :: n1, n2, ioff, ijbeg, ijend, errorflag
72 REAL(RFREAL) :: vals(7)
79 global => regions(1)%global
82 'RFLO_ReadBcInflowTotAngSection.F90' )
102 patch => regions(ireg)%levels(1)%patches(ipatch)
104 IF ((
patch%bcType>=bc_inflow .AND. &
105 patch%bcType<=bc_inflow+bc_range) .AND. &
106 regions(ireg)%procid==global%myProcid .AND. &
107 regions(ireg)%active==active)
THEN
109 patch%bcType = bc_inflow_totang
111 IF (
patch%mixt%bcSet.eqv..true.) &
112 CALL
errorstop( global,err_patch_overspec,&
113 __line__,
'Inflow boundary.' )
115 patch%mixt%nSwitches = 2
116 IF (
patch%bcCoupled == bc_external)
THEN
117 patch%mixt%distrib = bcdat_distrib
119 patch%mixt%distrib = distrib
122 ALLOCATE(
patch%mixt%switches(
patch%mixt%nSwitches), &
124 global%error = errorflag
125 IF (global%error /= 0) CALL
errorstop( global,err_allocate,&
129 IF (defined(1).eqv..true.)
THEN
130 patch%mixt%switches(bcswi_inflow_type) = bcopt_subsonic
132 patch%mixt%switches(bcswi_inflow_type) = bcopt_supersonic
134 patch%mixt%switches(bcswi_inflow_type) = bcopt_mixed
137 __line__,
'(inflow type).' )
140 IF (defined(2).eqv..true.)
THEN
142 patch%mixt%switches(bcswi_inflow_fixed) = bcopt_fixed_no
144 patch%mixt%switches(bcswi_inflow_fixed) = bcopt_fixed_yes
146 patch%mixt%switches(bcswi_inflow_fixed) = bcopt_fixed_no
150 IF (
patch%mixt%switches(bcswi_inflow_type) == bcopt_subsonic)
THEN
151 IF (
patch%mixt%distrib==bcdat_constant .AND. &
152 (.NOT. (defined(3).eqv..true.) .OR. &
153 .NOT. (defined(4).eqv..true.) .OR. &
154 .NOT. (defined(5).eqv..true.) .OR. &
155 .NOT. (defined(6).eqv..true.))) CALL
errorstop( global,err_bcval_missing,&
158 IF (
patch%mixt%switches(bcswi_inflow_type) == bcopt_supersonic .OR. &
159 patch%mixt%switches(bcswi_inflow_type) == bcopt_mixed)
THEN
160 IF (
patch%mixt%distrib==bcdat_constant .AND. &
161 (.NOT. (defined(3).eqv..true.) .OR. &
162 .NOT. (defined(4).eqv..true.) .OR. &
163 .NOT. (defined(5).eqv..true.) .OR. &
164 .NOT. (defined(6).eqv..true.) .OR. &
165 .NOT. (defined(7).eqv..true.))) CALL
errorstop( global,err_bcval_missing,&
170 patch%mixt%bcSet = .true.
181 patch => regions(ireg)%levels(1)%patches(ipatch)
183 IF ((
patch%bcType>=bc_inflow .AND. &
184 patch%bcType<=bc_inflow+bc_range) .AND. &
185 regions(ireg)%procid==global%myProcid .AND. &
186 regions(ireg)%active==active)
THEN
188 switch =
patch%mixt%switches(bcswi_inflow_type)
189 IF (switch == bcopt_subsonic)
THEN
197 IF (
patch%mixt%distrib == bcdat_distrib)
THEN
201 ijbeg = indij( 0, 0,ioff)
202 ijend = indij(n1,n2,ioff)
207 ALLOCATE(
patch%mixt%vals(
patch%mixt%nData,ijbeg:ijend), &
209 global%error = errorflag
210 IF (global%error /= 0) CALL
errorstop( global,err_allocate,&
215 IF (
patch%mixt%distrib==bcdat_distrib .AND. &
216 patch%bcCoupled /=bc_external )
THEN
219 IF (switch == bcopt_subsonic)
THEN
220 patch%mixt%vals(bcdat_inflow_betah,:) = &
221 patch%mixt%vals(bcdat_inflow_betah,:)*global%rad
222 patch%mixt%vals(bcdat_inflow_betav,:) = &
223 patch%mixt%vals(bcdat_inflow_betav,:)*global%rad
229 patch%mixt%vals(bcdat_inflow_ptot ,:) = vals(3)
230 patch%mixt%vals(bcdat_inflow_ttot ,:) = vals(4)
231 patch%mixt%vals(bcdat_inflow_betah,:) = vals(5)*global%rad
232 patch%mixt%vals(bcdat_inflow_betav,:) = vals(6)*global%rad
233 IF (switch /= bcopt_subsonic)
THEN
234 patch%mixt%vals(bcdat_inflow_mach,:) = vals(7)
subroutine rflo_readbcfromfile(global, fname, patch)
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 rflo_readbcinflowtotangsection(regions)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)