Adds a random component to a field, with a given perturbation magnitude. More...
#include <foamCalcFunctions/randomise.H>
Adds a random component to a field, with a given perturbation magnitude.
Definition at line 53 of file randomise.H.
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.
|
randomise | ( | ) |
Construct null.
Definition at line 43 of file randomise.C.
~randomise | ( | ) | [virtual]
|
Definition at line 51 of file randomise.C.
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.
Time loop calculations.
Reimplemented from calcType.
Definition at line 75 of file randomise.C.
References argList::additionalArgs(), Foam::endl(), Foam::exit(), Foam::FatalError, Foam::Info, mesh, IOobject::MUST_READ, Foam::nl, Foam::readScalar(), and Time::timeName().
void writeRandomField | ( | const IOobject & | header, |
const scalar | pertMag, | ||
Random & | rand, | ||
const fvMesh & | mesh, | ||
bool & | processed | ||
) | [protected]
|
Write component fields.
Definition at line 28 of file writeRandomField.C.
References Foam::endl(), forAll, IOobject::headerClassName(), Foam::Info, Foam::mag(), mesh, IOobject::name(), Random::randomise(), fvMesh::time(), Time::timeName(), and Ostream::write().
TypeName | ( | "randomise" | ) |
Runtime type information.