Go to the documentation of this file.
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>();
71 positionIsSet_(
false),
73 interpolationScheme_(
"cell"),
94 <<
" field: " << fieldName_ <<
nl;
96 if (
dict.readIfPresent(
"scale", scale_))
98 Log <<
" scale: " << scale_ <<
nl;
101 if (
dict.readIfPresent(
"position", position_))
103 Log <<
" sample position: " << position_ <<
nl;
105 positionIsSet_ =
true;
107 celli_ = mesh_.findCell(position_);
114 <<
"Sample cell could not be found at position "
118 interpolationScheme_ =
119 dict.getOrDefault<
word>(
"interpolationScheme",
"cell");
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
reference(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
static constexpr const zero Zero
Global zero (0)
bool read(const char *buf, int32_t &val)
Same as readInt32.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const complex &c)
Return string representation of complex.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
const word & name() const
Return the name of this functionObject.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual const word & type() const =0
Runtime type information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
defineTypeNameAndDebug(ObukhovLength, 0)
static const word null
An empty word.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.