FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <foamCalcFunctions/randomise.H>


Detailed Description

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

Source files

Definition at line 53 of file randomise.H.

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.

Constructor & Destructor Documentation

randomise (  )

Construct null.

Definition at line 43 of file randomise.C.

~randomise (  ) [virtual]

Definition at line 51 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 57 of file randomise.C.

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

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

Pre-time loop calculations.

Reimplemented from calcType.

Definition at line 66 of file randomise.C.

void calc ( const argList &   args,
const Time &   runTime,
const fvMesh &   mesh  
) [protected, virtual]
void writeRandomField ( const IOobject &   header,
const scalar   pertMag,
Random &   rand,
const fvMesh &   mesh,
bool &   processed  
) [protected]
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