CosmoGRaPH v0.0
Public Types | Public Member Functions | Public Attributes | List of all members
cosmo::Fourier Class Reference
Collaboration diagram for cosmo::Fourier:
Collaboration graph
[legend]

Public Types

typedef double fft_rt
 
typedef fftw_complex fft_ct
 

Public Member Functions

template<typename IT >
void Initialize (IT nx, IT ny, IT nz)
 Initialize a fourier class instance. More...
 
template<typename IT >
void Initialize_1D (IT n)
 
void execute_f_r2c ()
 
void execute_f_c2r ()
 
template<typename RT , typename IOT >
void powerDump (RT *in, IOT *iodata)
 Compute a power spectrum and write to file. More...
 
template<typename IT , typename RT >
void inverseLaplacian (RT *field)
 

Public Attributes

fft_ct * f_field
 
fft_rt * double_field
 
fftw_plan p_c2r
 
fftw_plan p_r2c
 

Member Function Documentation

template<typename IT >
void cosmo::Fourier::Initialize ( IT  nx,
IT  ny,
IT  nz 
)

Initialize a fourier class instance.

Create fftw plans, allocate memory

Parameters
nxpoints in x-direction
nypoints in y-direction
nzpoints in z-direction
template<typename RT , typename IOT >
void cosmo::Fourier::powerDump ( RT *  in,
IOT *  iodata 
)

Compute a power spectrum and write to file.

Parameters
inGrid to compute the spectrum of
iodatareference to data structure containing output directory information, iodata->dir()

The documentation for this class was generated from the following files: