spectre.fourier
Module Contents
- spectre.fourier.check_equidistant(arr)
- spectre.fourier.shift_fftfreq(arr)
- spectre.fourier.spec_fft(tarr: numpy.array, zarr: numpy.array, freal: numpy.array, Mpol: int = None, Ntor: int = None)
Fourier transform as in SPECTRE fortran source
- Args:
- tarr: 1D numpy array of size nt. Poloidal angle coordinate, each point
should be equidistant
- zarr: 1D numpy array of size nz. Toroidal angle coordinate, each point
should be equidistant
- freal: 2D numpy array of size (nz,nt). Function, in real space, for which
Fourier harmonics should be evaluated
Mpol: integer. Poloidal resolution. Default is nt/2.
Ntor: integer. Toroidal resolution. Default is nz/2.
- spectre.fourier.has_rocket_fft
- spectre.fourier.run_decorator_fft
- spectre.fourier.spec_fft_fast(tarr: numpy.array, zarr: numpy.array, freal_in: numpy.array, Mpol: int = None, Ntor: int = None)
Fourier transform as in SPECTRE fortran source
- Args:
- tarr: 1D numpy array of size nt. Poloidal angle coordinate, each point
should be equidistant
- zarr: 1D numpy array of size nz. Toroidal angle coordinate, each point
should be equidistant
- freal: 2D numpy array of size (nz,nt). Function, in real space, for which
Fourier harmonics should be evaluated
Mpol: integer. Poloidal resolution. Default is nt/2.
Ntor: integer. Toroidal resolution. Default is nz/2.