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 " 98 subsetter_.
reset(selectedCells.addressing());
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_);
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...
Add elements to current set.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & baseMesh() const noexcept
Original mesh.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
defineTypeNameAndDebug(zoneSubSet, 0)
void reset()
Reset subMesh and all maps. Same as clear()
A List of wordRe with additional matching capabilities.
int debug
Static debugging option.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/chef2/andy/OpenFOAM/release/v2212/OpenFOAM-v2212/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
Mesh data needed to do the Finite Volume discretisation.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
messageStream Info
Information stream (stdout output on master, null elsewhere)
bitSet selection(const labelUList &zoneIds) const
Return all elements (cells, faces, points) contained in the listed zones.
void clearStorage()
Clear the list and delete storage.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
void clear()
Reset subMesh and all maps.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.