60 TYPE(t_region
),
POINTER :: regions(:)
68 CHARACTER(CHRLEN+9) :: fname
71 INTEGER :: ilev, icoff, ijcoff,
icell, npeul,
i,
j,
k
75 REAL(RFREAL) :: rho, u,
v, w, press, temp
76 REAL(RFREAL),
POINTER :: cv(:,:), dv(:,:), peulcv(:,:)
82 global => regions(ireg)%global
93 IF (global%peulUsed) npeul = regions(ireg)%peulInput%nPtypes
99 IF (global%specUsed) npeul = regions(ireg)%specInput%nSpecies
105 DO iprobe=1,global%nProbes
112 IF (global%probePos(iprobe,1)<1 .OR. &
113 global%probePos(iprobe,1)>global%nRegions) &
114 CALL
errorstop( global,err_probe_location,__line__ )
118 IF (regions(global%probePos(iprobe,1))%procid==global%myProcid .AND. &
119 regions(global%probePos(iprobe,1))%active==active .AND. &
120 ireg==global%probePos(iprobe,1))
THEN
124 ilev = regions(ireg)%currLevel
132 IF ((global%probePos(iprobe,2)<
ipcbeg .OR. &
133 global%probePos(iprobe,2)>
ipcend) .OR. &
134 (global%probePos(iprobe,3)<
jpcbeg .OR. &
135 global%probePos(iprobe,3)>
jpcend) .OR. &
136 (global%probePos(iprobe,4)<
kpcbeg .OR. &
137 global%probePos(iprobe,4)>kpcend)) &
138 CALL
errorstop( global,err_probe_location,__line__ )
140 i = global%probePos(iprobe,2)
141 j = global%probePos(iprobe,3)
142 k = global%probePos(iprobe,4)
145 cv => regions(ireg)%levels(ilev)%mixt%cv
146 dv => regions(ireg)%levels(ilev)%mixt%dv
148 IF (npeul > 0) peulcv => regions(ireg)%levels(ilev)%peul%cv
154 IF ( global%probePos(iprobe,probe_region) == &
155 regions(ireg)%iRegionGlobal )
THEN
157 icell = global%probePos(iprobe,probe_cell)
159 cv => regions(ireg)%mixt%cv
160 dv => regions(ireg)%mixt%dv
161 IF (npeul > 0) peulcv => regions(ireg)%spec%cv
170 rho = cv(cv_mixt_dens,
icell)
171 u = cv(cv_mixt_xmom,
icell)/rho
172 v = cv(cv_mixt_ymom,
icell)/rho
173 w = cv(cv_mixt_zmom,
icell)/rho
174 press = dv(dv_mixt_pres,
icell)
175 temp = dv(dv_mixt_temp,
icell)
178 IF (global%flowType == flow_steady)
THEN
179 WRITE(if_probe+iprobe-1,1000,iostat=errorflag) global%currentIter, &
182 WRITE(if_probe+iprobe-1,1005,iostat=errorflag) global%currentTime, &
188 IF (global%flowType == flow_steady)
THEN
189 WRITE(if_probe+iprobe-1,1000,iostat=errorflag) global%currentIter, &
190 rho,u,
v,w,press,temp,&
191 peulcv(1:npeul,
icell)
193 WRITE(if_probe+iprobe-1,1005,iostat=errorflag) global%currentTime, &
194 rho,u,
v,w,press,temp,&
195 peulcv(1:npeul,
icell)
200 IF (global%flowType == flow_steady)
THEN
201 WRITE(if_probe+iprobe-1,1000,iostat=errorflag) global%currentIter, &
202 rho,u,
v,w,press,temp,&
203 peulcv(1:npeul,
icell)
205 WRITE(if_probe+iprobe-1,1005,iostat=errorflag) global%currentTime, &
206 rho,u,
v,w,press,temp,&
207 peulcv(1:npeul,
icell)
212 global%error = errorflag
213 IF (global%error /= 0)
THEN
214 CALL
errorstop( global,err_file_write,__line__,
'Probe file' )
219 IF (global%probeOpenClose)
THEN
220 WRITE(fname,
'(A,I4.4)') &
221 trim(global%outDir)//trim(global%casename)//
'.prb_',iprobe
222 CLOSE(if_probe+iprobe-1)
223 OPEN(if_probe+iprobe-1,file=fname,
form=
'FORMATTED',
status=
'OLD', &
235 1000
FORMAT(i6,1p,99e24.15)
236 1005
FORMAT(1pe14.7,99e24.15)
**********************************************************************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)
int status() const
Obtain the status of the attribute.
**********************************************************************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
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS 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 v
subroutine writeprobe(regions, iReg)
**********************************************************************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 form
**********************************************************************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 icell
**********************************************************************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 errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)