Go to the documentation of this file.
52 int main(
int argc,
char *argv[])
67 bool writeAgglom =
readBool(agglomDict.lookup(
"writeFacesAgglomeration"));
86 label nCoarseFaces = 0;
93 label patchI = patchIds[i];
101 agglomDict.subDict(pp.
name())
103 agglomObject.agglomerate();
104 finalAgglom[patchI] =
105 agglomObject.restrictTopBottomAddressing();
107 if (finalAgglom[patchI].size())
109 nCoarseFaces +=
max(finalAgglom[patchI] + 1);
119 if (finalAgglom[
patchId].size() == 0)
146 if (pp.
coupled() && !refCast<const coupledPolyPatch>(pp).owner())
165 "facesAgglomeration",
175 label coarsePatchIndex = 0;
182 facesAgglomeration.boundaryField()[
patchId];
184 forAll(bFacesAgglomeration, j)
186 bFacesAgglomeration[j] =
190 finalAgglom[
patchId][j] + coarsePatchIndex
194 coarsePatchIndex +=
max(finalAgglom[
patchId]) + 1;
198 Info<<
"\nWriting facesAgglomeration" <<
endl;
199 facesAgglomeration.
write();
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
faceListList boundary(nPatches)
Primitive patch pair agglomerate method.
const fileName & facesInstance() const
Return the current instance directory for faces.
Unit conversion functions.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const word dictName("particleTrackDict")
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual Ostream & write(const token &)=0
Write next token to stream.
A patch is a list of labels that address the faces in the global face list.
int main(int argc, char *argv[])
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label nInternalFaces() const
Generic dimensioned Type class.
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.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const Time & time() const
Return the top-level database.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
const word & name() const
Return name.
IOobject dictIO(dictName, runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE)