Go to the documentation of this file.
54 #ifndef cellSetOption_H
55 #define cellSetOption_H
144 const word& modelType,
175 inline scalar
V()
const;
void setVol()
Recalculate the volume.
scalar duration() const
Return const access to the duration.
A class for handling words, derived from Foam::string.
Cell-set options abstract base class. Provides a base set of controls, e.g.:
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.
Finite volume options abstract base class. Provides a base set of controls, e.g.:
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.
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_
Time start.
void setCellSet()
Set the cell set based on the user input selection mode.