Go to the documentation of this file.
84 #ifndef faceSetOption_H
85 #define faceSetOption_H
169 const word& modelType,
200 inline scalar
A()
const;
scalar A_
Sum of face area.
scalar duration_
Duration.
A class for handling words, derived from Foam::string.
const word & name() const
Return const access to the source name.
TypeName("faceSetOption")
Runtime type information.
scalar timeStart() const
Return const access to the time start.
Intermediate abstract class for handling face-set options for the derived faOptions.
const fvPatch & patch() const
Return const access to fvPatch.
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.
void setFaceSet()
Set the face set based on the user input selection mode.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar A() const
Return const access to the total face area.
virtual bool read(const dictionary &dict)
Read source dictionary.
bool inTimeLimits(const scalar time) const
Return true if within time limits.
const word & faceSetName() const
const selectionModeType & selectionMode() const
Return const access to the face selection mode.
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 duration() const
Return const access to the duration.
scalar timeStart_
Time start.
void setArea()
Recalculate the area.
virtual bool isActive()
Is the source active?
word faceSetName_
Name of zone for "faceZone" selectionMode.
void setSelection(const dictionary &dict)
Set the face selection.
const labelList & faces() const
Return const access to the face set.
virtual ~faceSetOption()=default
Destructor.