Public Member Functions | Private Attributes
turbGen Class Reference

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

Collaboration diagram for turbGen:
Collaboration graph
[legend]

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 KmeshK
 
const scalar Ea
 
const scalar k0
 
Random RanGen
 

Detailed Description

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

Source files

Definition at line 53 of file turbGen.H.

Constructor & Destructor Documentation

◆ turbGen()

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

Construct from components.

Definition at line 36 of file turbGen.C.

Member Function Documentation

◆ 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().

Here is the call graph for this function:

Field Documentation

◆ K

const Kmesh& K
private

Definition at line 57 of file turbGen.H.

◆ Ea

const scalar Ea
private

Definition at line 58 of file turbGen.H.

◆ k0

const scalar k0
private

Definition at line 59 of file turbGen.H.

◆ RanGen

Random RanGen
private

Definition at line 60 of file turbGen.H.


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