Go to the documentation of this file.
37 namespace decompositionConstraints
43 decompositionConstraint,
59 patches_(coeffDict_.get<
wordRes>(
"patches"))
64 <<
" : adding constraints to keep owner and (coupled) neighbour"
65 <<
" of faces in patches " << patches_
66 <<
" on same processor. This only makes sense for cyclics"
67 <<
" and cyclicAMI." <<
endl;
83 <<
" : adding constraints to keep owner and (coupled) neighbour"
84 <<
" of faces in patches " << patches_
85 <<
" on same processor. This only makes sense for cyclics"
86 <<
" and cyclicAMI." <<
endl;
108 label nUnblocked = 0;
110 for (
const label patchi : patchIDs)
116 const label meshFacei = pp.
start() + i;
118 if (blockedFace[meshFacei])
120 blockedFace[meshFacei] =
false;
129 Info<<
type() <<
" : unblocked " << nUnblocked <<
" faces" <<
endl;
163 getMinBoundaryValue(
mesh, decomposition, destProc);
170 for (
const label patchi : patchIDs)
178 const label bFacei = pp.
offset()+i;
179 if (destProc[bFacei] < decomposition[
faceCells[i]])
181 decomposition[
faceCells[i]] = destProc[bFacei];
191 Info<<
type() <<
" : changed decomposition on " << nChanged
195 }
while (nChanged > 0);
int debug
Static debugging option.
virtual void apply(const polyMesh &mesh, const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &decomposition) const
Apply any additional post-decomposition constraints.
Abstract class for handling decomposition constraints.
defineTypeName(geometric)
void resize(const label len)
Adjust allocated size of list.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
label offset() const
The offset where this patch starts in the boundary face list.
virtual void add(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add my constraints to list of constraints.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A patch is a list of labels that address the faces in the global face list.
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,...
reduce(hasMovingMesh, orOp< bool >())
Macros for easy insertion into run-time selection tables.
const labelUList & faceCells() const
Return face-cell addressing.
label start() const
Return start label of this patch in the polyMesh face list.
addToRunTimeSelectionTable(decompositionConstraint, geometric, dictionary)
preservePatches(const dictionary &dict)
Construct with constraint dictionary.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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.
const polyBoundaryMesh & patches
Smooth ATC in cells next to a set of patches supplied by type.