Fast fourier transform using the fftw library. More...
Public Types | |
enum | transformDirection { FORWARD_TRANSFORM = -1, REVERSE_TRANSFORM = 1 } |
Static Public Member Functions | |
static void | fftRenumberRecurse (List< complex > &data, List< complex > &renumData, const UList< int > &nn, label nnprod, label ii, label l1, label l2) |
static void | fftRenumber (List< complex > &data, const UList< int > &nn) |
fftRenumber: fold the n-d data array to get the fft components in the right places. More... | |
static tmp< complexField > | realTransform1D (const scalarField &field) |
Transform real-value data. More... | |
static tmp< complexField > | realTransform1D (const tmp< scalarField > &field) |
Transform real-value data. More... | |
static void | transform (complexField &field, const UList< int > &nn, transformDirection fftDirection) |
Transform complex-value data. More... | |
static tmp< complexField > | forwardTransform (const tmp< complexField > &field, const UList< int > &nn) |
static tmp< complexField > | reverseTransform (const tmp< complexField > &field, const UList< int > &nn) |
static tmp< complexVectorField > | forwardTransform (const tmp< complexVectorField > &field, const UList< int > &nn) |
static tmp< complexVectorField > | reverseTransform (const tmp< complexVectorField > &field, const UList< int > &nn) |
Fast fourier transform using the fftw library.
The complex transform field is returned in the field supplied. The direction of transform is supplied as an argument (-1 = forward, 1 = reverse). The dimensionality and organisation of the array of values in space is supplied in the nn indexing array.
enum transformDirection |
|
static |
Definition at line 28 of file fft.C.
References UList< T >::size().
Referenced by fft::fftRenumber().
fftRenumber: fold the n-d data array to get the fft components in the right places.
Definition at line 87 of file fft.C.
References fft::fftRenumberRecurse(), and forAll.
|
static |
Transform real-value data.
Definition at line 113 of file fft.C.
References UList< T >::data(), field(), n, and tmp< T >::New().
Referenced by noiseFFT::Pf(), and noiseModel::Pf().
|
static |
Transform real-value data.
Definition at line 161 of file fft.C.
References tmp< T >::clear().
|
static |
Transform complex-value data.
Definition at line 172 of file fft.C.
References UList< T >::begin(), field(), forAll, N(), Foam::expressions::Detail::rank(), and UList< T >::size().
|
static |
Definition at line 236 of file fft.C.
References tmp< T >::clear(), tmp< T >::New(), and Foam::transform().
Referenced by energySpectrum::calcAndWriteSpectrum(), and Foam::calcEk().
|
static |
Definition at line 252 of file fft.C.
References tmp< T >::clear(), tmp< T >::New(), and Foam::transform().
Referenced by turbGen::U().
|
static |
Definition at line 268 of file fft.C.
References tmp< T >::clear(), Foam::component(), Foam::expressions::Detail::nComponents(), and tmp< T >::New().
|
static |
Definition at line 291 of file fft.C.
References tmp< T >::clear(), Foam::component(), Foam::expressions::Detail::nComponents(), and tmp< T >::New().