62 TYPE(t_region
) :: region
70 INTEGER :: istage, ibc, iec, idxb, idxe
71 REAL(RFREAL),
POINTER :: tcv(:,:), tcvold(:,:), trhs(:,:), dsterm(:,:)
72 REAL(RFREAL),
POINTER :: vol(:), dt(:)
73 REAL(RFREAL) :: ark(5), fac, adtv, cfl
77 INTEGER :: ilev, icoff, ijcoff
82 global => region%global
85 'TURB_RansEmsUpdate.F90' )
89 istage = region%irkStep
90 ark(:) = region%mixtInput%ark(:)
91 cfl = region%mixtInput%cfl
93 IF (region%mixtInput%turbModel == turb_model_sa .OR. &
94 region%mixtInput%turbModel == turb_model_dessa .OR. &
95 region%mixtInput%turbModel == turb_model_hdessa)
THEN
101 ilev = region%currLevel
109 tcv => region%levels(ilev)%turb%cv
110 tcvold => region%levels(ilev)%turb%cvOld
111 trhs => region%levels(ilev)%turb%rhs
112 dsterm => region%levels(ilev)%turb%dsterm
113 vol => region%levels(ilev)%grid%vol
114 dt => region%levels(ilev)%dt
119 iec = region%grid%nCellsTot
121 tcv => region%turb%cv
122 tcvold => region%turb%cvOld
123 trhs => region%turb%rhs
124 dsterm => region%turb%dsterm
125 vol => region%grid%vol
131 fac = ark(istage)*cfl
133 adtv = fac*dt(
ic)/vol(
ic)
135 trhs(idx,
ic) = adtv*trhs(idx,
ic)
139 IF (global%solverType == solv_implicit)
THEN
140 fac = 1.5_rfreal*ark(istage)*cfl/global%dtMin
142 adtv = 1._rfreal/(1._rfreal+fac*dt(
ic))
144 tcv(idx,
ic) = tcvold(idx,
ic) - adtv*trhs(idx,
ic)
150 tcv(idx,
ic) = tcvold(idx,
ic) - trhs(idx,
ic)
157 IF (region%mixtInput%turbModel == turb_model_sa .OR. &
158 region%mixtInput%turbModel == turb_model_dessa .OR. &
159 region%mixtInput%turbModel == turb_model_hdessa)
THEN
161 tcv(cv_sa_nutil,
ic) =
max( tcv(cv_sa_nutil,
ic),real_small )
**********************************************************************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
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 ic
subroutine turb_ransemsupdate(region)
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
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
**********************************************************************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 jdcbeg
subroutine deregisterfunction(global)