Go to the documentation of this file.
45 bool Foam::Detail::zoneSubSet::correct()
50 if (zoneMatcher_.empty())
56 cellBitSet selectedCells
65 << selectedCells.addressing().count()
66 <<
" cells based on cellZones "
73 haloToCell haloSource(subsetter_.
baseMesh(), nLayers_);
74 haloSource.verbose(
false);
77 haloCells_ = selectedCells.addressing();
82 haloCells_ ^= selectedCells.addressing();
87 const label nHalo = haloCells_.
count();
88 const label nSubCell = selectedCells.addressing().count();
92 <<
" cells after adding " << nLayers_ <<
" layers with "
106 Foam::Detail::zoneSubSet::zoneSubSet
110 const label nZoneLayers
114 zoneMatcher_(zoneSelector),
115 nLayers_(nZoneLayers),
122 Foam::Detail::zoneSubSet::zoneSubSet
130 nLayers_(
dict.getOrDefault<label>(
"nLayers", 0)),
133 dict.readIfPresent(
"cellZones", zoneMatcher_);
int debug
Static debugging option.
Add elements to current set.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
void setCellSubset(const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true)
Define cell subset based on the selectedCells.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(zoneSubSet, 0)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
unsigned int count(const bool on=true) const
Count number of bits set.
void clear()
Reset maps and subsetting.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
const fvMesh & baseMesh() const noexcept
Original mesh.
A List of wordRe with additional matching capabilities.
void clearStorage()
Clear the list and delete storage.
bitSet selection(const labelUList &zoneIds) const