Go to the documentation of this file.
74 #ifndef PatchFunction1Types_Sampled_H
75 #define PatchFunction1Types_Sampled_H
85 namespace PatchFunction1Types
95 public PatchFunction1<Type>,
96 public mappedPatchBase
128 void operator=(
const Sampled<Type>&) =
delete;
193 virtual inline bool constant()
const
199 virtual inline bool uniform()
const
A class for handling words, derived from Foam::string.
const bool setAverage_
If true adjust the mapped field to maintain average value average_.
A class for managing temporary objects.
const GeometricField< Type, fvPatchField, volMesh > & sampleField() const
Field to sample. Either on my or nbr mesh.
Sampled(const polyPatch &pp, const word &type, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from entry name and dictionary.
word interpolationScheme_
Interpolation scheme to use for nearestcell mode.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
const polyPatch const word const word & entryName
word fieldName_
Name of the field.
const polyPatch const word & type
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
bool haveSampleField() const
Field to sample. Either on my or nbr mesh.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
A patch is a list of labels that address the faces in the global face list.
virtual void writeData(Ostream &os) const
Write in dictionary format.
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...
virtual ~Sampled()=default
Destructor.
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
const polyPatch const word const word const dictionary & dict
virtual bool constant() const
Is value constant (i.e. independent of x)
virtual tmp< Field< Type > > value(const scalar x) const
Return sampled value.
const polyPatch const word const word const dictionary const bool faceValues
void operator=(const Sampled< Type > &)=delete
No copy assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
PatchFunction1 to sample an existing field.
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
Construct and return a clone setting patch.