74#ifndef PatchFunction1Types_Sampled_H
75#define PatchFunction1Types_Sampled_H
95 public PatchFunction1<Type>,
96 public mappedPatchBase
146 const word& redirectType,
190 virtual inline bool constant()
const
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
PatchFunction1 to sample an existing field.
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 writeData(Ostream &os) const
Write in dictionary format.
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
Return a clone, setting the patch.
const Type average_
Average value the mapped field is adjusted to maintain if setAverage_ is set true.
bool haveSampleField() const
Field to sample. Either on my or nbr mesh.
virtual bool constant() const
Is value constant (i.e. independent of x).
virtual tmp< Field< Type > > value(const scalar x) const
Return sampled value.
virtual tmp< PatchFunction1< Type > > clone() const
Return a clone.
virtual ~Sampled()=default
Destructor.
Sampled(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from entry name and dictionary.
word fieldName_
Name of the field.
const GeometricField< Type, fvPatchField, volMesh > & sampleField() const
Field to sample. Either on my or nbr mesh.
word interpolationScheme_
Interpolation scheme to use for nearestcell mode.
void operator=(const Sampled< Type > &)=delete
No copy assignment.
const bool setAverage_
If true adjust the mapped field to maintain average value average_.
const polyPatch const word const word & entryName
const polyPatch const word const word const dictionary & dict
static tmp< PatchFunction1< Type > > Clone(const Derived &fun)
Clone a PatchFunction1.
const polyPatch const word const word const dictionary const bool faceValues
mappedPatchBase(const polyPatch &)
Construct from patch.
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)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Forwards and collection of common volume field types.