145 #ifndef Foam_fv_cellSetOption_H 146 #define Foam_fv_cellSetOption_H 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.
PtrList< Function1< point > > movingPoints_
List of points for "movingPoints" selectionMode.
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)
bool isSelectionUpdated() const noexcept
Return flag for selection updates.
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?
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...
bool updateSelection_
Flag to enable dictionary-based updates of selections.
selectionModeType
Enumeration for selection mode types.
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.