Go to the documentation of this file.
35 namespace functionObjects
51 bool Foam::functionObjects::reference::calc()
55 bool processed = calcType<scalar>();
56 processed = processed || calcType<vector>();
57 processed = processed || calcType<sphericalTensor>();
58 processed = processed || calcType<symmTensor>();
59 processed = processed || calcType<tensor>();
80 positionIsSet_(
false),
82 interpolationScheme_(
"cell"),
105 <<
" field: " << fieldName_ <<
nl;
107 if (
dict.readIfPresent(
"scale", scale_))
109 Log <<
" scale: " << scale_ <<
nl;
112 if (
dict.readIfPresent(
"position", position_))
114 Log <<
" sample position: " << position_ <<
nl;
116 positionIsSet_ =
true;
118 celli_ = mesh_.findCell(position_);
125 <<
"Sample cell could not be found at position "
129 interpolationScheme_ =
130 dict.lookupOrDefault<
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.
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.
addToRunTimeSelectionTable(functionObject, add, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const complex &c)
Return string representation of complex.
virtual ~reference()
Destructor.
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)
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
Base class for field expression function objects.
const word & name() const
Return the name of this functionObject.
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.
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.
#define Log
Report write to Foam::Info if the local log switch is true.