45bool 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 "
98 subsetter_.
reset(selectedCells.addressing());
110 const label nZoneLayers
114 zoneMatcher_(zoneSelector),
115 nLayers_(nZoneLayers),
130 nLayers_(
dict.getOrDefault<label>(
"nLayers", 0)),
void clearStorage()
Clear the list and delete storage.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
bitSet selection(const labelUList &zoneIds) const
unsigned int count(const bool on=true) const
Count number of bits set.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
const fvMesh & baseMesh() const noexcept
Original mesh.
void clear()
Reset subMesh and all maps.
void reset()
Reset subMesh and all maps. Same as clear()
Mesh data needed to do the Finite Volume discretisation.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
@ ADD
Add elements to current set.
A List of wordRe with additional matching capabilities.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.