Go to the documentation of this file.
77 #ifndef PatchFunction1Types_CodedField_H
78 #define PatchFunction1Types_CodedField_H
87 namespace PatchFunction1Types
119 virtual string description()
const;
122 virtual void clearRedirect()
const;
143 =
"codedPatchFunction1Template.C";
147 =
"codedPatchFunction1Template.H";
207 virtual inline bool constant()
const
213 virtual inline bool uniform()
const
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
virtual bool constant() const
Is value constant (i.e. independent of x)
Tools for handling dynamic code compilation.
A class for managing temporary objects.
bool faceValues() const
Whether to generate face or point values on patch.
Encapsulation of dynamic code dictionaries.
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
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.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
const polyPatch const word const word & entryName
const polyPatch const word & type
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
Construct and return a clone setting patch.
virtual tmp< Field< Type > > value(const scalar x) const
Return CodedField value.
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
A patch is a list of labels that address the faces in the global face list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
CodedField(const polyPatch &pp, const word &type, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from entry name and dictionary.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
virtual ~CodedField()=default
Destructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const polyPatch const word const word const dictionary & dict
virtual void writeData(Ostream &os) const
Write in dictionary format.
TypeName("coded")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
PatchFunction1 with the code supplied by an on-the-fly compiled C++ expression.