Go to the documentation of this file.
46 #ifndef PatchFunction1_H
47 #define PatchFunction1_H
171 const
bool mandatory = true
179 std::initializer_list<std::pair<const
char*,
int>> compat,
182 const
bool mandatory = true
210 virtual
bool uniform() const = 0;
269 #define makePatchFunction1(Type) \
271 defineNamedTemplateTypeNameAndDebug(PatchFunction1<Type>, 0); \
273 defineTemplateRunTimeSelectionTable \
275 PatchFunction1<Type>, \
281 #define makePatchFunction1Type(SS, Type) \
283 defineNamedTemplateTypeNameAndDebug(PatchFunction1Types::SS<Type>, 0); \
285 PatchFunction1<Type>::adddictionaryConstructorToTable \
286 <PatchFunction1Types::SS<Type>> \
287 add##SS##Type##ConstructorToTable_;
291 #define makeConcretePatchFunction1Type(SS, Type) \
293 defineTypeNameAndDebug(SS, 0); \
295 PatchFunction1<Type>::adddictionaryConstructorToTable \
296 <PatchFunction1Types::SS> \
297 add##SS##Type##ConstructorToTable_;
301 #define makeScalarPatchFunction1(SS) \
303 makeConcretePatchFunction1Type(SS, scalar);
A keyword and a list of tokens is an 'entry'.
TypeName("PatchFunction1") declareRunTimeSelectionTable(autoPtr
Runtime type information.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual tmp< pointField > localPosition(const pointField &globalPos) const
Helper: optionally convert coordinates to local coordinates.
A class for managing temporary objects.
virtual void writeData(Ostream &os) const
Write in dictionary format.
void operator=(const PatchFunction1< Type > &)=delete
No copy assignment.
Helper class to wrap coordinate system and component-wise scaling.
Abstract base class to hold the Field mapping addressing and weights.
virtual tmp< PatchFunction1< Type > > clone() const =0
Return a clone.
const polyPatch const word const word & entryName
friend Ostream & operator(Ostream &os, const PatchFunction1< Type > &rhs)
Ostream Operator.
const polyPatch const word & type
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Generic templated field type.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
A patch is a list of labels that address the faces in the global face list.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual tmp< Field< Type > > transform(const Field< Type > &fld) const
Apply optional transformation.
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...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const polyPatch const word const word const dictionary & dict
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
virtual void rmap(const PatchFunction1< Type > &rhs, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
const polyPatch const word const word const dictionary const bool faceValues
virtual tmp< Field< Type > > value(const scalar x) const
Return value as a function of (scalar) independent variable.
static autoPtr< PatchFunction1< Type > > NewCompat(const polyPatch &pp, const word &entryName, std::initializer_list< std::pair< const char *, int >> compat, const dictionary &dict, const bool faceValues=true, const bool mandatory=true)
Compatibility selector.
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...
constant condensation/saturation model.
coordinateScaling< Type > coordSys_
Optional local co-ordinate system and scaling.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
static autoPtr< PatchFunction1< Type > > NewIfPresent(const polyPatch &pp, const word &entryName, const dictionary &dict, const bool faceValues=true)
An optional selector.