AmrDeriveSpectrum calculates the spectrum of variables in an AMReX plotfile.
It depends on the following:
-
MPI and its headers should be installed. AmrDeriveSpectrum works with mpich. The path to the MPI library is supplied via MPI_HOME.
-
FFTW2 and its headers should be installed. FFTW2 should have been compiled with MPI support with double precision. The path to the FFTW2 installation directory is supplied via FFTW2_HOME.
-
The amrex source code should be available, supplied via AMREX_HOME.
The following example uses AmrDeriveSpectrum to calculate the kinetic
energy spectrum from a MAESTRO plotfile named [plotfile]
:
$ ./AmrDeriveSpectrum3d.gnu.MPI.ex input_spectrum3d
$ paste -d ' ' [plotfile]/x_vel_spectrum_dw.dat [plotfile]/y_vel_spectrum_dw.dat [plotfile]/z_vel_spectrum_dw.dat > [plotfile]/all_spectrum.dat
$ python spectra.py [plotfile]
For license information, see the included file OpenSource.txt
.