Go to the documentation of this file.
53 #ifndef cellSetOption_H
54 #define cellSetOption_H
141 const word& modelType,
172 inline scalar
V()
const;
A class for handling words, derived from string.
Cell-set options abtract 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.
scalar V_
Sum of cell volumes.
virtual ~cellSetOption()
Destructor.
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".
scalar duration() const
Return const access to the duration.
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 abtract base class. Provides a base set of controls, e.g.
static const NamedEnum< selectionModeType, 4 > selectionModeTypeNames_
Word list of selection mode type names.
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 any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
scalar timeStart() const
Return const access to the time start.
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 cell set 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.