Go to the documentation of this file.
37 bool hasPointData =
false;
41 if (hasVariable(
name) && variable(
name).isType<Type>())
44 hasPointData = tvar().isPointData();
50 const auto& var = tvar.
cref();
53 const label len = (hasPointData ? this->pointSize() : this->size());
64 <<
"Variable " <<
name
65 <<
" is nonuniform and does not fit the size"
66 <<
". Using average" <<
endl;
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)
tmp< Field< Type > > getField(const word &fieldName) const
Return named field (variable) if available.
A class for managing temporary objects.
Type gAverage(const FieldField< Field, Type > &f)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool valid() const noexcept
Identical to good(), or bool operator.
Generic templated field type.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define WarningInFunction
Report a warning using Foam::Warning.
A class for managing references or pointers (no reference counting)