Go to the documentation of this file.
87 #ifndef PatchFunction1Types_CodedField_H
88 #define PatchFunction1Types_CodedField_H
97 namespace PatchFunction1Types
107 public PatchFunction1<Type>,
115 const word redirectName_;
117 mutable autoPtr<PatchFunction1<Type>> redirectFunctionPtr_;
161 =
"codedPatchFunction1Template.C";
165 =
"codedPatchFunction1Template.H";
178 const word& redirectType,
220 virtual inline bool uniform()
const {
return false; }
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
Tools for handling dynamic code compilation.
A class for managing temporary objects.
virtual dlLibraryTable & libs() const
Encapsulation of dynamic code dictionaries.
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
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)
CodedField(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
virtual bool uniform() const
const polyPatch const word const word & entryName
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
virtual tmp< Field< Type > > value(const scalar x) const
virtual tmp< PatchFunction1< Type > > clone() const
static constexpr const char *const codeTemplateC
A patch is a list of labels that address the faces in the global face list.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
virtual const dictionary & codeContext() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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< Field< Type > > integrate(const scalar x1, const scalar x2) const
static constexpr const char *const codeTemplateH
virtual ~CodedField()=default
virtual const dictionary & codeDict() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual void clearRedirect() const
const polyPatch const word const word const dictionary & dict
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const polyPatch const word const word const dictionary const bool faceValues
virtual void writeData(Ostream &os) const
void operator=(const CodedField< Type > &)=delete
virtual string description() const
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.