Go to the documentation of this file.
42 #ifndef PatchFunction1Types_ConstantField_H
43 #define PatchFunction1Types_ConstantField_H
51 namespace PatchFunction1Types
114 const bool isUniform,
125 const word& redirectType,
174 virtual inline bool constant()
const
180 virtual inline bool uniform()
const
A keyword and a list of tokens is an 'entry'.
A class for handling words, derived from Foam::string.
virtual void writeData(Ostream &os) const
Write in dictionary format.
A class for managing temporary objects.
Templated function that returns a constant value.
virtual bool constant() const
Value is independent of x.
Abstract base class to hold the Field mapping addressing and weights.
const polyPatch const word const word & entryName
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
Generic templated field type.
ConstantField(const polyPatch &pp, const word &entryName, const Type &uniformValue, const dictionary &dict=dictionary::null, const bool faceValues=true)
Construct from a uniform value.
A patch is a list of labels that address the faces in the global face list.
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
Construct and return a clone setting patch.
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
virtual tmp< Field< Type > > value(const scalar x) const
Return constant value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
TypeName("constant")
Runtime type information.
OBJstream os(runTime.globalPath()/outputName)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual ~ConstantField()=default
Destructor.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
const polyPatch const word const word const dictionary & dict
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
const polyPatch const word const word const dictionary const bool faceValues
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...