74 #ifndef PatchFunction1Types_Sampled_H 75 #define PatchFunction1Types_Sampled_H 85 namespace PatchFunction1Types
95 public PatchFunction1<Type>,
96 public mappedPatchBase
137 void operator=(
const Sampled<Type>&) =
delete;
146 const word& redirectType,
196 virtual inline bool constant()
const 202 virtual inline bool uniform()
const const GeometricField< Type, fvPatchField, volMesh > & sampleField() const
Field to sample. Either on my or nbr mesh.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Forwards and collection of common volume field types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
word fieldName_
Name of the field.
PatchFunction1 to sample an existing field.
const Type average_
Average value the mapped field is adjusted to maintain if setAverage_ is set true.
Generic GeometricField class.
word interpolationScheme_
Interpolation scheme to use for nearestcell mode.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
const polyPatch const word const word const dictionary & dict
void operator=(const Sampled< Type > &)=delete
No copy assignment.
bool haveSampleField() const
Field to sample. Either on my or nbr mesh.
Sampled(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from entry name and dictionary.
A class for handling words, derived from Foam::string.
const polyPatch const word const word & entryName
bool faceValues() const noexcept
Generate face or point values on patch?
virtual tmp< Field< Type > > value(const scalar x) const
Return sampled value.
OBJstream os(runTime.globalPath()/outputName)
virtual bool constant() const
Is value constant (i.e. independent of x)
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
const bool setAverage_
If true adjust the mapped field to maintain average value average_.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
virtual ~Sampled()=default
Destructor.