106#ifndef Foam_sampledSets_H
107#define Foam_sampledSets_H
141 enum sampleActionType :
unsigned
170 fileName outputPath_;
173 meshSearch searchEngine_;
179 wordRes fieldSelection_;
182 word samplePointScheme_;
227 bool performAction(
unsigned request);
241 void gatherAllSets();
249 const word& fieldName
253 template<
class GeoField>
262 template<
class GeoField>
263 void performAction(
const IOobjectList& objects,
unsigned request);
266 sampledSets(
const sampledSets&) =
delete;
269 void operator=(
const sampledSets&) =
delete;
295 const bool loadFromFiles =
false
307 bool verbose(
const bool on)
noexcept;
319 virtual bool write();
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
constexpr PtrList() noexcept
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Base class for writing coordSet(s) and tracks with fields.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Calculates a non-overlapping list of offsets based on an input size (eg, number of cells) from differ...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
readUpdateState
Enumeration defining the state of the mesh after a read update.
bool verbose(const bool on) noexcept
Enable/disable verbose output.
virtual ~sampledSets()=default
Destructor.
void correct()
Correct for mesh changes.
const wordRes & fieldNames() const noexcept
Return names of fields to sample.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
virtual void readUpdate(const polyMesh::readUpdateState state)
Update for changes of mesh due to readUpdate.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Sample and write.
TypeName("sets")
Runtime type information.
virtual bool read(const dictionary &)
Read the sampledSets.
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
GeometricField< Type, fvPatchField, volMesh > VolumeField
A volume field for a given type.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Forwards and collection of common volume field types.