Skip to content

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

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

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