Go to the documentation of this file.
99 #ifndef cellSetOption_H
100 #define cellSetOption_H
220 inline scalar
V()
const;
List< label > labelList
A List of labels.
void setVol()
Recalculate the volume.
scalar duration() const
Return const access to the duration.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
cellSetOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
const word & name() const
Return const access to the source name.
selectionModeType selectionMode_
Cell selection mode.
virtual ~cellSetOption()=default
Destructor.
scalar V_
Sum of cell volumes.
scalar V() const
Return const access to the total cell volume.
const word & cellSetName() const
Return const access to the name of cell set for "cellSet".
const labelList & cells() const
Return const access to the cell set.
const selectionModeType & selectionMode() const
Return const access to the cell selection mode.
void setSelection(const dictionary &dict)
Set the cellSet or points selection.
Base abstract class for handling finite volume options (i.e. fvOption).
virtual bool isActive()
Is the source active?
virtual bool read(const dictionary &dict)
Read source dictionary.
labelList cells_
Set of cells to apply source to.
TypeName("cellSetOption")
Runtime type information.
selectionModeType
Enumeration for selection mode types.
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.
scalar timeStart() const
Return const access to the time start.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const fvMesh & mesh() const
Return const access to the mesh database.
scalar duration_
Duration of fvOption execution starting from timeStart.
word cellSetName_
Name of set/zone for "cellSet" and "cellZone" selectionMode.
List< point > points_
List of points for "points" selectionMode.
bool inTimeLimits(const scalar time) const
Return true if within time limits.
scalar timeStart_
Start time of fvOption.
void setCellSet()
Set the cell set based on the user input selection mode.