In order to produce 1D statistics, the easiest procedure is to modify the Statistics section of your input
file from
! Statistics
Statistics type : 2D
Statistics frequency : 5.0e-6
to
! Statistics
Statistics type : 1D-x 2D
Statistics frequency : 5.0e-6
Statistics locations y: 0.0
where 1D-x
(statistics along the x-direction) can be replaced with 1D-y
(statistics along y-direction). Similarly, Statistics locations y:
can be replaced with Statistics locations x:
. The parameters to this field indicate the desired locations to sample data at (multiple locations should be separated with a space).
If you are investigating an existing simulation that only has a stat-2D
file, then you will need to use the following procedure:
cd
to thebin/
directory of the [wiki:NGA] code that your simulation uses. For example,cd /home/muellerm/NGA/bin/
or
cd /home/muellerm/NGA-ctrfl/bin/
- Run the
statdata2plot3d
executable by typing./statdata2plot3d
a. Enter the location of thestat-2D
file of your simulation. For example,stat file: /scratch/gpfs/muellerm/adelaide/flame_1/stat/stat-2D
b. Enter the location where you want to save the generateddata
,data.nam
, anddata.res
files:PLOT3D directory : /scratch/gpfs/muellerm/adelaide/flame_1/stat
- Run the
statconfig2plot3d
executable by typing./statconfig2plot3d
a. Enter the location of theconfig
file of your simulation. For example,config file : /scratch/gpfs/muellerm/adelaide/flame_1/config
b. Enter the location where you want to save the generatedgrid
file:PLOT3D directory : /scratch/gpfs/muellerm/adelaide/flame_1/stat
- Run [wiki:Ensight] in client-server modea. File -> Open and change the “File type:” option to “All files(*)”. Click on the “Advanced interface” radio button and select
data.res
.b. While still in theOpen...
menu, set the “Set geometry” field to the path to thegrid
file (should be thePLOT3D directory
):/scratch/gpfs/muellerm/adelaide/flame_1/stat/grid
c. Click on “Load all parts” - With [wiki:Ensight] open, click on your geometry and select the Color/transparency tool. Color your geometry with the desired scalar.
- Create -> Clips to create a clip plane at the location where you want to sample your scalar along. Your clip plane should be perpendicular to your geometry (the “Mesh slice” option will most likely be “Y”). In the current example, set “Mesh Slice” to “Y” and click on “<” until “Value” is
8.692666e-05
, the minimum “Y” slice value. - Right-click on the very thin light-blue rectangle that has appeared in your geometry and select “Query”. Then select the desired scalar to query the clip plane for. A plot of the scalar versus distance will appear in the main viewport.
- To save your query along the clip plane to a stat-1D file, click on the “Plots/queries” tab in the bottom left of your screen. Under “Queries”, right-click on the desired scalar and select Data -> Save CSV to file or Data -> Save XY to file. Note that you can save multiple scalars at once to a file.