Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free. More...
Public Member Functions | |
turbGen (const Kmesh &k, const scalar EA, const scalar K0) | |
Construct from components. More... | |
vectorField | U () |
Generate and return a velocity field. More... | |
Private Attributes | |
const Kmesh & | K |
const scalar | Ea |
const scalar | k0 |
Random | RanGen |
Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free.
Foam::vectorField U | ( | ) |
Generate and return a velocity field.
Definition at line 47 of file turbGen.C.
References Foam::ComplexField(), Foam::cos(), Foam::Ek(), forAll, Foam::mag(), Foam::ReImSum(), fft::reverseTransform(), s(), Foam::sin(), and Foam::constant::mathematical::twoPi().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.