57 TYPE(t_region
),
INTENT(INOUT) :: region
60 INTEGER ::
i,
j,
k, ii, jj, kk, icv
63 INTEGER,
PARAMETER :: npeul_max = 10
65 CHARACTER(CHRLEN) :: rcsidentstring
68 INTEGER :: ncv,ilev,icoff,ijcoff,ijkc0,ijkcm1,ijkcp1,ijkcp2
70 REAL(RFREAL) :: beta,eval,eps2,eps4,pmax,fd,vis4(npeul_max)
71 REAL(RFREAL),
POINTER :: scv(:,:),sdiss(:,:),srad(:,:)
77 rcsidentstring =
'$RCSfile: PEUL_CentralDissipation.F90,v $ $Revision: 1.3 $'
79 global => region%global
82 'PEUL_CentralDissipation.F90' )
88 ilev = region%currLevel
94 scv => region%levels(ilev)%peul%cv
95 ncv = region%levels(ilev)%peul%nCv
97 sdiss => region%levels(ilev)%peul%diss
98 srad => region%levels(ilev)%peul%srad
100 beta = region%mixtInput%betrk(region%irkStep)
105 IF (ncv /= region%peulInput%nPtypes) &
106 CALL
errorstop( global,err_peul_npmismatch,__line__ )
108 IF (ncv > npeul_max) &
109 CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
112 vis4(1:ncv) = beta*region%peulInput%ptypes(1:ncv)%vis4
124 ijkc0 = indijk(
i ,
j,
k,icoff,ijcoff)
125 ijkcm1 = indijk(
i-1,
j,
k,icoff,ijcoff)
126 ijkcp1 = indijk(
i+1,
j,
k,icoff,ijcoff)
127 ijkcp2 = indijk(
i+2,
j,
k,icoff,ijcoff)
128 eval = 0.5_rfreal*(srad(icoord,ijkc0)+srad(icoord,ijkcp1) + &
129 max(srad(jcoord,ijkc0)+srad(jcoord,ijkcp1), &
130 srad(kcoord,ijkc0)+srad(kcoord,ijkcp1)))
133 eps4 = eval*vis4(icv)
134 fd = eps4*( (scv(icv,ijkcm1) - scv(icv,ijkcp2)) + &
135 3._rfreal*(scv(icv,ijkcp1) - scv(icv,ijkc0 )) )
137 sdiss(icv,ijkc0 ) = sdiss(icv,ijkc0 ) + fd
138 sdiss(icv,ijkcp1) = sdiss(icv,ijkcp1) - fd
155 ijkc0 = indijk(
i,
j ,
k,icoff,ijcoff)
156 ijkcm1 = indijk(
i,
j-1,
k,icoff,ijcoff)
157 ijkcp1 = indijk(
i,
j+1,
k,icoff,ijcoff)
158 ijkcp2 = indijk(
i,
j+2,
k,icoff,ijcoff)
159 eval = 0.5_rfreal*(srad(jcoord,ijkc0)+srad(jcoord,ijkcp1) + &
160 max(srad(icoord,ijkc0)+srad(icoord,ijkcp1), &
161 srad(kcoord,ijkc0)+srad(kcoord,ijkcp1)))
164 eps4 = eval*vis4(icv)
165 fd = eps4*( (scv(icv,ijkcm1) - scv(icv,ijkcp2)) + &
166 3._rfreal*(scv(icv,ijkcp1) - scv(icv,ijkc0 )) )
168 sdiss(icv,ijkc0 ) = sdiss(icv,ijkc0 ) + fd
169 sdiss(icv,ijkcp1) = sdiss(icv,ijkcp1) - fd
186 ijkc0 = indijk(
i,
j,
k ,icoff,ijcoff)
187 ijkcm1 = indijk(
i,
j,
k-1,icoff,ijcoff)
188 ijkcp1 = indijk(
i,
j,
k+1,icoff,ijcoff)
189 ijkcp2 = indijk(
i,
j,
k+2,icoff,ijcoff)
190 eval = 0.5_rfreal*(srad(kcoord,ijkc0)+srad(kcoord,ijkcp1) + &
191 max(srad(icoord,ijkc0)+srad(icoord,ijkcp1), &
192 srad(jcoord,ijkc0)+srad(jcoord,ijkcp1)))
195 eps4 = eval*vis4(icv)
196 fd = eps4*( (scv(icv,ijkcm1) - scv(icv,ijkcp2)) + &
197 3._rfreal*(scv(icv,ijkcp1) - scv(icv,ijkc0 )) )
199 sdiss(icv,ijkc0 ) = sdiss(icv,ijkc0 ) + fd
200 sdiss(icv,ijkcp1) = sdiss(icv,ijkcp1) - fd
**********************************************************************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
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 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
**********************************************************************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_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 jpcend
subroutine peul_centraldissipation(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)