74 #ifndef Foam_PatchFunction1Types_Sampled_H 75 #define Foam_PatchFunction1Types_Sampled_H 85 namespace PatchFunction1Types
95 public PatchFunction1<Type>,
96 public mappedPatchBase
137 void operator=(
const Sampled<Type>&) =
delete;
146 const word& redirectType,
190 virtual inline bool constant()
const 196 virtual inline bool uniform()
const 224 #include "Sampled.txx" virtual tmp< Field< Type > > value(const scalar x) const
Return sampled value.
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.
virtual void writeData(Ostream &os) const
Write in dictionary format.
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.
const polyPatch const word const word const dictionary & dict
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
const GeometricField< Type, fvPatchField, volMesh > & sampleField() const
Field to sample. Either on my or nbr mesh.
void operator=(const Sampled< Type > &)=delete
No copy assignment.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
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?
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool constant() const
Is value constant (i.e. independent of x)
virtual tmp< PatchFunction1< Type > > clone() const
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.
static tmp< PatchFunction1< Type > > Clone(const Derived &fun)
Clone a PatchFunction1.