OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

fft Class Reference

Fast fourier transform derived from the Numerical Recipes in C routine. More...

List of all members.


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)

Detailed Description

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.

Source files

Definition at line 47 of file fft.H.


Member Enumeration Documentation

Enumerator:
FORWARD_TRANSFORM 
REVERSE_TRANSFORM 

Definition at line 52 of file fft.H.


Member Function Documentation

void transform ( complexField &  field,
const labelList &  nn,
transformDirection  fftDirection 
) [static]

Definition at line 34 of file fft.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, Foam::fftRenumber(), forAll, fft::FORWARD_TRANSFORM, fft::REVERSE_TRANSFORM, Foam::sin(), Foam::sqrt(), SWAP, and TWOPI.

Here is the call graph for this function:

tmp< complexField > forwardTransform ( const tmp< complexField > &  field,
const labelList &  nn 
) [static]

Definition at line 182 of file fft.C.

Referenced by Foam::calcEk().

Here is the caller graph for this function:

tmp< complexField > reverseTransform ( const tmp< complexField > &  field,
const labelList &  nn 
) [static]

Definition at line 198 of file fft.C.

tmp< complexVectorField > forwardTransform ( const tmp< complexVectorField > &  field,
const labelList &  nn 
) [static]

Definition at line 214 of file fft.C.

tmp< complexVectorField > reverseTransform ( const tmp< complexVectorField > &  field,
const labelList &  nn 
) [static]

Definition at line 243 of file fft.C.


The documentation for this class was generated from the following files:
  • src/randomProcesses/fft/fft.H
  • src/randomProcesses/fft/fft.C
Copyright © 2000-2009 OpenCFD Ltd