FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <randomProcesses/fft.H>


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 52 of file fft.H.

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)

Member Enumeration Documentation

Enumerator:
FORWARD_TRANSFORM 
REVERSE_TRANSFORM 

Definition at line 57 of file fft.H.


Member Function Documentation

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

Definition at line 190 of file fft.C.

References tmp< T >::clear(), and Foam::transform().

Referenced by Foam::calcEk().

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

Definition at line 206 of file fft.C.

References tmp< T >::clear(), and Foam::transform().

Referenced by noiseFFT::Pf(), and turbGen::U().

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

The documentation for this class was generated from the following files:
  • src/randomProcesses/fft/fft.H
  • src/randomProcesses/fft/fft.C