Go to the documentation of this file.
38 #ifndef pairPatchAgglomeration_H
39 #define pairPatchAgglomeration_H
100 bool agglomeratePatch
104 const label fineLevelIndex
115 void combineLevels(
const label curLevel);
118 void compactLevels(
const label fineLevelIndex);
121 bool continueAgglomerating
124 const label nLocalOld
128 void setEdgeWeights(
const label indexLevel);
131 void setLevel0EdgeWeights();
134 void mapBaseToTopAgglom(
const label fineLevelIndex);
160 const label mergeLevels,
161 const label maxLevels,
162 const label nFacesInCoarsestLevel,
163 const label nGlobalFacesInCoarsestLevel,
164 const scalar featureAngle = 0
210 const label fineLevelIndex
219 const label coarseLevelIndex
A class for managing temporary objects.
label mergeLevels_
Number of levels to merge, 1 = don't merge, 2 = merge pairs etc.
Primitive patch pair agglomerate method.
labelList nFaces_
The number of faces in each level.
scalar featureAngle_
Feature angle.
PrimitivePatch< List< face >, const pointField > bPatch
labelList restrictTopBottomAddressing_
Maps from finest to coarsest.
const labelList & restrictTopBottomAddressing() const
Return restriction from top level to bottom level.
EdgeMap< scalar > facePairWeight_
Edge weights.
label size() const
Return size.
runTime controlDict().readEntry("adjustTimeStep"
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
~pairPatchAgglomeration()
label maxLevels_
Max number of levels.
PtrList< labelField > restrictAddressing_
Cell restriction addressing array.
void restrictField(Field< Type > &cf, const Field< Type > &ff, const label fineLevelIndex) const
Restrict (integrate by summation) cell field.
PtrList< bPatch > patchLevels_
Hierarchy of patch addressing.
const FieldField< fvPatchField, Type > & ff(const FieldField< fvPatchField, Type > &bf)
const std::string patch
OpenFOAM patch number as a std::string.
void agglomerate()
Agglomerate patch.
label nGlobalFacesInCoarsestLevel_
Global number of faces in coarsest level.
void prolongField(Field< Type > &ff, const Field< Type > &cf, const label coarseLevelIndex) const
Prolong (interpolate by injection) cell field.
const bPatch & patchLevel(const label leveli) const
Return primitivePatch of given level.
label nFacesInCoarsestLevel_
Number of faces in coarsest level.
A list of faces which address into the list of points.
const labelField & restrictAddressing(const label leveli) const
Return cell restrict addressing of given level.