68 TYPE(t_region
),
POINTER :: regions(:)
71 INTEGER :: ireg,
ic,
id
74 INTEGER :: ilev, ibc, iec
77 REAL(RFREAL),
POINTER :: cv(:,:), cvn(:,:)
87 global => regions(1)%global
90 'RFLO_DualTstUtil.F90' )
92 DO ireg=1,global%nRegions
93 IF (regions(ireg)%procid==global%myProcid .AND. &
94 regions(ireg)%active==active)
THEN
96 ilev = regions(ireg)%currLevel
103 cv => regions(ireg)%levels(ilev)%mixt%cv
104 IF (timelevel == 0)
THEN
105 cvn => regions(ireg)%levels(ilev)%mixt%cvn
106 ELSE IF (timelevel == 1)
THEN
107 cvn => regions(ireg)%levels(ilev)%mixt%cvn1
109 cvn => regions(ireg)%levels(ilev)%mixt%cvn2
113 cvn(cv_mixt_dens,
ic) = cv(cv_mixt_dens,
ic)
114 cvn(cv_mixt_xmom,
ic) = cv(cv_mixt_xmom,
ic)
115 cvn(cv_mixt_ymom,
ic) = cv(cv_mixt_ymom,
ic)
116 cvn(cv_mixt_zmom,
ic) = cv(cv_mixt_zmom,
ic)
117 cvn(cv_mixt_ener,
ic) = cv(cv_mixt_ener,
ic)
123 turbused = (regions(ireg)%mixtInput%flowModel == flow_navst .AND. &
124 regions(ireg)%mixtInput%turbModel /= turb_model_none)
127 IF (regions(ireg)%turbInput%modelClass == model_rans .AND. &
128 regions(ireg)%turbInput%nCv > 0)
THEN
130 cv => regions(ireg)%levels(ilev)%turb%cv
131 IF (timelevel == 0)
THEN
132 cvn => regions(ireg)%levels(ilev)%turb%cvn
133 ELSE IF (timelevel == 1)
THEN
134 cvn => regions(ireg)%levels(ilev)%turb%cvn1
136 cvn => regions(ireg)%levels(ilev)%turb%cvn2
140 DO id=1,regions(ireg)%turbInput%nCv
172 #include "Indexing.h"
175 TYPE(t_region
) :: region
181 INTEGER :: ilev, ibc, iec
185 REAL(RFREAL),
POINTER :: cv(:,:), cvn(:,:), cvn1(:,:), cvn2(:,:)
195 global => region%global
198 'RFLO_DualTstUtil.F90' )
200 ilev = region%currLevel
209 cv => region%levels(ilev)%mixt%cv
210 cvn => region%levels(ilev)%mixt%cvn
211 cvn1 => region%levels(ilev)%mixt%cvn1
212 cvn2 => region%levels(ilev)%mixt%cvn2
219 ic = indijk(
i,
j,
k,icoff,ijcoff)
220 cv(cv_mixt_dens,
ic) = cvn(cv_mixt_dens,
ic) + &
221 0.5_rfreal*(3._rfreal*cvn(cv_mixt_dens,
ic)-&
222 4._rfreal*cvn1(cv_mixt_dens,
ic)+&
223 cvn2(cv_mixt_dens,
ic))
224 cv(cv_mixt_xmom,
ic) = cvn(cv_mixt_xmom,
ic) + &
225 0.5_rfreal*(3._rfreal*cvn(cv_mixt_xmom,
ic)-&
226 4._rfreal*cvn1(cv_mixt_xmom,
ic)+&
227 cvn2(cv_mixt_xmom,
ic))
228 cv(cv_mixt_ymom,
ic) = cvn(cv_mixt_ymom,
ic) + &
229 0.5_rfreal*(3._rfreal*cvn(cv_mixt_ymom,
ic)-&
230 4._rfreal*cvn1(cv_mixt_ymom,
ic)+&
231 cvn2(cv_mixt_ymom,
ic))
232 cv(cv_mixt_zmom,
ic) = cvn(cv_mixt_zmom,
ic) + &
233 0.5_rfreal*(3._rfreal*cvn(cv_mixt_zmom,
ic)-&
234 4._rfreal*cvn1(cv_mixt_zmom,
ic)+&
235 cvn2(cv_mixt_zmom,
ic))
236 cv(cv_mixt_ener,
ic) = cvn(cv_mixt_ener,
ic) + &
237 0.5_rfreal*(3._rfreal*cvn(cv_mixt_ener,
ic)-&
238 4._rfreal*cvn1(cv_mixt_ener,
ic)+&
239 cvn2(cv_mixt_ener,
ic))
244 IF (region%mixtInput%gasModel == gas_model_tcperf)
THEN
253 turbused = (region%mixtInput%flowModel == flow_navst .AND. &
254 region%mixtInput%turbModel /= turb_model_none)
257 IF (region%turbInput%modelClass == model_rans .AND. &
258 region%turbInput%nCv > 0)
THEN
260 cv => region%levels(ilev)%turb%cv
261 cvn => region%levels(ilev)%turb%cvn
262 cvn1 => region%levels(ilev)%turb%cvn1
263 cvn2 => region%levels(ilev)%turb%cvn2
268 ic = indijk(
i,
j,
k,icoff,ijcoff)
270 DO id=1,region%turbInput%nCv
272 0.5_rfreal*(3._rfreal*cvn(
id,
ic)-&
273 4._rfreal*cvn1(
id,
ic)+&
303 #include "Indexing.h"
306 TYPE(t_region
) :: region
312 INTEGER :: ilev, ibc, iec
315 REAL(RFREAL) :: rdt2, rdt5
316 REAL(RFREAL),
POINTER :: cvn(:,:), cvn1(:,:), sdual(:,:)
317 REAL(RFREAL),
POINTER :: vol(:), volold(:)
327 global => region%global
330 'RFLO_DualTstUtil.F90' )
332 ilev = region%currLevel
339 cvn => region%levels(ilev)%mixt%cvn
340 cvn1 => region%levels(ilev)%mixt%cvn1
341 sdual => region%levels(ilev)%mixt%sDual
342 vol => region%levels(ilev)%grid%vol
343 rdt2 = 2._rfreal/global%dtMin
344 rdt5 = 0.5_rfreal/global%dtMin
348 IF (region%mixtInput%moveGrid)
THEN
349 volold => region%levels(ilev)%gridOld%vol
351 sdual(cv_mixt_dens,
ic) = rdt2*vol(
ic) *cvn(cv_mixt_dens,
ic) - &
352 rdt5*volold(
ic)*cvn1(cv_mixt_dens,
ic)
353 sdual(cv_mixt_xmom,
ic) = rdt2*vol(
ic) *cvn(cv_mixt_xmom,
ic) - &
354 rdt5*volold(
ic)*cvn1(cv_mixt_xmom,
ic)
355 sdual(cv_mixt_ymom,
ic) = rdt2*vol(
ic) *cvn(cv_mixt_ymom,
ic) - &
356 rdt5*volold(
ic)*cvn1(cv_mixt_ymom,
ic)
357 sdual(cv_mixt_zmom,
ic) = rdt2*vol(
ic) *cvn(cv_mixt_zmom,
ic) - &
358 rdt5*volold(
ic)*cvn1(cv_mixt_zmom,
ic)
359 sdual(cv_mixt_ener,
ic) = rdt2*vol(
ic) *cvn(cv_mixt_ener,
ic) - &
360 rdt5*volold(
ic)*cvn1(cv_mixt_ener,
ic)
364 sdual(cv_mixt_dens,
ic) = vol(
ic)*(rdt2*cvn(cv_mixt_dens,
ic)- &
365 rdt5*cvn1(cv_mixt_dens,
ic))
366 sdual(cv_mixt_xmom,
ic) = vol(
ic)*(rdt2*cvn(cv_mixt_xmom,
ic)- &
367 rdt5*cvn1(cv_mixt_xmom,
ic))
368 sdual(cv_mixt_ymom,
ic) = vol(
ic)*(rdt2*cvn(cv_mixt_ymom,
ic)- &
369 rdt5*cvn1(cv_mixt_ymom,
ic))
370 sdual(cv_mixt_zmom,
ic) = vol(
ic)*(rdt2*cvn(cv_mixt_zmom,
ic)- &
371 rdt5*cvn1(cv_mixt_zmom,
ic))
372 sdual(cv_mixt_ener,
ic) = vol(
ic)*(rdt2*cvn(cv_mixt_ener,
ic)- &
373 rdt5*cvn1(cv_mixt_ener,
ic))
380 turbused = (region%mixtInput%flowModel == flow_navst .AND. &
381 region%mixtInput%turbModel /= turb_model_none)
384 IF (region%turbInput%modelClass == model_rans .AND. &
385 region%turbInput%nCv > 0)
THEN
387 cvn => region%levels(ilev)%turb%cvn
388 cvn1 => region%levels(ilev)%turb%cvn1
389 sdual => region%levels(ilev)%turb%sDual
391 IF (region%mixtInput%moveGrid)
THEN
392 volold => region%levels(ilev)%gridOld%vol
394 DO id=1,region%turbInput%nCv
396 rdt5*volold(
ic)*cvn1(
id,
ic)
401 DO id=1,region%turbInput%nCv
431 #include "Indexing.h"
434 TYPE(t_region
) :: region
440 INTEGER :: ilev, ibc, iec
443 REAL(RFREAL),
POINTER :: cv(:,:), cvn(:,:), cvn1(:,:), cvn2(:,:)
453 global => region%global
456 'RFLO_DualTstUtil.F90' )
458 ilev = region%currLevel
465 cv => region%levels(ilev)%mixt%cv
466 cvn => region%levels(ilev)%mixt%cvn
467 cvn1 => region%levels(ilev)%mixt%cvn1
468 cvn2 => region%levels(ilev)%mixt%cvn2
471 cvn2(cv_mixt_dens,
ic) = cvn1(cv_mixt_dens,
ic)
472 cvn2(cv_mixt_xmom,
ic) = cvn1(cv_mixt_xmom,
ic)
473 cvn2(cv_mixt_ymom,
ic) = cvn1(cv_mixt_ymom,
ic)
474 cvn2(cv_mixt_zmom,
ic) = cvn1(cv_mixt_zmom,
ic)
475 cvn2(cv_mixt_ener,
ic) = cvn1(cv_mixt_ener,
ic)
476 cvn1(cv_mixt_dens,
ic) = cvn(cv_mixt_dens,
ic)
477 cvn1(cv_mixt_xmom,
ic) = cvn(cv_mixt_xmom,
ic)
478 cvn1(cv_mixt_ymom,
ic) = cvn(cv_mixt_ymom,
ic)
479 cvn1(cv_mixt_zmom,
ic) = cvn(cv_mixt_zmom,
ic)
480 cvn1(cv_mixt_ener,
ic) = cvn(cv_mixt_ener,
ic)
481 cvn(cv_mixt_dens,
ic) = cv(cv_mixt_dens,
ic)
482 cvn(cv_mixt_xmom,
ic) = cv(cv_mixt_xmom,
ic)
483 cvn(cv_mixt_ymom,
ic) = cv(cv_mixt_ymom,
ic)
484 cvn(cv_mixt_zmom,
ic) = cv(cv_mixt_zmom,
ic)
485 cvn(cv_mixt_ener,
ic) = cv(cv_mixt_ener,
ic)
491 turbused = (region%mixtInput%flowModel == flow_navst .AND. &
492 region%mixtInput%turbModel /= turb_model_none)
495 IF (region%turbInput%modelClass == model_rans .AND. &
496 region%turbInput%nCv > 0)
THEN
498 cv => region%levels(ilev)%turb%cv
499 cvn => region%levels(ilev)%turb%cvn
500 cvn1 => region%levels(ilev)%turb%cvn1
501 cvn2 => region%levels(ilev)%turb%cvn2
504 DO id=1,region%turbInput%nCv
subroutine rflo_dualtststerm(region)
**********************************************************************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 idcend
**********************************************************************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 kpcbeg
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 ic
subroutine rflo_dualtstpredict(region)
**********************************************************************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 jpcbeg
**********************************************************************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 ipcend
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************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 kdcbeg
**********************************************************************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 ipcbeg
subroutine rflo_dualtstshift(region)
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************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 idcbeg
subroutine rflo_dualtstinit(regions, timeLevel)
**********************************************************************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 jdcend
**********************************************************************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 jpcend
unsigned long id(const Leda_like_handle &x)
**********************************************************************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 jdcbeg
subroutine mixtureproperties(region, inBeg, inEnd, gasUpdate)
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)