78#ifndef Foam_functionObjects_volRegion_H
79#define Foam_functionObjects_volRegion_H
145 void calculateCache();
194 inline label
nCells() const;
197 inline scalar
V() const;
222#include "volRegionI.H"
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Volume (cell) region selection class.
TypeName("volRegion")
Run-time type information.
bool useAllCells() const noexcept
Use all cells, not the cellIDs.
scalar V() const
Return total volume of the selected region.
volRegion(const fvMesh &mesh, const dictionary &dict)
Construct from fvMesh and dictionary.
wordRe regionName_
Region name (cellSet, cellZone, ...).
virtual bool read(const dictionary &dict)
Read from dictionary.
static const Enum< regionTypes > regionTypeNames_
Region type names.
bool update()
Update the cached values as required.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
label nCells() const
Return the total number of cells selected in the region.
regionTypes regionType_
Region type.
regionTypes
Region type enumeration.
regionTypes regionType() const noexcept
The region type.
void writeFileHeader(const writeFile &wf, Ostream &file) const
Output file header information.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
const labelList & cellIDs() const
Return the local list of cell IDs.
Base class for writing single files from the function objects.
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh consisting of general polyhedral cells.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
List< label > labelList
A List of labels.