Go to the documentation of this file.
59 patches_(methodDict_.get<
wordRes>(
"patches")),
60 nLayers_(methodDict_.getOrDefault<label>(
"nLayers",
labelMax)),
61 depthFirst_(methodDict_.get<
bool>(
"depthFirst")),
62 reverse_(methodDict_.get<
bool>(
"reverse")),
69 bool Foam::structuredRenumber::layerLess::operator()
132 return order_[a] < order_[
b];
147 <<
"Number of points " <<
points.size()
148 <<
" should equal the number of cells " <<
mesh.nCells()
156 for (
const label patchi : patchIDs)
158 nFaces += pbm[patchi].size();
164 for (
const label
patchId : patchIDs)
171 label nTotalCells =
mesh.globalData().nTotalCells();
172 const label nLayers = nTotalCells/nTotalSeeds;
174 Info<<
type() <<
" : seeding " << nTotalSeeds
175 <<
" cells on (estimated) " << nLayers <<
" layers" <<
nl
204 orderedToOld[subsetter.
cellMap()[i]] =
205 globalSubCells.toGlobal(subOrigToOrdered[i]);
214 for (
const label patchi : patchIDs)
220 patchFaces[nFaces] = pp.
start()+i;
245 deltaCalc.iterate(nLayers_);
247 Info<<
type() <<
" : did not visit "
248 << deltaCalc.nUnvisitedCells()
249 <<
" cells out of " << nTotalCells
250 <<
"; using " << method_().type() <<
" renumbering for these" <<
endl;
270 layerLess(depthFirst_, oldToOrdered, cellData)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
label size() const noexcept
The number of elements in table.
void reverse(UList< T > &list, const label n)
For use with FaceCellWave. Determines topological distance to starting faces. Templated on passive tr...
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
const labelList & cellMap() const
Return cell map.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
Given the original mesh and the list of selected cells, it creates the mesh consisting only of the de...
Less function class that can be used for sorting according to.
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList invert(const label len, const labelUList &map)
Create an inverse one-to-one mapping.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
const Type & data() const
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
const fvMesh & subMesh() const
Return reference to subset mesh.
messageStream Info
Information stream (uses stdout - output is on the master only)
A patch is a list of labels that address the faces in the global face list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
const labelUList & faceCells() const
Return face-cell addressing.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
label start() const
Return start label of this patch in the polyMesh face list.
structuredRenumber(const structuredRenumber &)=delete
No copy construct.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Abstract base class for renumbering.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
IntListType renumber(const labelUList &oldToNew, const IntListType &input)
Renumber the values (not the indices) of a list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
A List of wordRe with additional matching capabilities.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool useGroups=true) const
Return the set of patch IDs corresponding to the given names.
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
Version of FaceCellWave that walks through prismatic cells only.
labelList sortedOrder(const UList< T > &input)
Return the (stable) sort order for the list.
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
defineTypeNameAndDebug(combustionModel, 0)
Smooth ATC in cells next to a set of patches supplied by type.