128#ifndef Foam_fv_cellSetOption_H
129#define Foam_fv_cellSetOption_H
222 const word& modelType,
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
scalar timeStart() const noexcept
Return const access to the time start.
scalar duration() const noexcept
Return const access to the duration.
dictionary geometricSelection_
Dictionary entries for "geometric" (topoSetCellSource) selection.
List< point > points_
List of points for "points" selectionMode.
void setSelection(const dictionary &dict)
Set cell selection name or points selection from dictionary input.
const wordRe & zoneName() const noexcept
scalar V() const noexcept
Return const access to the total cell volume.
selectionModeType
Enumeration for selection mode types.
labelList cells_
Set of cells to apply source to.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual ~cellSetOption()=default
Destructor.
TypeName("cellSetOption")
Runtime type information.
scalar V_
Sum of cell volumes.
bool useSubMesh() const noexcept
True if sub-selection should be used.
scalar duration_
Duration of fvOption execution starting from timeStart.
scalar timeStart_
Start time of fvOption.
const labelList & cells() const noexcept
Return const access to the cell selection.
virtual bool isActive()
Is the source active?
wordRe zoneName_
Name of set/zone for "cellSet" and "cellZone" selectionMode.
selectionModeType selectionMode_
Cell selection mode.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
const word & cellSetName() const noexcept
void setCellSelection()
Set the cell selection based on user input selection mode.
selectionModeType selectionMode() const noexcept
Return the cell selection mode.
bool inTimeLimits(const scalar timeValue) const
True if within time limits.
void setVol()
Recalculate the volume.
Base abstract class for handling finite volume options (i.e. fvOption).
const word & name() const noexcept
Return const access to the source name.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A class for handling words, derived from Foam::string.
List< label > labelList
A List of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.