65 TYPE(t_region
),
POINTER :: regions(:)
71 INTEGER,
PARAMETER :: nstrkeys_max = 5
72 INTEGER,
PARAMETER :: nkeys_max = 20
74 CHARACTER(CHRLEN) :: rcsidentstring
75 CHARACTER(CHRLEN) :: strkeys(nstrkeys_max),keys(nkeys_max)
76 CHARACTER(CHRLEN) :: strvals(nstrkeys_max)
78 INTEGER ::
brbeg,brend
79 INTEGER :: nstrkeys,nimplkeys,nkeys
80 INTEGER :: istrkeymaterialliq,istrkeymaterialgas
81 INTEGER :: ikey,ikeyused,ikeymodel,ikeyboilpt,ikeyenpms
83 LOGICAL :: defined(nkeys_max),strdefined(nstrkeys_max)
85 REAL(RFREAL) :: boilpt,enpms
86 REAL(RFREAL) :: vals(nkeys_max)
95 rcsidentstring =
'$RCSfile: INRT_ReadBoilingRegulation.F90,v $ $Revision: 1.3 $'
97 global => regions(1)%global
100 'INRT_ReadBoilingRegulation.F90' )
106 istrkeymaterialliq = 1
107 istrkeymaterialgas = 2
110 strkeys(istrkeymaterialliq) =
'MATERIAL_LIQ'
111 strkeys(istrkeymaterialgas) =
'MATERIAL_GAS'
113 IF (nstrkeys > nstrkeys_max) &
114 CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
124 keys(ikeyused) =
'USED'
125 keys(ikeymodel) =
'MODEL'
126 keys(ikeyboilpt) =
'BOILING_POINT'
127 keys(ikeyenpms) =
'ENERGY_PER_MASS'
131 IF (nkeys > nkeys_max) CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
137 vals,strvals,
brbeg,brend,defined,strdefined )
141 vals,strvals,defined,strdefined )
142 brbeg = lbound(regions,1)
143 brend = ubound(regions,1)
148 input => regions(ireg)%inrtInput
149 inrt =>
input%inrts(inrt_type_boilrgn)
153 IF (.NOT.
input%defaultRead) &
154 CALL
errorstop( global,err_inrt_defunread,__line__ )
156 IF (inrt%used) CALL
errorstop( global,err_inrt_read,__line__ )
162 IF (defined(ikeyused))
THEN
163 IF (nint(vals(ikeyused)) == 0) inrt%used = .false.
166 IF (.NOT. inrt%used) cycle
174 IF (strdefined(istrkeymaterialliq))
THEN
177 CALL
errorstop( global,err_inrt_missingmat,__line__ )
180 IF (strdefined(istrkeymaterialgas))
THEN
183 CALL
errorstop( global,err_inrt_missingmat,__line__ )
188 IF (matliq%molw /= matgas%molw .OR. matliq%dens /= matgas%dens .OR. &
189 matliq%spht /= matgas%spht) &
190 CALL
errorstop( global,err_inrt_boil_same,__line__ )
196 inrt%switches(inrt_swi_boilrgn_liqind) = matliq%index
197 inrt%switches(inrt_swi_boilrgn_gasind) = matgas%index
201 inrt%switches(inrt_swi_boilrgn_model) = inrt_boilrgn_model_default
203 IF (defined(ikeymodel))
THEN
205 SELECT CASE (nint(vals(ikeymodel)))
208 inrt%switches(inrt_swi_boilrgn_model) = inrt_boilrgn_model_sharp
211 CALL
errorstop( global,err_inrt_badswitch,__line__ )
221 IF (defined(ikeyboilpt))
THEN
223 boilpt = vals(ikeyboilpt)
225 IF (boilpt <= 0._rfreal) CALL
errorstop( global,err_inrt_badval,__line__ )
227 inrt%data(inrt_dat_boilrgn_boilpt) = boilpt
231 CALL
errorstop( global,err_inrt_missingval,__line__ )
237 IF (defined(ikeyenpms))
THEN
239 enpms = vals(ikeyenpms)
241 IF (enpms <= 0._rfreal) CALL
errorstop( global,err_inrt_badval,__line__ )
243 inrt%data(inrt_dat_boilrgn_enpms) = enpms
247 CALL
errorstop( global,err_inrt_missingval,__line__ )
subroutine readbothsection(global, fileID, nvals, nStrVals, keys, strKeys, vals, strVals, defined, strDefined)
subroutine readbothregionsection(global, fileID, nvals, nStrVals, keys, strKeys, vals, strVals, brbeg, brend, defined, strDefined)
subroutine inrt_setmaterial(global, material, name)
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 brbeg
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine inrt_readboilingregulation(regions)
subroutine inrt_defineboilingregulation(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)