turbGen Class Reference

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...
 

Detailed Description

Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free.

Source files

Definition at line 55 of file turbGen.H.

Constructor & Destructor Documentation

◆ turbGen()

turbGen ( const Kmesh k,
const scalar  EA,
const scalar  K0 
)

Construct from components.

Definition at line 39 of file turbGen.C.

Member Function Documentation

◆ U()

Generate and return a velocity field.

Definition at line 50 of file turbGen.C.

References Foam::ComplexField(), Foam::cos(), Ea(), Foam::Ek(), forAll, Foam::mag(), Foam::ReImSum(), fft::reverseTransform(), s(), Foam::sin(), Foam::sqrt(), and Foam::constant::mathematical::twoPi().

Here is the call graph for this function:

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