Go to the documentation of this file.
46 #ifndef PatchFunction1_H
47 #define PatchFunction1_H
208 virtual
bool uniform() const = 0;
266 #define makePatchFunction1(Type) \
268 defineNamedTemplateTypeNameAndDebug(PatchFunction1<Type>, 0); \
270 defineTemplateRunTimeSelectionTable \
272 PatchFunction1<Type>, \
276 #define makePatchFunction1Type(SS, Type) \
278 defineNamedTemplateTypeNameAndDebug(PatchFunction1Types::SS<Type>, 0); \
280 PatchFunction1<Type>::adddictionaryConstructorToTable \
281 <PatchFunction1Types::SS<Type>> \
282 add##SS##Type##ConstructorToTable_;
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.
static autoPtr< PatchFunction1< Type > > New(const polyPatch &pp, const word &entryName, const dictionary &dict, const bool faceValues=true)
Selector.
A class for managing temporary objects.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Reference counter for various OpenFOAM components.
bool faceValues() const
Whether to generate face or point values on patch.
Helper class to wrap coordinate system and component-wise scaling.
Abstract base class to hold the Field mapping addressing and weights.
const polyPatch & patch() const
Reference to the patch.
const bool faceValues_
Whether to generate face or point values on patch.
virtual tmp< PatchFunction1< Type > > clone() const =0
Construct and return a clone.
const polyPatch const word const word & entryName
const polyPatch const word & type
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.
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
friend Ostream & operator(Ostream &os, const PatchFunction1< Type > &func)
Ostream Operator.
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.
virtual void convertTimeBase(const Time &t)
Convert time.
const word & name() const
Return the name of the entry.
const polyPatch & patch_
Reference to the patch.
const word name_
Name of entry.
const polyPatch const word const word const dictionary & dict
#define declareRunTimeSelectionTable(autoPtr, baseType, argNames, argList, parList)
Declare a run-time selection.
virtual tmp< Field< Type > > value(const scalar x) const
Return value as a function of (scalar) independent variable.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
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.