Constraint to keep all cells connected to face or point of faceSet on a single processor. More...
#include <singleProcessorFaceSetsConstraint.H>


Public Member Functions | |
| TypeName ("singleProcessorFaceSets") | |
| Runtime type information. | |
| singleProcessorFaceSets (const dictionary &dict) | |
| Construct with constraint dictionary. | |
| singleProcessorFaceSets (const List< Tuple2< word, label > > &setNameAndProcs) | |
| Copy construct from components. | |
| singleProcessorFaceSets (Istream &is) | |
| Read construct a List of (setName processor). | |
| virtual | ~singleProcessorFaceSets ()=default |
| Destructor. | |
| virtual void | add (const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const |
| Add this constraint to list of constraints. | |
| 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. | |
| Public Member Functions inherited from decompositionConstraint | |
| TypeName ("decompositionConstraint") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, decompositionConstraint, dictionary,(const dictionary &dict),(dict)) | |
| decompositionConstraint (const dictionary &constraintDict) | |
| Construct with constraint dictionary. | |
| decompositionConstraint (const dictionary &constraintDict, const word &modelType) | |
| Construct with constraint dictionary and model type. | |
| virtual | ~decompositionConstraint ()=default |
| Destructor. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from decompositionConstraint | |
| static autoPtr< decompositionConstraint > | New (const dictionary &constraintDict) |
| Return a reference to the selected decompositionConstraint. | |
| static autoPtr< decompositionConstraint > | New (const dictionary &constraintDict, const word &modelType) |
| Return a reference to the selected decompositionConstraint. | |
| Protected Member Functions inherited from decompositionConstraint | |
| void | getMinBoundaryValue (const polyMesh &mesh, const labelList &decomposition, labelList &destProc) const |
| Get minimum label across coupled boundary faces. | |
| decompositionConstraint (const decompositionConstraint &)=delete | |
| No copy construct. | |
| void | operator= (const decompositionConstraint &)=delete |
| No copy assignment. | |
| Protected Attributes inherited from decompositionConstraint | |
| dictionary | coeffDict_ |
| Constraint coefficients dictionary. | |
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 90 of file singleProcessorFaceSetsConstraint.H.
|
explicit |
Construct with constraint dictionary.
Definition at line 59 of file singleProcessorFaceSetsConstraint.C.
References decompositionConstraint::coeffDict_, decompositionConstraint::decompositionConstraint(), dict, and Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName.

Copy construct from components.
Definition at line 81 of file singleProcessorFaceSetsConstraint.C.
References decompositionConstraint::decompositionConstraint(), Foam::endl(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::Info, and Foam::type().

|
explicit |
Read construct a List of (setName processor).
Definition at line 100 of file singleProcessorFaceSetsConstraint.C.
References decompositionConstraint::decompositionConstraint(), Foam::endl(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::Info, and Foam::type().

|
virtualdefault |
Destructor.
References mesh.
| TypeName | ( | "singleProcessorFaceSets" | ) |
Runtime type information.
References dict.
|
virtual |
Add this constraint to list of constraints.
Implements decompositionConstraint.
Definition at line 121 of file singleProcessorFaceSetsConstraint.C.
References List< T >::append(), PtrList< T >::append(), Foam::endl(), f(), faceLabels(), forAll, Foam::Info, mesh, pFaces, List< T >::resize(), Foam::returnReduce(), Foam::returnReduceOr(), HashTable< T, Key, Hash >::size(), UPtrList< T >::size(), HashTable< T, Key, Hash >::sortedToc(), syncTools::syncFaceList(), syncTools::syncPointList(), Foam::type(), WarningInFunction, and Foam::Zero.

|
virtual |
Add this constraint post-decomposition.
Reimplemented from decompositionConstraint.
Definition at line 253 of file singleProcessorFaceSetsConstraint.C.
References Foam::endl(), f(), forAll, Foam::Info, mesh, pFaces, Foam::reduce(), Foam::returnReduce(), syncTools::syncPointList(), and Foam::type().
