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) |
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 34 of file fft.C.
References fft::fftRenumberRecurse(), Foam::Im(), Foam::Re(), and UList< T >::size().
Referenced by fft::fftRenumberRecurse().
|
static |
Transform real-value data.
result size is field.size()/2 + 1
Definition at line 120 of file fft.C.
References UList< T >::data(), field(), n, and Time::New().
Referenced by noiseModel::Pf(), and noiseFFT::Pf().
|
static |
Transform real-value data.
result size is field.size()/2 + 1
Definition at line 167 of file fft.C.
References tmp< T >::clear().
|
static |
Transform complex-value data.
Definition at line 178 of file fft.C.
References UList< T >::begin(), field(), forAll, N(), and UList< T >::size().
|
static |
Definition at line 242 of file fft.C.
References tmp< T >::clear(), Time::New(), and Foam::transform().
Referenced by energySpectrum::calcAndWriteSpectrum(), and Foam::calcEk().
|
static |
Definition at line 258 of file fft.C.
References tmp< T >::clear(), Time::New(), and Foam::transform().
Referenced by turbGen::U().
|
static |
Definition at line 274 of file fft.C.
References tmp< T >::clear(), Foam::component(), pTraits< bool >::nComponents, and Time::New().
|
static |
Definition at line 297 of file fft.C.
References tmp< T >::clear(), Foam::component(), pTraits< bool >::nComponents, and Time::New().