34 namespace functionObjects
50 bool Foam::functionObjects::log::calc()
52 if (foundObject<volScalarField>(fieldName_))
54 const volScalarField& x = lookupObject<volScalarField>(fieldName_);
57 const bool dimensionSetDebug = dimensionSet::debug;
60 if (!checkDimensions_)
62 dimensionSet::debug = 0;
72 if (!checkDimensions_)
74 dimensionSet::debug = dimensionSetDebug;
81 cannotFindObject<volScalarField>(fieldName_);
102 checkDimensions_(
true)
118 if (dict.
found(
"clip"))
121 dict.
lookup(
"clip") >> clipValue_;
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bool read(const char *, int32_t &)
A class for handling words, derived from string.
virtual bool read(const dictionary &)
Read the randomise data.
defineTypeNameAndDebug(Qdot, 0)
log(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual ~log()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.