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