98 #ifndef Foam_fa_faceSetOption_H 99 #define Foam_fa_faceSetOption_H 188 const word& modelType,
260 #include "faceSetOptionI.H" const fvMesh & mesh() const noexcept
Return const access to the mesh database.
void setFaceSelection()
Set face selection based on user input selection mode.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual ~faceSetOption()=default
Destructor.
scalar timeStart() const noexcept
Return const access to the time start.
"patch" : subset with (volume) patches
wordRes selectionNames_
Face selection names (for set, zone or patch selections)
const wordRes & selectionNames() const noexcept
Return const access to the selection names (set, zone or patch selection)
const wordRe & zoneName() const
Return const access to the first set/zone/patch name.
virtual bool isActive()
Is the source active?
selectionModeType selectionMode() const noexcept
Return the face selection mode.
scalar A() const noexcept
Return const access to the total face area.
bool useSubMesh() const noexcept
True if sub-selection should be used.
scalar timeStart_
Time start.
faceSetOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
A class for handling words, derived from Foam::string.
"faceZone" : subset with (volume) zone faces
A List of wordRe with additional matching capabilities.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
const word & name() const noexcept
Return const access to the source name.
const labelList & faces() const noexcept
Return const access to the local finite-area face selection.
bool inTimeLimits(const scalar timeValue) const
Return true if within time limits.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
scalar duration() const noexcept
Return const access to the duration.
selectionModeType selectionMode_
Face selection mode.
void setSelection(const dictionary &dict)
Set face selection name from dictionary input.
Mesh data needed to do the Finite Volume discretisation.
virtual bool read(const dictionary &dict)
Read source dictionary.
"faceSet" : subset with (volume) face set
void subsetFilter(List< Type > &field) const
Zero all non-selected locations within field.
scalar A_
Sum of face area.
List< label > labelList
A List of labels.
selectionModeType
Enumeration for selection mode types.
scalar duration_
Duration.
void setArea()
Recalculate the area.
TypeName("faceSetOption")
Runtime type information.
labelList faces_
Set of faces to apply source to.