Skip to content

The AmrDeriveSpectrum postprocessing code computes the spatial Fourier transform of variables in AMReX plotfiles.

Notifications You must be signed in to change notification settings

johnpwakefield/AmrDeriveSpectrum

 
 

Repository files navigation

AmrDeriveSpectrum

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.

About

The AmrDeriveSpectrum postprocessing code computes the spatial Fourier transform of variables in AMReX plotfiles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 51.2%
  • C++ 43.7%
  • Makefile 2.6%
  • Python 2.4%
  • Shell 0.1%