OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

randomise Class Reference

Adds a random component to a field, with a given perturbation magnitude. More...

Inheritance diagram for randomise:
Collaboration diagram for randomise:

List of all members.


Public Member Functions

 TypeName ("randomise")
 Runtime type information.
 randomise ()
 Construct null.
virtual ~randomise ()

Protected Member Functions

virtual void init ()
 Initialise - typically setting static variables,.
virtual void preCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Pre-time loop calculations.
virtual void calc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Time loop calculations.
template<class Type >
void writeRandomField (const IOobject &header, const scalar pertMag, Random &rand, const fvMesh &mesh, bool &processed)
 Write component fields.

Detailed Description

Adds a random component to a field, with a given perturbation magnitude.

Source files

Definition at line 48 of file randomise.H.


Constructor & Destructor Documentation

randomise (  ) 

Construct null.

Definition at line 35 of file randomise.C.

References Foam::calcTypes::addToRunTimeSelectionTable(), and Foam::calcTypes::defineTypeNameAndDebug().

Here is the call graph for this function:

~randomise (  )  [virtual]

Definition at line 43 of file randomise.C.


Member Function Documentation

void init (  )  [protected, virtual]

Initialise - typically setting static variables,.

e.g. command line arguments

Reimplemented from calcType.

Definition at line 49 of file randomise.C.

void preCalc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
) [protected, virtual]

Pre-time loop calculations.

Reimplemented from calcType.

Definition at line 58 of file randomise.C.

References LList< LListBase, T >::append(), and argList::validArgs.

Here is the call graph for this function:

void calc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
) [protected, virtual]

Time loop calculations.

Reimplemented from calcType.

Definition at line 67 of file randomise.C.

void writeRandomField ( const IOobject &  header,
const scalar  pertMag,
Random &  rand,
const fvMesh &  mesh,
bool &  processed 
) [inline, protected]

Write component fields.

Definition at line 20 of file writeRandomField.C.

References Foam::endl(), forAll, IOobject::headerClassName(), Foam::Info, Foam::mag(), IOobject::name(), IOobject::NO_READ, Random::randomise(), fvMesh::time(), Time::timeName(), and Ostream::write().

Here is the call graph for this function:

TypeName ( "randomise"   ) 

Runtime type information.


The documentation for this class was generated from the following files:
  • src/postProcessing/foamCalcFunctions/field/randomise/randomise.H
  • src/postProcessing/foamCalcFunctions/field/randomise/randomise.C
  • src/postProcessing/foamCalcFunctions/field/randomise/writeRandomField.C
Copyright © 2000-2009 OpenCFD Ltd