48 void Foam::faceZoneToCell::combine(topoSet& set,
const bool add)
const
54 if (zoneName_.
match(fZone.name()))
56 Info<<
" Found matching zone " << fZone.name() <<
endl;
64 const boolList& flipMap = fZone.flipMap();
105 const polyMesh&
mesh,
106 const word& zoneName,
107 const faceAction option
118 const polyMesh&
mesh,
119 const dictionary&
dict
123 zoneName_(
dict.lookupBackwardsCompatible({
"zone",
"name"})),
124 option_(faceActionNames_.read(
dict.lookup(
"option")))
144 Info<<
" Adding all " << faceActionNames_[option_]
145 <<
" cells of faceZone " << zoneName_ <<
" ..." <<
endl;
151 Info<<
" Removing all " << faceActionNames_[option_]
152 <<
" cells of faceZone " << zoneName_ <<
" ..." <<
endl;
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Initialise the NamedEnum HashTable from the static list of names.
virtual ~faceZoneToCell()
Destructor.
static const NamedEnum< faceAction, 2 > faceActionNames_
Names of the valid options.
faceZoneToCell(const polyMesh &mesh, const word &zoneName, const faceAction option)
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
virtual const labelList & faceOwner() const
Return face owner.
const faceZoneList & faceZones() const
Return face zones.
virtual const labelList & faceNeighbour() const
Return face neighbour.
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< bool > boolList
Bool container classes.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)