55 TYPE(t_region
) :: region
62 INTEGER :: ilev, icoff, ijcoff, off1d, ijkc, ijkc1, ijdum, ijdum1
63 INTEGER :: im1, jm1, km1, ip1, jp1, kp1
66 REAL(RFREAL),
POINTER ::
rhs(:,:), epsirs(:,:),
d(:)
71 'RFLO_ResidualSmoothing.F90' )
75 ilev = region%currLevel
81 epsirs => region%levels(ilev)%mixt%epsIrs
82 rhs => region%levels(ilev)%mixt%rhs
92 ijdum = indij(
i,
j,off1d) + 1
99 ijkc = indijk(
i ,
j,
k,icoff,ijcoff)
100 ijkc1 = indijk(im1,
j,
k,icoff,ijcoff)
101 ijdum = indij(
i ,
j,off1d) + 1
102 ijdum1 = indij(im1,
j,off1d) + 1
103 t = 1._rfreal/(1._rfreal+2._rfreal*epsirs(icoord,ijkc)- &
104 epsirs(icoord,ijkc)*
d(ijdum1))
105 d(ijdum) = t*epsirs(icoord,ijkc)
107 rhs(cv_mixt_dens,ijkc) = t*(
rhs(cv_mixt_dens,ijkc) + &
108 epsirs(icoord,ijkc)*
rhs(cv_mixt_dens,ijkc1))
109 rhs(cv_mixt_xmom,ijkc) = t*(
rhs(cv_mixt_xmom,ijkc) + &
110 epsirs(icoord,ijkc)*
rhs(cv_mixt_xmom,ijkc1))
111 rhs(cv_mixt_ymom,ijkc) = t*(
rhs(cv_mixt_ymom,ijkc) + &
112 epsirs(icoord,ijkc)*
rhs(cv_mixt_ymom,ijkc1))
113 rhs(cv_mixt_zmom,ijkc) = t*(
rhs(cv_mixt_zmom,ijkc) + &
114 epsirs(icoord,ijkc)*
rhs(cv_mixt_zmom,ijkc1))
115 rhs(cv_mixt_ener,ijkc) = t*(
rhs(cv_mixt_ener,ijkc) + &
116 epsirs(icoord,ijkc)*
rhs(cv_mixt_ener,ijkc1))
123 ijkc = indijk(
i ,
j,
k,icoff,ijcoff)
124 ijkc1 = indijk(ip1,
j,
k,icoff,ijcoff)
125 ijdum = indij(
i,
j,off1d) + 1
127 rhs(cv_mixt_dens,ijkc) =
rhs(cv_mixt_dens,ijkc) + &
128 d(ijdum)*
rhs(cv_mixt_dens,ijkc1)
129 rhs(cv_mixt_xmom,ijkc) =
rhs(cv_mixt_xmom,ijkc) + &
130 d(ijdum)*
rhs(cv_mixt_xmom,ijkc1)
131 rhs(cv_mixt_ymom,ijkc) =
rhs(cv_mixt_ymom,ijkc) + &
132 d(ijdum)*
rhs(cv_mixt_ymom,ijkc1)
133 rhs(cv_mixt_zmom,ijkc) =
rhs(cv_mixt_zmom,ijkc) + &
134 d(ijdum)*
rhs(cv_mixt_zmom,ijkc1)
135 rhs(cv_mixt_ener,ijkc) =
rhs(cv_mixt_ener,ijkc) + &
136 d(ijdum)*
rhs(cv_mixt_ener,ijkc1)
149 ijdum = indij(
j,
i,off1d) + 1
156 ijkc = indijk(
i,
j ,
k,icoff,ijcoff)
157 ijkc1 = indijk(
i,jm1,
k,icoff,ijcoff)
158 ijdum = indij(
j ,
i,off1d) + 1
159 ijdum1 = indij(jm1,
i,off1d) + 1
160 t = 1._rfreal/(1._rfreal+2._rfreal*epsirs(jcoord,ijkc)- &
161 epsirs(jcoord,ijkc)*
d(ijdum1))
162 d(ijdum) = t*epsirs(jcoord,ijkc)
164 rhs(cv_mixt_dens,ijkc) = t*(
rhs(cv_mixt_dens,ijkc) + &
165 epsirs(jcoord,ijkc)*
rhs(cv_mixt_dens,ijkc1))
166 rhs(cv_mixt_xmom,ijkc) = t*(
rhs(cv_mixt_xmom,ijkc) + &
167 epsirs(jcoord,ijkc)*
rhs(cv_mixt_xmom,ijkc1))
168 rhs(cv_mixt_ymom,ijkc) = t*(
rhs(cv_mixt_ymom,ijkc) + &
169 epsirs(jcoord,ijkc)*
rhs(cv_mixt_ymom,ijkc1))
170 rhs(cv_mixt_zmom,ijkc) = t*(
rhs(cv_mixt_zmom,ijkc) + &
171 epsirs(jcoord,ijkc)*
rhs(cv_mixt_zmom,ijkc1))
172 rhs(cv_mixt_ener,ijkc) = t*(
rhs(cv_mixt_ener,ijkc) + &
173 epsirs(jcoord,ijkc)*
rhs(cv_mixt_ener,ijkc1))
180 ijkc = indijk(
i,
j ,
k,icoff,ijcoff)
181 ijkc1 = indijk(
i,jp1,
k,icoff,ijcoff)
182 ijdum = indij(
j,
i,off1d) + 1
184 rhs(cv_mixt_dens,ijkc) =
rhs(cv_mixt_dens,ijkc) + &
185 d(ijdum)*
rhs(cv_mixt_dens,ijkc1)
186 rhs(cv_mixt_xmom,ijkc) =
rhs(cv_mixt_xmom,ijkc) + &
187 d(ijdum)*
rhs(cv_mixt_xmom,ijkc1)
188 rhs(cv_mixt_ymom,ijkc) =
rhs(cv_mixt_ymom,ijkc) + &
189 d(ijdum)*
rhs(cv_mixt_ymom,ijkc1)
190 rhs(cv_mixt_zmom,ijkc) =
rhs(cv_mixt_zmom,ijkc) + &
191 d(ijdum)*
rhs(cv_mixt_zmom,ijkc1)
192 rhs(cv_mixt_ener,ijkc) =
rhs(cv_mixt_ener,ijkc) + &
193 d(ijdum)*
rhs(cv_mixt_ener,ijkc1)
206 ijdum = indij(
k,
i,off1d) + 1
213 ijkc = indijk(
i,
j,
k ,icoff,ijcoff)
214 ijkc1 = indijk(
i,
j,km1,icoff,ijcoff)
215 ijdum = indij(
k ,
i,off1d) + 1
216 ijdum1 = indij(km1,
i,off1d) + 1
217 t = 1._rfreal/(1._rfreal+2._rfreal*epsirs(kcoord,ijkc)- &
218 epsirs(kcoord,ijkc)*
d(ijdum1))
219 d(ijdum) = t*epsirs(kcoord,ijkc)
221 rhs(cv_mixt_dens,ijkc) = t*(
rhs(cv_mixt_dens,ijkc) + &
222 epsirs(kcoord,ijkc)*
rhs(cv_mixt_dens,ijkc1))
223 rhs(cv_mixt_xmom,ijkc) = t*(
rhs(cv_mixt_xmom,ijkc) + &
224 epsirs(kcoord,ijkc)*
rhs(cv_mixt_xmom,ijkc1))
225 rhs(cv_mixt_ymom,ijkc) = t*(
rhs(cv_mixt_ymom,ijkc) + &
226 epsirs(kcoord,ijkc)*
rhs(cv_mixt_ymom,ijkc1))
227 rhs(cv_mixt_zmom,ijkc) = t*(
rhs(cv_mixt_zmom,ijkc) + &
228 epsirs(kcoord,ijkc)*
rhs(cv_mixt_zmom,ijkc1))
229 rhs(cv_mixt_ener,ijkc) = t*(
rhs(cv_mixt_ener,ijkc) + &
230 epsirs(kcoord,ijkc)*
rhs(cv_mixt_ener,ijkc1))
237 ijkc = indijk(
i,
j,
k ,icoff,ijcoff)
238 ijkc1 = indijk(
i,
j,kp1,icoff,ijcoff)
239 ijdum = indij(
k,
i,off1d) + 1
241 rhs(cv_mixt_dens,ijkc) =
rhs(cv_mixt_dens,ijkc) + &
242 d(ijdum)*
rhs(cv_mixt_dens,ijkc1)
243 rhs(cv_mixt_xmom,ijkc) =
rhs(cv_mixt_xmom,ijkc) + &
244 d(ijdum)*
rhs(cv_mixt_xmom,ijkc1)
245 rhs(cv_mixt_ymom,ijkc) =
rhs(cv_mixt_ymom,ijkc) + &
246 d(ijdum)*
rhs(cv_mixt_ymom,ijkc1)
247 rhs(cv_mixt_zmom,ijkc) =
rhs(cv_mixt_zmom,ijkc) + &
248 d(ijdum)*
rhs(cv_mixt_zmom,ijkc1)
249 rhs(cv_mixt_ener,ijkc) =
rhs(cv_mixt_ener,ijkc) + &
250 d(ijdum)*
rhs(cv_mixt_ener,ijkc1)
**********************************************************************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 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)
subroutine rflo_residualsmoothing(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 jpcend
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)