131 #ifndef Foam_fv_cellSetOption_H 132 #define Foam_fv_cellSetOption_H 226 const word& modelType,
selectionModeType selectionMode_
Cell selection mode.
scalar V_
Sum of cell volumes.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
const word & cellSetName() const
The name of the cell set/zone [as a word] for "cellSet" / "cellZone" selection modes) ...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar timeStart() const noexcept
Return const access to the time start.
const labelList & cells() const noexcept
Return const access to the cell selection.
scalar duration_
Duration of fvOption execution starting from timeStart.
virtual bool read(const dictionary &dict)
Read source dictionary.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
cellSetOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
wordRes selectionNames_
Face selection names (for set or zone selections)
scalar duration() const noexcept
Return const access to the duration.
scalar V() const noexcept
Return const access to the total cell volume.
virtual bool isActive()
Is the source active?
selectionModeType
Enumeration for selection mode types.
A class for handling words, derived from Foam::string.
const wordRe & zoneName() const
Return const access to the first set/zone name.
A List of wordRe with additional matching capabilities.
const word & name() const noexcept
Return const access to the source name.
bool inTimeLimits(const scalar timeValue) const
True if within time limits.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
dictionary geometricSelection_
Dictionary entries for "geometric" (topoSetCellSource) selection.
labelList cells_
Set of cells to apply source to.
void setCellSelection()
Set the cell selection based on user input selection mode.
void setSelection(const dictionary &dict)
Set cell selection name or points selection from dictionary input.
selectionModeType selectionMode() const noexcept
Return the cell selection mode.
Mesh data needed to do the Finite Volume discretisation.
List< point > points_
List of points for "points" selectionMode.
TypeName("cellSetOption")
Runtime type information.
List< label > labelList
A List of labels.
const wordRes & selectionNames() const noexcept
Return const access to the selection names (set or zone selection)
virtual ~cellSetOption()=default
Destructor.
bool useSubMesh() const noexcept
True if sub-selection should be used.
scalar timeStart_
Start time of fvOption.
void setVol()
Recalculate the volume.