Fast fourier transform derived from the Numerical Recipes in C routine. More...
Public Types | |
enum | transformDirection { FORWARD_TRANSFORM = 1, REVERSE_TRANSFORM = -1 } |
Static Public Member Functions | |
static void | transform (complexField &field, const labelList &nn, transformDirection fftDirection) |
static tmp< complexField > | forwardTransform (const tmp< complexField > &field, const labelList &nn) |
static tmp< complexField > | reverseTransform (const tmp< complexField > &field, const labelList &nn) |
static tmp< complexVectorField > | forwardTransform (const tmp< complexVectorField > &field, const labelList &nn) |
static tmp< complexVectorField > | reverseTransform (const tmp< complexVectorField > &field, const labelList &nn) |
Fast fourier transform derived from the Numerical Recipes in C routine.
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 42 of file fft.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::fftRenumber(), forAll, n, Foam::sin(), List::size(), Foam::sqrt(), SWAP, and TWOPI.
|
static |
Definition at line 187 of file fft.C.
References tmp::clear(), and Foam::transform().
Referenced by Foam::calcEk().
|
static |
Definition at line 203 of file fft.C.
References tmp::clear(), and Foam::transform().
Referenced by noiseFFT::Pf(), and turbGen::U().
|
static |
Definition at line 219 of file fft.C.
References tmp::clear(), Foam::component(), and VectorSpace< Vector< scalar >, scalar, 3 >::nComponents.
|
static |
Definition at line 248 of file fft.C.
References tmp::clear(), Foam::component(), and VectorSpace< Vector< scalar >, scalar, 3 >::nComponents.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.