35 namespace functionObjects
45 bool 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;
defineTypeNameAndDebug(ObukhovLength, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
Return the name of this functionObject.
void setResultName(const word &typeName, const word &defaultArg)
Set the name of result field.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
virtual const word & type() const =0
Runtime type information.
static const word null
An empty word.
bool returnReduceOr(const bool value, const int communicator=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
Intermediate class for handling field expression function objects (e.g. blendingFactor etc...
reference(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.