54 #ifndef cellSetOption_H 55 #define cellSetOption_H 142 const word& modelType,
173 inline scalar
V()
const;
selectionModeType selectionMode_
Cell selection mode.
const word & name() const
Return const access to the source name.
scalar V_
Sum of cell volumes.
scalar V() const
Return const access to the total cell volume.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const NamedEnum< selectionModeType, 4 > selectionModeTypeNames_
Word list of selection mode type names.
scalar duration_
Duration.
virtual bool read(const dictionary &dict)
Read source dictionary.
cellSetOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
virtual ~cellSetOption()
Destructor.
scalar timeStart() const
Return const access to the time start.
virtual bool isActive()
Is the source active?
selectionModeType
Enumeration for selection mode types.
A class for handling words, derived from string.
const labelList & cells() const
Return const access to the cell set.
const fvMesh & mesh() const
Return const access to the mesh database.
bool inTimeLimits(const scalar time) const
Return true if within time limits.
scalar duration() const
Return const access to the duration.
const word & cellSetName() const
Return const access to the name of cell set for "cellSet".
void setCellSet()
Set the cell set based on the user input selection mode.
labelList cells_
Set of cells to apply source to.
const selectionModeType & selectionMode() const
Return const access to the cell selection mode.
void setSelection(const dictionary &dict)
Set the cellSet or points selection.
Mesh data needed to do the Finite Volume discretisation.
List< point > points_
List of points for "points" selectionMode.
Cell-set options abtract base class. Provides a base set of controls, e.g.:
TypeName("cellSetOption")
Runtime type information.
word cellSetName_
Name of cell set for "cellSet" and "cellZone" selectionMode.
scalar timeStart_
Time start.
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...