Go to the documentation of this file.
37 namespace decompositionConstraints
43 decompositionConstraint,
59 zones_(coeffDict_.get<
wordRes>(
"zones"))
63 Info<<
type() <<
" : adding constraints to keep owner and neighbour"
64 <<
" of faces in zones " << zones_
65 <<
" on same processor" <<
endl;
80 Info<<
type() <<
" : adding constraints to keep owner and neighbour"
81 <<
" of faces in zones " << zones_
82 <<
" on same processor" <<
endl;
104 label nUnblocked = 0;
106 for (
const label zonei :
zoneIDs)
110 for (
const label meshFacei : fz)
112 if (blockedFace[meshFacei])
114 blockedFace[meshFacei] =
false;
123 Info<<
type() <<
" : unblocked " << nUnblocked <<
" faces" <<
endl;
153 label bFacei = pp.start() -
mesh.nInternalFaces();
159 destProc[bFacei] = decomposition[celli];
177 for (
const label zonei :
zoneIDs)
181 for (
const label facei : fz)
183 const label own =
mesh.faceOwner()[facei];
185 if (
mesh.isInternalFace(facei))
187 const label nei =
mesh.faceNeighbour()[facei];
188 if (decomposition[own] != decomposition[nei])
190 decomposition[nei] = decomposition[own];
196 const label bFaceI = facei-
mesh.nInternalFaces();
197 if (decomposition[own] != destProc[bFaceI])
199 decomposition[own] = destProc[bFaceI];
209 Info<<
type() <<
" : changed decomposition on " << nChanged
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)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelIOList & zoneIDs
preserveFaceZones(const dictionary &dict)
Construct with constraint dictionary.
Mesh consisting of general polyhedral cells.
virtual void add(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add my constraints to list of constraints.
A subset of mesh faces organised as a primitive patch.
messageStream Info
Information stream (uses stdout - output is on the master only)
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.
wordList names() const
A list of the zone names.
addToRunTimeSelectionTable(decompositionConstraint, geometric, 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.
void setSize(const label newSize)
Alias for resize(const label)
Smooth ATC in cells next to a set of patches supplied by type.