Go to the documentation of this file.
55 methodDict_(renumberDict.
subDict(typeName +
"Coeffs")),
56 patches_(methodDict_.lookup(
"patches")),
58 depthFirst_(methodDict_.lookup(
"depthFirst")),
60 reverse_(methodDict_.lookup(
"reverse"))
75 <<
"Number of points " <<
points.size()
76 <<
" should equal the number of cells " <<
mesh.nCells()
86 nFaces += pbm[iter.key()].
size();
94 const labelUList& fc = pbm[iter.key()].faceCells();
103 label nTotalCells =
mesh.globalData().nTotalCells();
104 const label nLayers = nTotalCells/nTotalSeeds;
106 Info<<
type() <<
" : seeding " << nTotalSeeds
107 <<
" cells on " << nLayers <<
" layers" <<
nl
112 bool oldParRun = Pstream::parRun();
113 Pstream::parRun() =
false;
136 orderedToOld[subsetter.
cellMap()[i]] = subOrigToOrdered[i];
177 Pstream::parRun() = oldParRun;
182 bool haveWarned =
false;
183 forAll(orderedToOld, cellI)
185 if (!cellData[cellI].valid(deltaCalc.
data()))
190 <<
"Did not visit some cells, e.g. cell " << cellI
191 <<
" at " <<
mesh.cellCentres()[cellI] <<
endl
192 <<
"Assigning these cells to domain 0." <<
endl;
195 orderedToOld[cellI] = 0;
199 label layerI = cellData[cellI].distance();
202 orderedToOld[nLayers*cellData[cellI].data()+layerI] = cellI;
206 orderedToOld[cellData[cellI].data()+nLayers*layerI] = cellI;
void setLargeCellSubset(const labelList ®ion, const label currentRegion, const label patchID=-1, const bool syncCouples=true)
Set the subset from all cells with region == currentRegion.
For use with FaceCellWave. Determines topological distance to starting faces.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
#define forAll(list, i)
Loop across all elements in list.
Post-processing mesh subset tool. Given the original mesh and the list of selected cells,...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const TrackingData & data() const
Additional data to be passed into container.
Ostream & endl(Ostream &os)
Add newline and flush stream.
structuredRenumber(const structuredRenumber &)
labelList patchFaces(const polyBoundaryMesh &patches, const wordList &names)
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const labelList & cellMap() const
Return cell map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
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 any number of values (e....
label size() const
Return number of elements in table.
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.
label start() const
Return start label of this patch in the polyMesh face list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Abstract base class for renumbering.
Wave propagation of information through grid. Every iteration information goes through one layer of c...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the PtrList.
bool insert(const Key &key)
Insert a new entry.
const fvMesh & subMesh() const
Return reference to subset mesh.
labelList invert(const label len, const labelUList &)
Invert one-to-one map. Unmapped elements will be -1.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch IDs corresponding to the given names.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
static void renumber(const labelList &map, labelList &elems)
void reverse(UList< T > &, const label n)