90#ifndef Foam_areaWrite_H
91#define Foam_areaWrite_H
120 static scalar mergeTol_;
126 const bool loadFromFiles_;
132 fileName outputPath_;
138 wordRes selectAreas_;
141 wordRes fieldSelection_;
144 UPtrList<const faMesh> meshes_;
148 std::unique_ptr<objectRegistry> surfaces_;
154 HashPtrTable<surfaceWriter> writers_;
171 const word& fieldName
175 template<
class GeoField>
215 const bool loadFromFiles =
false
227 bool verbose(
bool on)
noexcept;
236 virtual bool write();
Forwards and collection of common area field types.
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
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,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Area discretisation.
Write finite area mesh/fields to standard output formats.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
virtual bool execute()
Execute the function-object operations (no-op).
areaWrite(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
virtual bool write()
Write the function-object results.
static scalar mergeTol() noexcept
Get merge tolerance.
virtual void readUpdate(const polyMesh::readUpdateState state)
Update for changes of mesh due to readUpdate - expires the surfaces.
areaWrite(const areaWrite &)=delete
No copy construct.
TypeName("areaWrite")
Runtime type information.
void operator=(const areaWrite &)=delete
No copy assignment.
virtual void movePoints(const polyMesh &mesh)
Update for mesh point-motion - expires the surfaces.
bool verbose(bool on) noexcept
Enable/disable verbose output.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh - expires the surfaces.
areaWrite(const word &name, const objectRegistry &obr, const dictionary &dict, const bool loadFromFiles=false)
Construct for given objectRegistry and dictionary. Allow the possibility to load fields from files.
virtual ~areaWrite()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
readUpdateState
Enumeration defining the state of the mesh after a read update.
A surface mesh consisting of general polygon faces and capable of holding fields.
Base class for surface writers.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
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.