87#ifndef PatchFunction1Types_CodedField_H
88#define PatchFunction1Types_CodedField_H
97namespace PatchFunction1Types
107 public PatchFunction1<Type>,
115 const word redirectName_;
117 mutable autoPtr<PatchFunction1<Type>> redirectFunctionPtr_;
123 const PatchFunction1<Type>& redirectFunction()
const;
161 =
"codedPatchFunction1Template.C";
165 =
"codedPatchFunction1Template.H";
178 const word& redirectType,
220 virtual inline bool uniform()
const {
return false; }
Abstract base class to hold the Field mapping addressing and weights.
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.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual void writeData(Ostream &os) const
Write in dictionary format.
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.
TypeName("coded")
Runtime type information.
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.
void operator=(const CodedField< Type > &)=delete
No copy assignment.
virtual ~CodedField()=default
Destructor.
virtual const dictionary & codeDict() const
virtual void clearRedirect() const
Clear redirected object(s)
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
virtual string description() const
Description (type + name) for the output.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const polyPatch const word const word & entryName
const polyPatch const word const word const dictionary & dict
const polyPatch const word const word const dictionary const bool faceValues
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A table of dynamically loaded libraries.
Encapsulation of dynamic code dictionaries.
Tools for handling dynamic code compilation.
A patch is a list of labels that address the faces in the global face list.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.