Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free. More...
#include <randomProcesses/turbGen.H>
Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free.
Definition at line 54 of file turbGen.H.
Public Member Functions | |
turbGen (const Kmesh &k, const scalar EA, const scalar K0) | |
Construct from components.
| |
vectorField | U () |
Generate and return a velocity field.
|
vectorField U | ( | ) |
Generate and return a velocity field.
Definition at line 53 of file turbGen.C.
References Foam::ComplexField(), Foam::cos(), Foam::Ek(), forAll, Foam::mag(), Kmesh::nn(), Foam::mathematicalConstant::pi(), Foam::ReImSum(), fft::reverseTransform(), Random::scalar01(), Foam::sin(), List< T >::size(), and Random::vector01().