singleProcessorFaceSets Class Reference

Constraint to keep all cells connected to face or point of faceSet on a single processor. More...

Inheritance diagram for singleProcessorFaceSets:
[legend]
Collaboration diagram for singleProcessorFaceSets:
[legend]

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...
 
- Public Member Functions inherited from decompositionConstraint
 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 Public Member Functions inherited from decompositionConstraint
static autoPtr< decompositionConstraintNew (const dictionary &constraintDict)
 Return a reference to the selected decompositionConstraint. More...
 
static autoPtr< decompositionConstraintNew (const dictionary &constraintDict, const word &modelType)
 Return a reference to the selected decompositionConstraint. More...
 
- Protected Member Functions inherited from decompositionConstraint
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 inherited from decompositionConstraint
dictionary coeffDict_
 Constraint coefficients dictionary. More...
 

Detailed Description

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)
            );
        }
    }
Source files

Definition at line 94 of file singleProcessorFaceSetsConstraint.H.

Constructor & Destructor Documentation

◆ singleProcessorFaceSets() [1/3]

singleProcessorFaceSets ( const dictionary dict)
explicit

Construct with constraint dictionary.

Definition at line 68 of file singleProcessorFaceSetsConstraint.C.

◆ singleProcessorFaceSets() [2/3]

singleProcessorFaceSets ( const List< Tuple2< word, label >> &  setNameAndProcs)
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().

Here is the call graph for this function:

◆ singleProcessorFaceSets() [3/3]

singleProcessorFaceSets ( Istream is)
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().

Here is the call graph for this function:

◆ ~singleProcessorFaceSets()

virtual ~singleProcessorFaceSets ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "singleProcessorFaceSets"  )

Runtime type information.

◆ add()

void add ( const polyMesh mesh,
boolList blockedFace,
PtrList< labelList > &  specifiedProcessorFaces,
labelList specifiedProcessor,
List< labelPair > &  explicitConnections 
) const
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.

Here is the call graph for this function:

◆ apply()

void apply ( const polyMesh mesh,
const boolList blockedFace,
const PtrList< labelList > &  specifiedProcessorFaces,
const labelList specifiedProcessor,
const List< labelPair > &  explicitConnections,
labelList decomposition 
) const
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().

Here is the call graph for this function:

The documentation for this class was generated from the following files: