67 TYPE(t_region
),
POINTER :: regions(:)
73 CHARACTER(2*CHRLEN+17) :: fname
75 INTEGER :: ilev, iregfile, ipc, jpc, kpc, ndumcells, ioff, ijoff, ijk
78 INTEGER :: ndimc, ndimn, errorflag
79 INTEGER,
ALLOCATABLE :: ivar(:,:)
81 REAL(RFREAL),
POINTER :: cv(:,:), sivel(:), sjvel(:), skvel(:)
82 REAL(RFREAL),
ALLOCATABLE :: rvar(:,:), cvfile(:,:), svelfile(:,:)
88 global => regions(ireg)%global
91 'RFLO_WriteSolutionRegion.F90' )
95 ALLOCATE( ivar(5,1),stat=errorflag )
96 ALLOCATE( rvar(2,1),stat=errorflag )
97 global%error = errorflag
98 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
106 IF (global%flowType == flow_unsteady)
THEN
107 IF (global%solutFormat == format_ascii)
THEN
108 WRITE(fname,
'(A,1PE11.5)') trim(global%outDir)//trim(global%casename)//
'.sola_', &
110 OPEN(if_solut,file=fname,
form=
'formatted',
status=
'unknown', &
112 ELSE IF (global%solutFormat == format_binary)
THEN
113 WRITE(fname,
'(A,1PE11.5)') trim(global%outDir)//trim(global%casename)//
'.solb_', &
115 OPEN(if_solut,file=fname,
form=
'unformatted',
status=
'unknown', &
118 CALL
errorstop( global,err_unknown_format,__line__ )
120 rvar(1,1) = global%currentTime
121 rvar(2,1) = 1._rfreal
126 IF (global%solutFormat == format_ascii)
THEN
127 WRITE(fname,
'(A,I6.6)') trim(global%outDir)//trim(global%casename)//
'.sola_', &
129 OPEN(if_solut,file=fname,
form=
'formatted',
status=
'unknown', &
131 ELSE IF (global%solutFormat == format_binary)
THEN
132 WRITE(fname,
'(A,I6.6)') trim(global%outDir)//trim(global%casename)//
'.solb_', &
134 OPEN(if_solut,file=fname,
form=
'unformatted',
status=
'unknown', &
137 CALL
errorstop( global,err_unknown_format,__line__ )
139 rvar(1,1) = 0._rfreal
140 rvar(2,1) = global%resInit
143 global%error = errorflag
144 IF (global%error /= 0) &
145 CALL
errorstop( global,err_file_open,__line__,
'File: '//trim(fname) )
156 ilev = regions(ireg)%currLevel
162 ndimc = ijkend - ijkbeg + 1
167 ndimn = (regions(ireg)%levels(ilev)%grid%ipc+1)* &
168 (regions(ireg)%levels(ilev)%grid%jpc+1)* &
169 (regions(ireg)%levels(ilev)%grid%kpc+1)
173 ALLOCATE( cvfile(cv_mixt_neqs,ndimc),stat=errorflag )
174 global%error = errorflag
175 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
177 IF (regions(ireg)%mixtInput%moveGrid)
THEN
178 ALLOCATE( svelfile(3,ndimn),stat=errorflag )
179 global%error = errorflag
180 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
185 cv => regions(ireg)%levels(ilev)%mixt%cv
192 ijk = indijk(
i,
j,
k,ioff,ijoff)
193 cvfile(1,
n) = cv(cv_mixt_dens,ijk)
194 cvfile(2,
n) = cv(cv_mixt_xmom,ijk)
195 cvfile(3,
n) = cv(cv_mixt_ymom,ijk)
196 cvfile(4,
n) = cv(cv_mixt_zmom,ijk)
197 cvfile(5,
n) = cv(cv_mixt_ener,ijk)
202 IF (regions(ireg)%mixtInput%moveGrid)
THEN
203 sivel => regions(ireg)%levels(ilev)%grid%siVel
204 sjvel => regions(ireg)%levels(ilev)%grid%sjVel
205 skvel => regions(ireg)%levels(ilev)%grid%skVel
211 ijk = indijk(
i,
j,
k,inoff,ijnoff)
212 svelfile(1,
n) = sivel(ijk)
213 svelfile(2,
n) = sjvel(ijk)
214 svelfile(3,
n) = skvel(ijk)
223 ivar(2,1) = regions(ireg)%levels(ilev)%grid%ipc
224 ivar(3,1) = regions(ireg)%levels(ilev)%grid%jpc
225 ivar(4,1) = regions(ireg)%levels(ilev)%grid%kpc
226 ivar(5,1) = regions(ireg)%nDumCells
232 cv_mixt_neqs,ndimc,cvfile )
234 IF (regions(ireg)%mixtInput%moveGrid)
THEN
239 DEALLOCATE( cvfile,stat=errorflag )
240 global%error = errorflag
241 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
243 IF (regions(ireg)%mixtInput%moveGrid)
THEN
244 DEALLOCATE( svelfile,stat=errorflag )
245 global%error = errorflag
246 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
251 IF (ireg == global%nRegions)
THEN
252 CLOSE(if_solut,iostat=errorflag)
253 global%error = errorflag
254 IF (global%error /= 0) &
255 CALL
errorstop( global,err_file_close,__line__,
'File: '//trim(fname) )
**********************************************************************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
subroutine rflo_writedatafileint(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 kpnbeg
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 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 rflo_writedatafilereal(global, fileId, form, nDim1, nDim2, var)
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_writesolutionregion(iReg, regions)