Understanding output files
Restart files
The file rst.bin contains the flow field in terms of conserved variables. For a single-species, ideal gas, these are \(\rho\), \(\rho\,u\), \(\rho\,v\), \(\rho\,w\), and \(\rho\,E\), where \(\rho\) is the density, \(u,v,w\) are the streamwise, wall-normal and spanwise velocity components, and \(E\) is the total energy.
The file field_info.dat contains the following information needed for restart:
current step number
current time
running index for runtime averaging
time interval from when last restart file was written
time interval from when last statistics file was written
time interval from when last slices where written
number of flow samples that have been stored in VTK or Plot3D format
The frequency with which rst.bin and field_info.dat are written is controlled by the input parameter dtsave_restart. At each restart, after reading the two files, STREAmS automatically renames them into rst.bak and field_info.bak.
Flow fields
Flow fields can be stored in standard VTK and/or Plot3D formats. Plot3D files are made of the mesh, stored in plot3dgrid.xyz, and the flow fields, stored in files flow_nnnn.q. VTK files are stored in flow_nnnn.vtr, which contains both the mesh and the solution. nnnn is the file number. Both Plot3d and VTK files contain the same primitive variables, namely \(\rho\), \(u\), \(v\), \(w\) and \(T\).
Solutions in VTK format are printed only if the input flag enable_vtk=1, whereas Plot3D files are printed only if enable_plot3d=1. The frequency with which these solutions are stored is controlled by the variable dtsave in the input file.
Mean flow statistics
Flow statistics are collected at runtime and stored in stat.bin and stat3d.bin.
The file stat.bin contains statistics averaged in time and in the spanwise direction, for a total of 68 variables:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The symbol \(\overline{(\cdot)}\) indicates averaging in time and spanwise direction.
The file stat3d.bin contains 3D flow statistics averaged in time, for a total of 14 variables:
\(\langle\rho\rangle\quad\quad\)
\(\langle\rho u\rangle\quad\quad\)
\(\langle\rho v\rangle\quad\quad\)
\(\langle\rho w\rangle\quad\quad\)
\(\langle p\rangle\quad\quad\)
\(\langle\rho^2\rangle\quad\quad\)
\(\langle\rho u^2\rangle\quad\quad\)
\(\langle\rho v^2\rangle\quad\quad\)
\(\langle\rho w^2\rangle\quad\quad\)
\(\langle\rho u v\rangle\quad\quad\)
\(\langle\rho u w\rangle\quad\quad\)
\(\langle\rho v w\rangle\quad\quad\)
\(\langle\rho T^2\rangle\quad\quad\)
\(\langle p^2\rangle\quad\quad\)
The output frequency of the statistics files is controlled by the input parameter dtsave_restart. If restart_type=2, stat.bin and stat3d.bin are read and renamed as stat.bak and stat3d.bak.
progress.out
The file progress.out is written and updated at runtime and contains different quantities depending on the initial flow condition.
For channel flow cases, it contains the following quantities:
step number
time step
time
residual of :math: rho u
pressure gradient :math:Pi
bulk density
bulk velocity
bulk temperature
For boundary layer and shock wave/boundary layer interaction flow cases, it contains the following quantities:
step number
time step
time
residual of \(\rho u\)
The same variables printed in progress.out are also printed on screen while the solver is running.