72 TYPE(t_region
),
INTENT(INOUT),
TARGET :: region
78 CHARACTER(CHRLEN) :: rcsidentstring
82 INTEGER :: ilev, icoff, ijcoff
84 INTEGER :: indplagvapor, errorflag, ibc, iec, indcp, indmol, npcls,
icell
86 INTEGER,
POINTER,
DIMENSION(:,:) :: pplagaiv
88 REAL(RFREAL) :: releasetemp, gastemp, keepfrac, rgas, gamma, hcap, deltaener
90 REAL(RFREAL),
POINTER,
DIMENSION(:) :: vol
91 REAL(RFREAL),
POINTER,
DIMENSION(:,:) :: pmixtcv, pmixtdv, pmixtgv
92 REAL(RFREAL),
POINTER,
DIMENSION(:,:) :: pplagcv, pplagarv
94 REAL(RFREAL),
ALLOCATABLE :: vaportot(:)
97 TYPE(t_mixt),
POINTER :: pmixt
98 TYPE(t_plag),
POINTER :: pplag
104 '$RCSfile: INRT_VaporEnergyConversion.F90,v $ $Revision: 1.4 $'
106 global => region%global
109 'INRT_VaporEnergyConversion.F90' )
115 ilev = region%currLevel
122 pmixt => region%levels(ilev)%mixt
123 pplag => region%levels(ilev)%plag
124 vol => region%levels(ilev)%grid%vol
126 indmol = pmixt%indMol
131 iec = region%grid%nCellsTot
134 vol => region%grid%vol
135 indcp = region%mixtInput%indCp
136 indmol = region%mixtInput%indMol
142 IF (global%plagUsed) npcls = pplag%nPcls
144 IF (npcls < 1) go to 9
148 indplagvapor = region%inrtInput%indPlagVapor
149 IF (region%inrtInput%globActiveness(indplagvapor) /= inrt_act_active) go to 9
158 pplagaiv => pplag%aiv
159 pplagarv => pplag%arv
161 pinrtburn => region%inrtInput%inrts(inrt_type_burning)
166 releasetemp = pinrtburn%data(inrt_dat_burning_vapor_temp)
168 IF (releasetemp < 500._rfreal .OR. releasetemp > 10000._rfreal)
THEN
169 CALL
errorstop( global,err_inrt_badval,__line__ )
174 IF ( region%mixtInput%gasModel == gas_model_tcperf )
THEN
182 ALLOCATE( vaportot(ibc:iec),stat=errorflag )
183 errorflag = global%error
184 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
186 vaportot(:) = 0._rfreal
192 icell = pplagaiv(aiv_plag_icells,ipcls)
194 vaportot(
icell) = vaportot(
icell) + pplagcv( cv_plag_enervapor,ipcls) * &
195 pplagarv(arv_plag_spload, ipcls)
200 keepfrac = -1._rfreal
201 gastemp = pmixtdv(dv_mixt_temp,
ic)
203 IF (vaportot(
ic) > 0._rfreal .AND. gastemp < releasetemp)
THEN
211 vaportot(
ic) = vaportot(
ic) / vol(
ic)
219 hcap = (rgas/(gamma - 1._rfreal)) * pmixtcv(cv_mixt_dens,
ic)
224 deltaener = hcap*(releasetemp - gastemp)
228 IF (vaportot(
ic) > deltaener)
THEN
230 pmixtcv(cv_mixt_ener,
ic) = pmixtcv(cv_mixt_ener,
ic) + deltaener
232 keepfrac = 1._rfreal - deltaener / vaportot(
ic)
236 pmixtcv(cv_mixt_ener,
ic) = pmixtcv(cv_mixt_ener,
ic) + vaportot(
ic)
248 IF (keepfrac < 0._rfreal .OR. keepfrac > 1._rfreal)
THEN
249 CALL
errorstop( global,err_invalid_value,__line__ )
254 vaportot(
ic) = keepfrac
262 icell = pplagaiv(aiv_plag_icells,ipcls)
264 pplagcv(cv_plag_enervapor,ipcls) = pplagcv(cv_plag_enervapor,ipcls) * &
270 DEALLOCATE( vaportot,stat=errorflag )
271 global%error = errorflag
272 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
**********************************************************************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
real(rfreal) function mixtperf_r_m(M)
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 ic
subroutine inrt_vaporenergyconversion(region)
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
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 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 jdcend
**********************************************************************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 mixtureproperties(region, inBeg, inEnd, gasUpdate)
subroutine deregisterfunction(global)
real(rfreal) function mixtperf_g_cpr(Cp, R)