73#ifndef Foam_patchProbes_H
74#define Foam_patchProbes_H
113 const word& fieldName,
115 const scalar timeValue
119 template<
class GeoField>
127 bool performAction(
unsigned request);
151 const bool loadFromFiles =
false,
165 virtual bool write();
Generic templated field type.
Minimal example by using system/controlDict.functions:
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
Mesh data needed to do the Finite Volume discretisation.
Set of locations to sample at patches.
tmp< Field< Type > > sample(const SurfaceField< Type > &) const
Sample a surface field at all locations.
virtual void findElements(const fvMesh &mesh)
Find elements containing patchProbes.
TypeName("patchProbes")
Runtime type information.
virtual ~patchProbes()=default
Destructor.
tmp< Field< Type > > sample(const word &fieldName) const
Sample a single field on all sample locations.
tmp< Field< Type > > sampleSurfaceField(const word &fieldName) const
Sample a surface field at all locations.
wordRes patchNames_
Patches to sample.
virtual bool execute()
Sample and store result if the sampleOnExecute is enabled.
virtual bool write()
Sample and write.
tmp< Field< Type > > sample(const VolumeField< Type > &) const
Sample a volume field at all locations.
virtual bool read(const dictionary &)
Read.
Set of locations to sample.
virtual const wordRes & fieldNames() const noexcept
Return names of fields to probe.
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Grouping of field names by GeometricField type.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.