35 #ifndef pairPatchAgglomeration_H 36 #define pairPatchAgglomeration_H 102 const label fineLevelIndex
113 void combineLevels(
const label curLevel);
116 void compactLevels(
const label fineLevelIndex);
119 bool continueAgglomerating(
const label fineLevelIndex);
122 void setEdgeWeights(
const label indexLevel);
125 void setBasedEdgeWeights();
128 void mapBaseToTopAgglom(
const label fineLevelIndex);
146 const bool additionalWeights =
false 165 return patchLevels_.
size();
180 return restrictAddressing_[leveli];
192 const label fineLevelIndex
201 const label coarseLevelIndex
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void restrictField(Field< Type > &cf, const Field< Type > &ff, const label fineLevelIndex) const
Restrict (integrate by summation) cell field.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
A list of keyword definitions, which are a keyword followed by any number of values (e...
PtrList< labelField > restrictAddressing_
Cell restriction addressing array.
PtrList< bPatch > patchLevels_
Hierarchy of patch addressing.
~pairPatchAgglomeration()
A list of faces which address into the list of points.
void agglomerate()
Agglomerate patch.
void prolongField(Field< Type > &ff, const Field< Type > &cf, const label coarseLevelIndex) const
Prolong (interpolate by injection) cell field.
label nFacesInCoarsestLevel_
Number of faces in coarsest level.
scalar featureAngle_
Feature angle.
PrimitivePatch< face, List, const pointField > bPatch
labelList restrictTopBottomAddressing_
Maps from finest to coarsest.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Primitive patch pair agglomerate method.
const labelField & restrictAddressing(const label leveli) const
Return cell restrict addressing of given level.
EdgeMap< scalar > facePairWeight_
Edge weights.
const bPatch & patchLevel(const label leveli) const
Return primitivePatch of given level.
labelList nFaces_
The number of faces in each level.
A class for managing temporary objects.
label maxLevels_
Max number of levels.
A patch is a list of labels that address the faces in the global face list.
const labelList & restrictTopBottomAddressing() const
Return restriction from top level to bottom level.
label mergeLevels_
Number of levels to merge, 1 = don't merge, 2 = merge pairs etc.
label size() const
Return size.
const FieldField< fvPatchField, Type > & ff(const FieldField< fvPatchField, Type > &bf)
label size() const
Return the number of elements in the UPtrList.