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());
106Foam::Detail::zoneSubSet::zoneSubSet
110 const label nZoneLayers
114 zoneMatcher_(zoneSelector),
115 nLayers_(nZoneLayers),
122Foam::Detail::zoneSubSet::zoneSubSet
130 nLayers_(
dict.getOrDefault<label>(
"nLayers", 0)),
133 dict.readIfPresent(
"cellZones", zoneMatcher_);
void clearStorage()
Clear the list and delete storage.
bool empty() const noexcept
True if List is empty (ie, size() is zero).
bitSet selection(const labelUList &zoneIds) const
Return all elements (cells, faces, points) contained in the listed zones.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const fvMesh & baseMesh() const noexcept
Original mesh.
void clear()
Reset subMesh and all maps.
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.
Implementation details for various OpenFOAM classes.
messageStream Info
Information stream (stdout output on master, null elsewhere).
T returnReduce(const T &value, BinaryOp bop, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
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.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.