Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free. More...
#include <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. | |
Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free.
| turbGen | ( | const Kmesh & | k, |
| const scalar | EA, | ||
| const scalar | K0 ) |
| Foam::vectorField U | ( | ) |
Generate and return a velocity field.
Definition at line 43 of file turbGen.C.
References Foam::ComplexField(), Foam::cos(), Foam::Ek(), forAll, Foam::mag(), Foam::ReImSum(), fft::reverseTransform(), s(), Foam::sin(), Foam::sqrt(), and Foam::constant::mathematical::twoPi().
