33 namespace functionObjects
43 bool Foam::functionObjects::randomise::calc()
45 bool processed =
false;
47 #define processType(fieldType, none) \
48 processed = processed || calcRandomised<fieldType>();
85 dict.lookup(
"magPerturbation") >> magPerturbation_;
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
const word fieldName_
Name of field to process.
Adds a random component to a field, with a specified perturbation magnitude.
virtual ~randomise()
Destructor.
randomise(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool read(const dictionary &)
Read the randomise data.
void cannotFindObject(const word &fieldName)
Prints a warning message that fieldName cannot be found.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
word name(const bool)
Return a word representation of a bool.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
#define processType(fieldType, none)