35namespace functionObjects
45bool Foam::functionObjects::reference::calc()
49 bool processed = calcType<scalar>();
50 processed = processed || calcType<vector>();
51 processed = processed || calcType<sphericalTensor>();
52 processed = processed || calcType<symmTensor>();
53 processed = processed || calcType<tensor>();
90 <<
" field: " << fieldName_ <<
nl;
92 if (
dict.readIfPresent(
"scale", scale_))
94 Log <<
" scale: " << scale_ <<
nl;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual bool read()
Re-read model coefficients if they have changed.
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 a number of values (eg,...
Abstract base-class for Time/database function objects.
const word & name() const noexcept
Return the name of this functionObject.
virtual const word & type() const =0
Runtime type information.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
void setResultName(const word &typeName, const word &defaultArg)
Set the name of result field.
Computes a field whose values are offset to a reference value obtained by from a Function1.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
constexpr char nl
The newline '\n' character (0x0a)