Fast fourier transform using the fftw library. More...
#include <fft.H>
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. | |
| static tmp< complexField > | realTransform1D (const scalarField &field) |
| Transform real-value data. | |
| static tmp< complexField > | realTransform1D (const tmp< scalarField > &field) |
| Transform real-value data. | |
| static void | transform (complexField &field, const UList< int > &nn, transformDirection fftDirection) |
| Transform complex-value data. | |
| 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 27 of file fft.C.
References fftRenumberRecurse(), and UList< T >::size().
Referenced by fftRenumber(), and fftRenumberRecurse().


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 fftRenumberRecurse(), and forAll.
Referenced by transform().


|
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(), noiseModel::Pf(), and realTransform1D().


|
static |
Transform real-value data.
Definition at line 160 of file fft.C.
References tmp< T >::clear(), and realTransform1D().

|
static |
Transform complex-value data.
Definition at line 171 of file fft.C.
References UList< T >::begin(), fftRenumber(), field(), forAll, FORWARD_TRANSFORM, N(), REVERSE_TRANSFORM, and UList< T >::size().

|
static |
Definition at line 235 of file fft.C.
References tmp< T >::clear(), FORWARD_TRANSFORM, tmp< T >::New(), and Foam::transform().
Referenced by energySpectrum::calcAndWriteSpectrum(), Foam::calcEk(), and forwardTransform().


|
static |
Definition at line 251 of file fft.C.
References tmp< T >::clear(), tmp< T >::New(), REVERSE_TRANSFORM, and Foam::transform().
Referenced by reverseTransform(), and turbGen::U().


|
static |
Definition at line 267 of file fft.C.
References tmp< T >::clear(), Foam::component(), forwardTransform(), VectorSpace< Form, Cmpt, Ncmpts >::nComponents, and tmp< T >::New().

|
static |
Definition at line 290 of file fft.C.
References tmp< T >::clear(), Foam::component(), VectorSpace< Form, Cmpt, Ncmpts >::nComponents, tmp< T >::New(), and reverseTransform().
