Constraint to keep/move owner and neighbour of faceZone onto same processor. More...
Public Member Functions | |
TypeName ("preserveFaceZones") | |
Runtime type information. More... | |
preserveFaceZonesConstraint (const dictionary &constraintsDict, const word &type) | |
Construct with generic dictionary with optional entry for type. More... | |
preserveFaceZonesConstraint (const wordReList &zones) | |
Construct from components. More... | |
virtual | ~preserveFaceZonesConstraint () |
Destructor. More... | |
virtual void | add (const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const |
Add my constraints to list of constraints. More... | |
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. More... | |
Public Member Functions inherited from decompositionConstraint | |
TypeName ("decompositionConstraint") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, decompositionConstraint, dictionary,(const dictionary &constraintsDict, const word &type),(constraintsDict, type)) | |
decompositionConstraint (const dictionary &constraintsDict, const word &type) | |
Construct with generic dictionary with optional entry for type. More... | |
decompositionConstraint (const decompositionConstraint &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~decompositionConstraint () |
Destructor. More... | |
void | operator= (const decompositionConstraint &)=delete |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from decompositionConstraint | |
static autoPtr< decompositionConstraint > | New (const dictionary &constraintsDict, const word &type) |
Return a reference to the selected decompositionConstraint. More... | |
Protected Attributes inherited from decompositionConstraint | |
dictionary | coeffDict_ |
Model coefficients dictionary. More... | |
Constraint to keep/move owner and neighbour of faceZone onto same processor.
Definition at line 53 of file preserveFaceZonesConstraint.H.
preserveFaceZonesConstraint | ( | const dictionary & | constraintsDict, |
const word & | type | ||
) |
Construct with generic dictionary with optional entry for type.
Definition at line 52 of file preserveFaceZonesConstraint.C.
References Foam::endl(), Foam::Info, and Foam::type().
preserveFaceZonesConstraint | ( | const wordReList & | zones | ) |
Construct from components.
Definition at line 71 of file preserveFaceZonesConstraint.C.
References preserveFaceZonesConstraint::add(), Foam::endl(), Foam::Info, and Foam::type().
|
inlinevirtual |
Destructor.
Definition at line 83 of file preserveFaceZonesConstraint.H.
References preserveFaceZonesConstraint::add(), preserveFaceZonesConstraint::apply(), and mesh.
TypeName | ( | "preserveFaceZones" | ) |
Runtime type information.
|
virtual |
Add my constraints to list of constraints.
Implements decompositionConstraint.
Definition at line 90 of file preserveFaceZonesConstraint.C.
References preserveFaceZonesConstraint::apply(), Foam::endl(), polyMesh::faceZones(), Foam::findStrings(), forAll, Foam::Info, MeshZones< ZoneType, MeshType >::names(), primitiveMesh::nFaces(), Foam::reduce(), List< T >::setSize(), syncTools::syncFaceList(), and Foam::type().
Referenced by preserveFaceZonesConstraint::preserveFaceZonesConstraint(), and preserveFaceZonesConstraint::~preserveFaceZonesConstraint().
|
virtual |
Apply any additional post-decomposition constraints.
Reimplemented from decompositionConstraint.
Definition at line 131 of file preserveFaceZonesConstraint.C.
References polyMesh::boundaryMesh(), Foam::endl(), polyPatch::faceCells(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faceZones(), Foam::findStrings(), forAll, Foam::Info, primitiveMesh::isInternalFace(), Foam::labelMax, MeshZones< ZoneType, MeshType >::names(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), patchi, Foam::reduce(), polyPatch::start(), syncTools::syncBoundaryFaceList(), and Foam::type().
Referenced by preserveFaceZonesConstraint::add(), and preserveFaceZonesConstraint::~preserveFaceZonesConstraint().