fluiddyn.calcul.easypyfft
Fast Fourier transforms (fluiddyn.calcul.easypyfft
)
- fluiddyn.calcul.easypyfft.fftw_grid_size(nk, bases=[2, 3, 5, 7, 11, 13], debug=False)[source]
Find the closest multiple of prime powers greater than or equal to nk using Mixed Integer Linear Programming (MILP). Useful while setting the grid-size to be compatible with FFTW.
- Parameters:
- nkint
Lower bound for the spectral grid size.
- basesarray-like, optional
List of bases, typically prime numbers.
- debugbool, optional
Print useful messages.
- Returns:
- int
Provides classes for performing fft in 1, 2, and 3 dimensions:
- class fluiddyn.calcul.easypyfft.FFTW2DReal2Complex(nx, ny)[source]
Bases:
BasePyFFT
A class to use fftw
Functions
|
Compute the adimensional wavenumber for an axis. |
|
Find the closest multiple of prime powers greater than or equal to nk using Mixed Integer Linear Programming (MILP). |
Classes
|
|
|
|
|
A class to use fftp |
|
A class to use fftw 1D |
|
A class to use fftw 1D |
|
A class to use fftw |
|
A class to use fftw |