MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
maiafftw.h File Reference

Go to the source code of this file.

Namespaces

namespace  maia
 Namespace for auxiliary functions/classes.
 
namespace  maia::math
 

Functions

MInt maia::math::getGlobalPosFFTW (MInt i0, MInt i1, MInt i2, MInt ny, MInt nz)
 
MFloat maia::math::triadImag (fftw_complex &a, fftw_complex &b, fftw_complex &c)
 
MFloat maia::math::randnormal (MFloat mu, MFloat sigma)
 
std::complex< MFloat > * maia::math::getFourierCoefficient (MFloat *k, MFloat k0, const MFloat Ma)
 
std::complex< MFloat > * maia::math::getFourierCoefficient2 (MFloat *k, MFloat k0)
 
void maia::math::initFftFilter (MFloat *uPhysFieldCoarse, MFloat *vPhysFieldCoarse, MFloat *wPhysFieldCoarse, MInt lx, MInt ly, MInt lz, MInt lxCoarse, MInt lyCoarse, MInt lzCoarse, MInt noPeakModes, const MFloat Ma)
 Generates a velocity field from Fourier-modes using FFTW The disturbances are generated and filtered to a coarser resolution. More...
 
void maia::math::initFft (fftw_complex *uPhysField, fftw_complex *vPhysField, fftw_complex *wPhysField, MInt lx, MInt ly, MInt lz, MInt noPeakModes, const MFloat Ma)
 Generates a velocity field from Fourier-modes using FFTW. More...
 
void maia::math::computeEnergySpectrum (MFloatScratchSpace &velocity, MIntScratchSpace &indices, const ptrdiff_t howmany, MInt locSize, MInt nx, MInt ny, MInt nz, MFloat viscosity, const MPI_Comm comm)
 Compute energy spectrum on unity cube. More...