Chapter 15. PROFILE FILE OUTPUT FORMAT
| TABLE OF CONTENTS | CLOSE MANUAL |
The VULCAN code has the ability to read and write VULCAN profile files. This type of file contains the non-dimensional conserved variable array Q, and the non-dimensional static temperature QG(3), located at the cell center of the last two rows of computational cells adjacent to a given computational boundary when used with BC NAME PROFILE or BC TYPEs PROFILE or PPROFILE. When the BC TYPE is either STWALLM or CPWALLM the data to be read into the Q and QG arrays are defined dependent on the boundary condition type.
Non-dimensional conserved variables = Q(nj,nk,ni,NQ,nlev)
Non-dimensional static temperature = QG(nj,nk,ni,3,nlev)nj, nk and ni are the grid dimensions in the "j", "k", and "i" directions, NQ is the number of governing equations being solved, nblk is the number of grid blocks, and nlev is the number of grid levels.
The conserved variables used by VULCAN are broken into 6 groups having the following order and non-dimensionalization :
1) The chemical species densities (rho_i): |
The non-dimensional conserved variable data is immediately followed by the non-dimensional static temperature data QG(nj,nk,ni,3,nblk,NCS+5,nlev)/(TREF) where TREF is the reference static temperature (Kelvins).
nj, nk and ni are the grid dimensions in the "j", "k", and "i" directions, NQ is the number of governing equations being solved, nblk is the number of grid blocks, and nlev is the number of grid levels.
The primitive variables used by VULCAN are broken into 6 groups having the following order and dimensionalization :
1) The chemical species mass fractions (f_i): |
NOTE: Because the primitive variables are to be specified in dimensional form the reference quantities RHOREF, AREF, TREF, and RMUREF that are written into the profile file MUST!!! be set to 1.0 (see the FORTRAN code fragment(s) below).
The dimensional primitive variable data is immediately followed by the dimensional static temperature data QG(nj,nk,ni,3,nblk,NCS+5,nlev) where the static temperature is in Kelvins.
1) For a BC TYPE of STWALLM the values of the data to be read from the profile file should be:
| A MIN boundary B.C. *---------*---------*---------*---------* | | \| | | | | \| | | L-Direction-> | ghost | ghost \| inter. | inter. | | MIN-2 | MIN-1 \| MIN | MIN+1 | | | \| | | *---------*---------*---------*---------* A MAX boundary B.C. The cells are ordered in the following manner: *---------*---------*---------*---------* |
Figure 11. Boundary condition cell ordering and orientation.
An I-boundary profile boundary condition will write a profile file using the following FORTRAN code fragment:
| C C Open the profile file C OPEN (IQPFOT,FILE=QPFILO,STATUS='UNKNOWN',FORM='FORMATTED') C WRITE(IQPFOT,*) NCOORD WRITE(IQPFOT,*) NQ, ITRBMD WRITE(IQPFOT,*) RHOREF, AREF, TREF, RMUREF WRITE(IQPFOT,*) (JBCEN-JBCBG+1)/1,(KBCEN-KBCBG+1)/1, 3, JGSTFLG, KGSTFLG C C Write the conserved variables C DO L = 1, NQ IF = 0 DO I = IQBG, IQBG+IINDX, IINDX IF = IF + 1 DO K = KBCBG, KBCEN, 1 DO J = JBCBG, JBCEN, 1 WRITE(IQPFOT,*) Q(J,K,IF,L,0) ENDDO ENDDO ENDDO ENDDO C C Write the static temperature C IF = 0 DO I = IQBG, IQBG+IINDX, IINDX IF = IF + 1 DO K = KBCBG, KBCEN, 1 DO J = JBCBG, JBCEN, 1 WRITE(IQPFOT,*) QG(J,K,IF,3,0) ENDDO ENDDO ENDDO C C Close the profile file C CLOSE (IQPFOT) |
A J-boundary profile boundary condition will write a profile file using the following FORTRAN code fragment:
| C C Open the profile file C OPEN (IQPFOT,FILE=QPFILO,STATUS='UNKNOWN',FORM='FORMATTED') C C Write the conserved variables C WRITE(IQPFOT,*) NCOORD WRITE(IQPFOT,*) NQ, ITRBMD WRITE(IQPFOT,*) RHOREF, AREF, TREF, RMUREF WRITE(IQPFOT,*) (KBCEN-KBCBG+1)/1,(IBCEN-IBCBG+1)/1, 1, KGSTFLG, IGSTFLG C DO L = 1, NQ JF = 0 DO J = JQBG, JQBG+JINDX, JINDX JF = JF + 1 DO I = IBCBG, IBCEN, 1 DO K = KBCBG, KBCEN, 1 WRITE(IQPFOT,*) Q(JF,K,I,L,0) 900 ENDDO 910 ENDDO 920 ENDDO 930 ENDDO C C Write the static temperature C JF = 0 DO J = JQBG, JQBG+JINDX, JINDX JF = JF + 1 DO I = IBCBG, IBCEN, 1 DO K = KBCBG, KBCEN, 1 WRITE(IQPFOT,*) QG(JF,K,I,3,0) ENDDO ENDDO ENDDO C C Close the profile file C CLOSE (IQPFOT) |
A K-boundary profile boundary condition will write a profile file using the following FORTRAN code fragment:
| C C Open the profile file C OPEN (IQPFOT,FILE=QPFILO,STATUS='UNKNOWN',FORM='FORMATTED') C WRITE(IQPFOT,*) NCOORD WRITE(IQPFOT,*) NQ, ITRBMD WRITE(IQPFOT,*) RHOREF, AREF, TREF, RMUREF WRITE(IQPFOT,*) (JBCEN-JBCBG+1)/1,(IBCEN-IBCBG+1)/1, 2, JGSTFLG, IGSTFLG C C Write the conserved variables C DO 975 L = 1, NQ KF = 0 DO K = KQBG, KQBG+KINDX, KINDX KF = KF + 1 DO I = IBCBG, IBCEN, 1 DO J = JBCBG, JBCEN, 1 WRITE(IQPFOT,*) Q(J,KF,I,L,0) ENDDO ENDDO ENDDO ENDDO C C Write the static temperature C KF = 0 DO K = KQBG, KQBG+KINDX, KINDX KF = KF + 1 DO I = IBCBG, IBCEN, 1 DO J = JBCBG, JBCEN, 1 WRITE(IQPFOT,*) QG(J,KF,I,3,0) ENDDO ENDDO ENDDO C C Close the profile file C CLOSE (IQPFOT) |
where:
IGSTFLG, JGSTFLG and KGSTFLG are ghost cell indicators:
NCOORD is the geometry type;
NOTE : The implementation of the Wilcox and Menter turbulence models are different in that the omega variable is defined for each model as:
1) Wilcox : omega = epsilon/kwhere k is the turbulent kinetic energy, epsilon is the turbulent dissipation, and C_mu is approximately equal to 0.09.
2) Menter : omega = epsilon/(C_mu*k)
| TABLE OF CONTENTS | CLOSE MANUAL |