The run_analysis.py
script is the main file that needs to be run.
In general the following parameters are available
--res RES
set linear resolution of the cubic box--type {transfer,flow,unit-test}
set analysis type
transfer
for energy transfer analysisflow
for analysis of turbulence statisticsunit-test
for some preliminary unit tests--data_type {Enzo,AthenaPP,AthenaHDFC,Athena}
set data cube type
Enzo
reads Enzo data using yt
frontendAthenaPP
reads Athena++/K-Athena data using yt
frontendAthenaHDFC
reads Athena data that has been converted to hdf5 dataAthena
reads Athena data using yt
frontend--data_path DATA_PATH
set data location--outfile OUTFILE
set file to store results (should be .pkl
for transfer
and .hdf5
for flow
)--extrema_file EXTREMA_FILE
Path to pickled python dictionary containing minimum and maximum values for quantities (used for creating histograms with a fixed [global] bounds)
{'rho' : [ 0., 10]}
-b
enable magnetic fields-forced
output is actively forced--eos {isothermal,adiabatic}
set equation of state--gamma GAMMA
set adiabatic gamma index-approx-isothermal
assume c_s^2 / gamma = p/rho = 1--terms {All,Int,UU,BUT,BUP,UBT,UBPb,BB,BUPbb,UBPbb,SS,SU,US,PU,FU}
set energy transfer terms to analyze--binning {log,lin,test}
set binning used in energy transfer analysis
lin
leads to linearly equally spaced bins with boundaries at $k = 0.5,1.5,2.5,...,Res/2$log
leads to logarithmically equally spaced bins with boundaries at $k = 0, 4 * 2^{(i - 1)/4},Res/2$test
leads to bins used for regression testing, i.e. $k = 0.5,1.5,2.5,16.0,26.5,28.5,32.0$--kernels
choose one or more real space convolution kernels to be used in filtering
Box
for a box car/top hat filter (implementation needs update)Sharp
for a sharp spectral filterGauss
for a smooth Gaussian filterUse the run_analysis.py
script with the --flow transfer
option.
For example (to run the transfer analysis on the regression data set),
srun -n 8 python ./run_analysis.py --terms All FU PU BUPbb UBPbb --res 128 --data_path DD0024/data0024 --data_type Enzo --binning test --type transfer --outfile test-out.pkl --eos adiabatic --gamma 1.0001 -forced -b
--kernels
Use the run_analysis.py
script with the --flow flow
option.
For example (to analyze a driven turbulence hydro simulation with an isothermal equation of state),
For example,
srun -n 8 python ./run_analysis.py --res 256 --data_path /PATH/TO/SIM/DUMP --data_type Athena --type flow --eos isothermal --outfile /PATH/TO/OUTFILE.hdf5 -forced --kernels Gauss
The notebook sample_flow_analysis.ipynb
contains examples on how to analyze/visualize/plot the data from the flow analysis.
run_analysis.py
and add another option to the --data_type
argumentIOhelperFuncs.py
and make sure that the field variables are the strings
that are availble for that particular dump within it, i.e.
they should be present in the ds.field_list
array.