The post-processor mb_prof can be used to extract
profiles of flow quantities along grid-index directions.
% mb_prof.exe [-fp parameter_file] [-fg grid_file]
[-fs solution_file] [-fo output_file]
[-rb] [-rsplit] [-input-format]
[-t time] [-logrho] [-logp]
[-xline jb ix [-xline jb ix ...]]
[-yline jb iy [-yline jb iy ...]]
[-streamline x y ds nstep [-streamline x y ds nstep...]]
[-noheader]
The command-line options include...
- -fp parameter_file
- Input parameter file name.
Default is "default.p".
- -fg grid_file
- Grid file name.
Default is "default.g".
- -fs solution_file
- Flow solution file name.
Default is "default.s".
- -fo output_file
- The extracted data is written to this file.
Default is "prof.dat".
- -rb
- Read binary (unformatted) data from the grid and solution file.
By default, ASCII formatted data will be assumed.
- -rsplit
- Read data from split grid and solution files.
By default, data will be assumed to come from the one (unsplit) file.
- -input-format
- The output format shall be the shorter form required for the static profile
input file.
You still have to edit the file manually to add the number of data lines.
By default, data will be a more complete format suitable for plotting.
- -t time
- Solution time that is desired.
Default value is 0.0
If there are multiple times in the solution file,
solutions will be read and discarded until this specified
time is exceeded.
- -logrho
- Take log10 of density field.
Default is to retain the linear density range.
- -logp
- Take log10 of pressure field.
The default is to retain the linear pressure range.
- -xline jb ix
- Specify a line of cells from block jb
with constant index ix.
- -yline jb iy
- Specify a line of cells from block jb
with constant index iy.
- -streamline x y ds nstep
- Specify a line of cells along a streamline starting at (x, y)
and incrementing with step size ds for a maximum of
nstep steps.
The streamline will stop if the boundary of the flow domain is reached.
- -noheader
- This will suppress the header comment in the data file.
By default, one header comment will be written at the start of each set of
cells.
Up to 20 lines can be specified but, for each line
jb needs to be in the range 0..nblock
and 1 <= ix <= nx, 1 <= iy <= ny, for each block.
The data is written to the output file in ASCII format
with the following columns:
- x-coordinate in metres
- y-coordinate
- density in kg/m**3
- u-component of velocity in m/s
- v-component of velocity in m/s
- specific internal energy in J/kg
- pressure in Pa
- Mach number
- Pitot pressure in Pa
- Temperature in degrees K
- mass fraction of species 0
- mass fraction of species 1 (if present)
Check the header line written to the output file for the definitive list.
Also, note that the order in which the lines are specified on the command line
is preserved in the output file.
MB_CNS (C) P. A. Jacobs
Last Updated 04-Feb-1998, 25-Oct-01, 21-Oct-02, 19-May-03.