Go to the documentation of this file.
78 #ifndef functionObjects_volRegion_H
79 #define functionObjects_volRegion_H
94 namespace functionObjects
105 const fvMesh& volMesh_;
123 void calculateCache();
187 inline label
nCells()
const;
190 inline scalar
V()
const;
List< label > labelList
A List of labels.
label regionID_
Region ID (zone ID, ...)
A class for handling words, derived from Foam::string.
bool update()
Update the cached values as required.
Volume (cell) region selection class.
word regionName_
Region name (cellSet, cellZone, ...)
virtual ~volRegion()=default
Destructor.
const regionTypes & regionType() const
Return the region type.
regionTypes
Region type enumeration.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
Mesh consisting of general polyhedral cells.
regionTypes regionType_
Region type.
TypeName("volRegion")
Run-time type information.
virtual bool read(const dictionary &dict)
Read from dictionary.
volRegion(const fvMesh &mesh, const dictionary &dict)
Construct from fvMesh and dictionary.
label nCells() const
Return the number of cells selected in the region.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
static const Enum< regionTypes > regionTypeNames_
Region type names.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
const labelList & cellIDs() const
Return the local list of cell IDs.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void writeFileHeader(const writeFile &wf, Ostream &file) const
Output file header information.
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar V() const
Return total volume of the selected region.