Abstract class for handling decomposition constraints. More...
Public Member Functions | |
TypeName ("decompositionConstraint") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, decompositionConstraint, dictionary,(const dictionary &dict),(dict)) | |
decompositionConstraint (const dictionary &constraintDict) | |
Construct with constraint dictionary. More... | |
decompositionConstraint (const dictionary &constraintDict, const word &modelType) | |
Construct with constraint dictionary and model type. More... | |
virtual | ~decompositionConstraint ()=default |
Destructor. More... | |
virtual void | add (const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const =0 |
Add this constraint 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... | |
Static Public Member Functions | |
static autoPtr< decompositionConstraint > | New (const dictionary &constraintDict) |
Return a reference to the selected decompositionConstraint. More... | |
static autoPtr< decompositionConstraint > | New (const dictionary &constraintDict, const word &modelType) |
Return a reference to the selected decompositionConstraint. More... | |
Protected Member Functions | |
void | getMinBoundaryValue (const polyMesh &mesh, const labelList &decomposition, labelList &destProc) const |
Get minimum label across coupled boundary faces. More... | |
decompositionConstraint (const decompositionConstraint &)=delete | |
No copy construct. More... | |
void | operator= (const decompositionConstraint &)=delete |
No copy assignment. More... | |
Protected Attributes | |
dictionary | coeffDict_ |
Constraint coefficients dictionary. More... | |
Abstract class for handling decomposition constraints.
Definition at line 58 of file decompositionConstraint.H.
|
protecteddelete |
No copy construct.
|
explicit |
Construct with constraint dictionary.
Definition at line 132 of file decompositionConstraint.C.
decompositionConstraint | ( | const dictionary & | constraintDict, |
const word & | modelType | ||
) |
Construct with constraint dictionary and model type.
The model type could be used for defining a coefficients sub-dictionary.
Definition at line 141 of file decompositionConstraint.C.
|
virtualdefault |
Destructor.
|
protected |
Get minimum label across coupled boundary faces.
Definition at line 44 of file decompositionConstraint.C.
References polyMesh::boundaryMesh(), fld(), forAll, Foam::labelMax, mesh, Foam::min(), primitiveMesh::nBoundaryFaces(), List< T >::setSize(), and syncTools::syncBoundaryFaceList().
|
protecteddelete |
No copy assignment.
TypeName | ( | "decompositionConstraint" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
decompositionConstraint | , | ||
dictionary | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
|
static |
Return a reference to the selected decompositionConstraint.
Definition at line 154 of file decompositionConstraint.C.
References dict, dictionary::get(), and Time::New().
|
static |
Return a reference to the selected decompositionConstraint.
Definition at line 168 of file decompositionConstraint.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.
|
pure virtual |
Add this constraint to list of constraints.
Implemented in geometric, preserveBaffles, preserveFaceZones, preservePatches, refinementHistory, and singleProcessorFaceSets.
|
inlinevirtual |
Apply any additional post-decomposition constraints.
Usually no need to do anything since decomposition method should have already obeyed the constraints
Reimplemented in preserveBaffles, preserveFaceZones, preservePatches, refinementHistory, and singleProcessorFaceSets.
Definition at line 155 of file decompositionConstraint.H.
|
protected |
Constraint coefficients dictionary.
Definition at line 65 of file decompositionConstraint.H.