74 TYPE(t_region
) :: region
77 INTEGER :: icoff, ijcoff
78 INTEGER :: indcp, indmol
79 INTEGER :: variableindex
81 REAL(RFREAL),
POINTER :: ev(:,:,:)
85 CHARACTER(CHRLEN) ::
msg
87 INTEGER :: ipc, jpc, kpc
91 INTEGER :: ilev, ioffset, ijoffset
93 TYPE(t_mixt),
POINTER :: mixt
94 REAL(RFREAL),
POINTER :: cv(:,:), gv(:,:)
96 REAL(RFREAL) :: rgas, gamma, rhoq, pressure, temperature, sound_speed, &
102 'RVAV_ExtractVariables.F90' )
106 ilev = global%startLevel
107 grid => region%levels(ilev)%grid
108 mixt => region%levels(ilev)%mixt
114 IF ( global%verbLevel/=verbose_none )
THEN
115 WRITE(stdout,
'(/,A)')
'RVAV Extract'
116 WRITE(stdout,
'(A,3(I5,3X))')
' ibeg,iend,ijump',
ibeg,
iend,ijump
117 WRITE(stdout,
'(A,3(I5,3X))')
' jbeg,jend,jjump',
jbeg,
jend,jjump
118 WRITE(stdout,
'(A,3(I5,3X))')
' kbeg,kend,kjump',
kbeg,kend,kjump
119 WRITE(stdout,
'(A,3(I5,3X))')
' iLev,iCOff,ijCOff',ilev,icoff,ijcoff
122 SELECT CASE ( filetype )
128 CASE (file_analytical)
131 IF (globalrvav%SimilarityTypeS2==rvav_blasius)
THEN
135 CASE (file_experimental)
141 IF ( global%verbLevel/=verbose_none )
THEN
142 WRITE(stdout,
'(A,3(I5,3X))')
' iLev,iOffset,ijOffset',ilev,ioffset,ijoffset
147 DO kpc =
kbeg, kend, kjump
152 ic = indijk( ipc, jpc, kpc, ioffset, ijoffset )
154 is = int(
REAL(ipc-
ibeg,kind=rfreal)/
REAL(ijump,kind=rfreal))+1
155 js = int(
REAL(jpc-
jbeg,kind=rfreal)/
REAL(jjump,kind=rfreal))+1
156 ks = int(
REAL(kpc-
kbeg,kind=rfreal)/
REAL(kjump,kind=rfreal))+1
160 IF ( filetype == file_computed )
THEN
162 rgas = 8314.3_rfreal/gv(gv_mixt_mol,
ic*indmol)
163 gamma = gv(gv_mixt_cp,
ic*indcp)/( gv(gv_mixt_cp,
ic*indcp)-rgas )
167 SELECT CASE( variableindex )
169 ev( is, js, ks ) = cv(cv_mixt_dens,
ic)
172 ev( is, js, ks ) = cv(cv_mixt_xmom,
ic)
175 ev( is, js, ks ) = cv(cv_mixt_ymom,
ic)
178 ev( is, js, ks ) = cv(cv_mixt_zmom,
ic)
181 ev( is, js, ks ) = cv(cv_mixt_ener,
ic)
184 ev( is, js, ks ) = cv(cv_mixt_xmom,
ic)/cv(cv_mixt_dens,
ic)
187 ev( is, js, ks ) = cv(cv_mixt_ymom,
ic)/cv(cv_mixt_dens,
ic)
190 ev( is, js, ks ) = cv(cv_mixt_zmom,
ic)/cv(cv_mixt_dens,
ic)
194 ( 1.0_rfreal/cv(cv_mixt_dens,
ic) )* &
195 ( cv(cv_mixt_xmom,
ic)*cv(cv_mixt_xmom,
ic) + &
196 cv(cv_mixt_ymom,
ic)*cv(cv_mixt_ymom,
ic) + &
197 cv(cv_mixt_zmom,
ic)*cv(cv_mixt_zmom,
ic) )
198 ev( is, js, ks ) = ( gamma-1._rfreal )* &
199 ( cv(cv_mixt_ener,
ic) - rhoq )
203 ( 1.0_rfreal/cv(cv_mixt_dens,
ic) )* &
204 ( cv(cv_mixt_xmom,
ic)*cv(cv_mixt_xmom,
ic) + &
205 cv(cv_mixt_ymom,
ic)*cv(cv_mixt_ymom,
ic) + &
206 cv(cv_mixt_zmom,
ic)*cv(cv_mixt_zmom,
ic) )
207 pressure = ( gamma-1._rfreal )* &
208 ( cv(cv_mixt_ener,
ic) - rhoq )
209 ev( is, js, ks ) = pressure/( cv(cv_mixt_dens,
ic)*rgas )
213 ( 1.0_rfreal/cv(cv_mixt_dens,
ic) )* &
214 ( cv(cv_mixt_xmom,
ic)*cv(cv_mixt_xmom,
ic) + &
215 cv(cv_mixt_ymom,
ic)*cv(cv_mixt_ymom,
ic) + &
216 cv(cv_mixt_zmom,
ic)*cv(cv_mixt_zmom,
ic) )
217 pressure = ( gamma-1._rfreal )* &
218 ( cv(cv_mixt_ener,
ic) - rhoq )
219 temperature = pressure/( cv(cv_mixt_dens,
ic)*rgas )
220 sound_speed =
sqrt(gamma*rgas*temperature)
221 mach_number =
sqrt(2.0_rfreal*rhoq/cv(cv_mixt_dens,
ic))/sound_speed
222 ev( is, js, ks ) = (1.0_rfreal + &
223 0.5_rfreal*(gamma-1.0_rfreal)* &
224 mach_number*mach_number)*&
229 ( 1.0_rfreal/cv(cv_mixt_dens,
ic) )* &
230 ( cv(cv_mixt_xmom,
ic)*cv(cv_mixt_xmom,
ic) + &
231 cv(cv_mixt_ymom,
ic)*cv(cv_mixt_ymom,
ic) + &
232 cv(cv_mixt_zmom,
ic)*cv(cv_mixt_zmom,
ic) )
233 pressure = ( gamma-1._rfreal )* &
234 ( cv(cv_mixt_ener,
ic) - rhoq )
235 temperature = pressure/( cv(cv_mixt_dens,
ic)*rgas )
236 sound_speed =
sqrt(gamma*rgas*temperature)
237 mach_number =
sqrt(2.0_rfreal*rhoq/cv(cv_mixt_dens,
ic))/sound_speed
238 ev( is, js, ks ) = 1.0_rfreal + &
239 0.5_rfreal*(gamma-1.0_rfreal)* &
240 mach_number*mach_number
241 ev( is, js, ks ) = (ev( is, js, ks)**(gamma/(gamma-1.0_rfreal)))*&
248 IF ( filetype == file_analytical .OR. &
249 filetype == file_experimental )
THEN
251 ev( is, js, ks ) = cv(variableindex-zcoord,
ic)
**********************************************************************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 ibeg
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
**********************************************************************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 knode iend
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 knode jend
**********************************************************************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 knode jbeg
**********************************************************************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 knode kbeg
subroutine deregisterfunction(global)