146#ifndef Foam_fv_cellSetOption_H
147#define Foam_fv_cellSetOption_H
301 inline scalar
timeStart(scalar val)
noexcept;
304 inline scalar
duration(scalar val)
noexcept;
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 pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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.
wordRes selectionNames_
Face selection names (for set or zone selections).
void setSelection(const dictionary &dict)
Set cell selection name or points selection from dictionary input.
bool isSelectionUpdated() const noexcept
Return flag for selection updates.
scalar V() const noexcept
Return const access to the total cell volume.
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.
cellSetOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
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 wordRe & zoneName() const
Return const access to the first set/zone name.
const labelList & cells() const noexcept
Return const access to the cell selection.
virtual bool isActive()
Is the source active?
selectionModeType selectionMode_
Cell selection mode.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
const word & cellSetName() const
The name of the cell set/zone [as a word] for "cellSet" / "cellZone" selection modes).
void setCellSelection()
Set the cell selection based on user input selection mode.
bool updateSelection_
Flag to enable dictionary-based updates of selections.
selectionModeType selectionMode() const noexcept
Return the cell selection mode.
const wordRes & selectionNames() const noexcept
Return const access to the selection names (set or zone selection).
selectionModeType
Enumeration for selection mode types.
@ smCellType
"overset type cells"
@ smMovingPoints
"movingPoints"
bool inTimeLimits(const scalar timeValue) const
True if within time limits.
PtrList< Function1< point > > movingPoints_
List of points for "movingPoints" selectionMode.
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 List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
Namespace for finite-volume.
List< label > labelList
A List of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.