69 TYPE(t_region
),
POINTER :: regions(:)
75 CHARACTER(2*CHRLEN+17) :: fname
76 CHARACTER(CHRLEN) ::
msg, timestring
78 INTEGER :: ilev, iregfile, ipc, jpc, kpc, ndumcells, ioff, ijoff, ijk
81 INTEGER :: ndimc, ndimn, errorflag
82 INTEGER,
ALLOCATABLE :: ivar(:,:)
84 REAL(RFREAL),
POINTER :: cv(:,:), sivel(:), sjvel(:), skvel(:)
85 REAL(RFREAL),
ALLOCATABLE :: rvar(:,:), cvfile(:,:), svelfile(:,:)
91 global => regions(ireg)%global
94 'RFLO_ReadSolutionRegion.F90' )
98 ALLOCATE( ivar(5,1),stat=errorflag )
99 ALLOCATE( rvar(2,1),stat=errorflag )
100 global%error = errorflag
101 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
105 IF (global%flowType == flow_unsteady)
THEN
106 WRITE(timestring,
'(1PE11.5)') global%timeStamp
108 WRITE(timestring,
'(1PE11.5)') 0._rfreal
117 IF (global%flowType == flow_unsteady)
THEN
118 IF (global%solutFormat == format_ascii)
THEN
119 WRITE(fname,
'(A,1PE11.5)') trim(global%inDir)//trim(global%casename)//
'.sola_', &
121 OPEN(if_solut,file=fname,
form=
'formatted',
status=
'old',iostat=errorflag)
122 ELSE IF (global%solutFormat == format_binary)
THEN
123 WRITE(fname,
'(A,1PE11.5)') trim(global%inDir)//trim(global%casename)//
'.solb_', &
125 OPEN(if_solut,file=fname,
form=
'unformatted',
status=
'old',iostat=errorflag)
127 CALL
errorstop( global,err_unknown_format,__line__ )
133 IF (global%solutFormat == format_ascii)
THEN
134 WRITE(fname,
'(A,I6.6)') trim(global%inDir)//trim(global%casename)//
'.sola_', &
136 OPEN(if_solut,file=fname,
form=
'formatted',
status=
'old',iostat=errorflag)
137 ELSE IF (global%solutFormat == format_binary)
THEN
138 WRITE(fname,
'(A,I6.6)') trim(global%inDir)//trim(global%casename)//
'.solb_', &
140 OPEN(if_solut,file=fname,
form=
'unformatted',
status=
'old',iostat=errorflag)
142 CALL
errorstop( global,err_unknown_format,__line__ )
146 global%error = errorflag
147 IF (global%error /= 0) &
148 CALL
errorstop( global,err_file_open,__line__,
'File: '//trim(fname) )
154 IF (global%flowType==flow_unsteady .AND. global%currentTime>0._rfreal)
THEN
155 IF (global%currentTime /= rvar(1,1))
THEN
156 WRITE(
msg,1000) rvar(1,1),global%currentTime
157 CALL
errorstop( global,err_time_solution,__line__,
msg//
' File: '//trim(fname) )
160 global%currentTime = rvar(1,1)
162 global%resInit = rvar(2,1)
169 ilev = regions(ireg)%currLevel
175 ndimc = ijkend - ijkbeg + 1
180 ndimn = (regions(ireg)%levels(ilev)%grid%ipc+1)* &
181 (regions(ireg)%levels(ilev)%grid%jpc+1)* &
182 (regions(ireg)%levels(ilev)%grid%kpc+1)
191 ndumcells = ivar(5,1)
193 IF (iregfile /= ireg) &
194 CALL
errorstop( global,err_region_number,__line__,
'File: '//trim(fname) )
195 IF ((ipc /= regions(ireg)%levels(ilev)%grid%ipc) .OR. &
196 (jpc /= regions(ireg)%levels(ilev)%grid%jpc) .OR. &
197 (kpc /= regions(ireg)%levels(ilev)%grid%kpc))
THEN
198 WRITE(
msg,1005) ireg,ipc,jpc,kpc
199 CALL
errorstop( global,err_grid_dimensions,__line__,
msg )
201 IF (ndumcells /= regions(ireg)%nDumCells)
THEN
202 WRITE(
msg,1010) ireg,ndumcells,regions(ireg)%nDumCells
208 ALLOCATE( cvfile(cv_mixt_neqs,ndimc),stat=errorflag )
209 global%error = errorflag
210 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
213 cv_mixt_neqs,ndimc,cvfile )
215 IF (regions(ireg)%mixtInput%moveGrid .AND. &
216 trim(timestring)/=
'0.00000E+00')
THEN
217 ALLOCATE( svelfile(3,ndimn),stat=errorflag )
218 global%error = errorflag
219 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
226 cv => regions(ireg)%levels(ilev)%mixt%cv
233 ijk = indijk(
i,
j,
k,ioff,ijoff)
234 cv(cv_mixt_dens,ijk) = cvfile(1,
n)
235 cv(cv_mixt_xmom,ijk) = cvfile(2,
n)
236 cv(cv_mixt_ymom,ijk) = cvfile(3,
n)
237 cv(cv_mixt_zmom,ijk) = cvfile(4,
n)
238 cv(cv_mixt_ener,ijk) = cvfile(5,
n)
243 IF (regions(ireg)%mixtInput%moveGrid .AND. &
244 trim(timestring)/=
'0.00000E+00')
THEN
245 sivel => regions(ireg)%levels(ilev)%grid%siVel
246 sjvel => regions(ireg)%levels(ilev)%grid%sjVel
247 skvel => regions(ireg)%levels(ilev)%grid%skVel
253 ijk = indijk(
i,
j,
k,inoff,ijnoff)
254 sivel(ijk) = svelfile(1,
n)
255 sjvel(ijk) = svelfile(2,
n)
256 skvel(ijk) = svelfile(3,
n)
262 DEALLOCATE( cvfile,stat=errorflag )
263 global%error = errorflag
264 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
266 IF (regions(ireg)%mixtInput%moveGrid .AND. &
267 trim(timestring)/=
'0.00000E+00')
THEN
268 DEALLOCATE( svelfile,stat=errorflag )
269 global%error = errorflag
270 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
275 IF (ireg == global%nRegions)
THEN
276 CLOSE(if_solut,iostat=errorflag)
277 global%error = errorflag
278 IF (global%error /= 0) &
279 CALL
errorstop( global,err_file_close,__line__,
'File: '//trim(fname) )
284 1000
FORMAT(
'Time in file is= ',1pe12.5,
' but it should be= ',e12.5,
'.')
285 1005
FORMAT(
'Region ',i5,
', ipc= ',i6,
', jpc= ',i6,
', kpc= ',i6,
'.')
286 1010
FORMAT(
'Region ',i5,
', # dummy cells=',i2,
' but should be= ',i1)
**********************************************************************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 jpnbeg
**********************************************************************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 kpnbeg
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine rflo_readsolutionregion(iReg, regions)
subroutine rflo_readdatafileint(global, fileId, form, nDim1, nDim2, ivar)
**********************************************************************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 jpnend
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
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 ipnbeg
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 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 jdcend
subroutine rflo_getdimensphysnodes(region, iLev, ipnbeg, ipnend, jpnbeg, jpnend, kpnbeg, kpnend)
**********************************************************************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 errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
**********************************************************************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 ipnend
subroutine rflo_readdatafilereal(global, fileId, form, nDim1, nDim2, var)