Go to the documentation of this file.
84 #ifndef faceSetOption_H
85 #define faceSetOption_H
169 const word& modelType,
184 inline scalar
timeStart() const noexcept;
187 inline scalar
duration() const noexcept;
203 inline scalar
A() const noexcept;
212 inline scalar
timeStart(scalar val) noexcept;
215 inline scalar
duration(scalar val) noexcept;
238 #include "faceSetOptionI.H"
scalar A_
Sum of face area.
const word & faceSetName() const noexcept
scalar duration() const noexcept
Return const access to the duration.
const word & name() const noexcept
Return const access to the source name.
scalar duration_
Duration.
A class for handling words, derived from Foam::string.
TypeName("faceSetOption")
Runtime type information.
const fvPatch & patch() const noexcept
Return const access to fvPatch.
Intermediate abstract class for handling face-set options for the derived faOptions.
scalar timeStart() const noexcept
Return const access to the time start.
bool useSubMesh() const noexcept
True if sub-selection should be used.
const labelList & faces() const noexcept
Return const access to the face selection.
selectionModeType
Enumeration for selection mode types.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read source dictionary.
labelList faces_
Set of faces to apply source to.
selectionModeType selectionMode_
Face selection mode.
Base abstract class for handling finite area options (i.e. faOption).
faceSetOption(const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch)
Construct from components.
scalar timeStart_
Time start.
void setArea()
Recalculate the area.
virtual bool isActive()
Is the source active?
word faceSetName_
Name of "volFaceZone" selection.
void setSelection(const dictionary &dict)
Set face selection name from dictionary input.
bool inTimeLimits(const scalar timeValue) const
Return true if within time limits.
scalar A() const noexcept
Return const access to the total face area.
void setFaceSelection()
Set face selection based on user input selection mode.
selectionModeType selectionMode() const noexcept
Return const access to the face selection mode.
virtual ~faceSetOption()=default
Destructor.