98#ifndef Foam_fa_faceSetOption_H
99#define Foam_fa_faceSetOption_H
188 const word& modelType,
192 const word& defaultAreaName =
word()
262#include "faceSetOptionI.H"
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,...
Intermediate abstract class for handling face-set options for the derived faOptions.
scalar timeStart() const noexcept
Return const access to the time start.
labelList faces_
Set of faces to apply source to.
scalar duration() const noexcept
Return const access to the duration.
void setFaceSelection()
Set face selection based on user input selection mode.
virtual ~faceSetOption()=default
Destructor.
void subsetFilter(List< Type > &field) const
Zero all non-selected locations within field.
wordRes selectionNames_
Face selection names (for set, zone or patch selections).
void setSelection(const dictionary &dict)
Set face selection name from dictionary input.
scalar A_
Sum of face area.
selectionModeType
Enumeration for selection mode types.
@ smPatch
"patch" : subset with (volume) patches
@ smFaceZone
"faceZone" : subset with (volume) zone faces
@ smAll
"all" finite-area faces
@ smFaceSet
"faceSet" : subset with (volume) face set
selectionModeType selectionMode() const noexcept
Return the face selection mode.
virtual bool read(const dictionary &dict)
Read source dictionary.
bool useSubMesh() const noexcept
True if sub-selection should be used.
scalar duration_
Duration.
scalar timeStart_
Time start.
const wordRe & zoneName() const
Return const access to the first set/zone/patch name.
virtual bool isActive()
Is the source active?
faceSetOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh, const word &defaultAreaName=word())
Construct from components.
TypeName("faceSetOption")
Runtime type information.
selectionModeType selectionMode_
Face selection mode.
const labelList & faces() const noexcept
Return const access to the local finite-area face selection.
static const Enum< selectionModeType > selectionModeTypeNames_
List of selection mode type names.
const wordRes & selectionNames() const noexcept
Return const access to the selection names (set, zone or patch selection).
scalar A() const noexcept
Return const access to the total face area.
bool inTimeLimits(const scalar timeValue) const
Return true if within time limits.
void setArea()
Recalculate the area.
Base abstract class for handling finite area options (i.e. faOption).
const fvMesh & mesh() const noexcept
Return const access to the volume mesh.
const word & name() const noexcept
The source name.
Mesh data needed to do the Finite Volume discretisation.
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-area.
List< label > labelList
A List of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.