66 TYPE(t_region
),
POINTER :: regions(:)
71 INTEGER,
PARAMETER :: nvals_max=18
73 CHARACTER(CHRLEN) :: rcsidentstring
74 CHARACTER(20) :: keys(nvals_max)
78 LOGICAL :: defined(nvals_max)
80 REAL(RFREAL) :: vals(nvals_max)
86 rcsidentstring =
'$RCSfile: PLAG_ReadDisPartSection.F90,v $ $Revision: 1.7 $'
88 global => regions(1)%global
91 'PLAG_ReadDisPartSection.F90' )
100 keys( 2) =
'NPCLSMAX'
101 keys( 3) =
'EJECMODEL'
102 keys( 4) =
'INJCVELRATIO'
104 keys( 6) =
'INJCBETA'
105 keys( 7) =
'INJCDIAMDIST'
106 keys( 8) =
'INJCDIAMMEAN'
107 keys( 9) =
'INJCDIAMMIN'
108 keys(10) =
'INJCDIAMMAX'
109 keys(11) =
'INJCSTDDEV'
110 keys(12) =
'INTRPLMIXTMODEL'
111 keys(13) =
'NPCLSBUFFTOT'
112 keys(14) =
'NPCLSBUFFCECELLSMAX'
113 keys(15) =
'BREAKUPMODEL'
114 keys(16) =
'BREAKUPFAC'
115 keys(17) =
'BREAKUPWEBSWI'
116 keys(18) =
'FINDPCLMETHOD'
120 brbeg,brend,defined )
126 brbeg = lbound(regions,1)
127 brend = ubound(regions,1)
131 IF (vals(1) < 0.1)
THEN
132 regions(
brbeg:brend)%plagInput%readStatus = 0
134 regions(
brbeg:brend)%plagInput%readStatus = 1
139 regions(
brbeg:brend)%plagInput%nPclsMax =
max(1,int(abs(vals(2))+0.5_rfreal))
142 regions(
brbeg:brend)%plagInput%ejecModel = nint(abs(vals(3)))
143 IF ( vals(3) > 0.9 .AND. vals(3) < 1.1 ) &
144 regions(
brbeg:brend)%plagInput%ejecModel = plag_ejec_model1
145 IF ( vals(3) > 1.9 .AND. vals(3) < 2.1 ) &
146 regions(
brbeg:brend)%plagInput%ejecModel = plag_ejec_cre
150 regions(
brbeg:brend)%plagInput%injcVelRatio = abs(vals(4))
153 regions(
brbeg:brend)%plagInput%spLoad = abs(vals(5))
156 regions(
brbeg:brend)%plagInput%injcBeta = abs(vals(6))
159 regions(
brbeg:brend)%plagInput%injcDiamDist = nint(abs(vals(7)))
160 IF ( vals(7) > 0.9 .AND. vals(7) < 1.1 ) &
161 regions(
brbeg:brend)%plagInput%injcDiamDist = plag_injc_lognorm
162 IF ( vals(7) > 1.9 .AND. vals(7) < 2.1 ) &
163 regions(
brbeg:brend)%plagInput%injcDiamDist = plag_injc_logskwd
164 IF ( vals(7) > 2.9 .AND. vals(7) < 3.1 )
THEN
165 regions(
brbeg:brend)%plagInput%injcDiamDist = plag_injc_pdf
172 regions(
brbeg:brend)%plagInput%injcDiamMean = abs(vals(8))
175 regions(
brbeg:brend)%plagInput%injcDiamMin = abs(vals(9))
178 regions(
brbeg:brend)%plagInput%injcDiamMax = abs(vals(10))
181 regions(
brbeg:brend)%plagInput%injcStdDev = abs(vals(11))
183 IF (defined(12))
THEN
184 regions(
brbeg:brend)%plagInput%intrplMixtModel = nint(abs(vals(12)))
185 IF ( vals(12) > -0.1 .AND. vals(12) < 0.1 ) &
186 regions(
brbeg:brend)%plagInput%intrplMixtModel = zeroth_order
187 IF ( vals(12) > 0.9 .AND. vals(12) < 1.1 ) &
188 regions(
brbeg:brend)%plagInput%intrplMixtModel = first_order
192 regions(
brbeg:brend)%plagInput%nPclsBuffTot =
max(1,int(abs(vals(13))+0.5_rfreal))
195 regions(
brbeg:brend)%plagInput%nPclsBuffCECellsMax =
max(1,int(abs(vals(14))+0.5_rfreal))
197 IF (defined(15))
THEN
198 regions(
brbeg:brend)%plagInput%breakupModel = nint(abs(vals(15)))
199 IF ( vals(15) > -0.1 .AND. vals(15) < 0.1 ) &
200 regions(
brbeg:brend)%plagInput%breakupModel = plag_breakup_nomodel
201 IF ( vals(15) > 0.9 .AND. vals(15) < 1.1 ) &
202 regions(
brbeg:brend)%plagInput%breakupModel = plag_breakup_model1
206 regions(
brbeg:brend)%plagInput%breakupFac = abs(vals(16))
208 IF (defined(17))
THEN
209 regions(
brbeg:brend)%plagInput%breakupWebSwi = nint(abs(vals(17)))
210 IF ( vals(17) > -0.1 .AND. vals(17) < 0.1 ) &
211 regions(
brbeg:brend)%plagInput%breakupWebSwi = plag_breakup_nowebswi
212 IF ( vals(17) > 0.9 .AND. vals(17) < 1.1 ) &
213 regions(
brbeg:brend)%plagInput%breakupWebSwi = plag_breakup_webswi1
216 IF ( defined(18) .EQV. .true. )
THEN
217 regions(
brbeg:brend)%plagInput%findPclMethod = vals(18)
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
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 readsection(global, fileID, nvals, keys, vals, defined)
subroutine plag_readdispartsection(regions)
subroutine readregionsection(global, fileID, nvals, keys, vals, brbeg, brend, defined)
**********************************************************************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 USE ModDataTypes USE nvals
subroutine deregisterfunction(global)
subroutine plag_readpdffromfile(regions, brbeg, brend)