Constraint to keep all cells connected to face or point of faceSet on a single processor. More...
Public Member Functions | |
TypeName ("singleProcessorFaceSets") | |
Runtime type information. More... | |
singleProcessorFaceSets (const dictionary &dict) | |
Construct with constraint dictionary. More... | |
singleProcessorFaceSets (const List< Tuple2< word, label >> &setNameAndProcs) | |
Copy construct from components. More... | |
singleProcessorFaceSets (Istream &is) | |
Read construct a List of (setName processor) More... | |
virtual | ~singleProcessorFaceSets ()=default |
Destructor. More... | |
virtual void | add (const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const |
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 |
Add this constraint post-decomposition. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
dictionary | coeffDict_ |
Constraint coefficients dictionary. More... | |
Constraint to keep all cells connected to face or point of faceSet on a single processor.
Dictionary parameters
Property | Description | Required | Default |
---|---|---|---|
type | singleProcessorFaceSets | yes | |
sets | List of sets and processers | yes |
Example,
constraints { procs { type singleProcessorFaceSets; sets ( (faceSet1 0) (faceSet5 12) (faceSet25 510) ); } }
Definition at line 94 of file singleProcessorFaceSetsConstraint.H.
|
explicit |
Construct with constraint dictionary.
Definition at line 68 of file singleProcessorFaceSetsConstraint.C.
|
explicit |
Copy construct from components.
Definition at line 90 of file singleProcessorFaceSetsConstraint.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, and Foam::type().
|
explicit |
Read construct a List of (setName processor)
Definition at line 109 of file singleProcessorFaceSetsConstraint.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, and Foam::type().
|
virtualdefault |
Destructor.
TypeName | ( | "singleProcessorFaceSets" | ) |
Runtime type information.
|
virtual |
Add this constraint to list of constraints.
Implements decompositionConstraint.
Definition at line 129 of file singleProcessorFaceSetsConstraint.C.
References PtrList< T >::append(), List< T >::append(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), forAll, Foam::Info, mesh, pFaces, Foam::reduce(), List< T >::resize(), syncTools::syncFaceList(), syncTools::syncPointList(), Foam::type(), and Foam::Zero.
|
virtual |
Add this constraint post-decomposition.
Reimplemented from decompositionConstraint.
Definition at line 252 of file singleProcessorFaceSetsConstraint.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), f(), forAll, Foam::Info, mesh, pFaces, Foam::reduce(), Foam::BitOps::set(), syncTools::syncPointList(), and Foam::type().