preserveBaffles Class Reference

Detects baffles and keeps owner and neighbour on same processor. More...

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

Public Member Functions

 TypeName ("preserveBaffles")
 Runtime type information. More...
 
 preserveBaffles (const dictionary &dict)
 Construct with constraint dictionary. More...
 
 preserveBaffles ()
 Construct from components. More...
 
virtual ~preserveBaffles ()=default
 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 &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...
 

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

Detects baffles and keeps owner and neighbour on same processor.


Dictionary parameters

Property Description Required Default
type preserveBaffles yes
Source files

Definition at line 69 of file preserveBafflesConstraint.H.

Constructor & Destructor Documentation

◆ preserveBaffles() [1/2]

preserveBaffles ( const dictionary dict)
explicit

Construct with constraint dictionary.

Definition at line 54 of file preserveBafflesConstraint.C.

References Foam::endl(), Foam::Info, and Foam::type().

Here is the call graph for this function:

◆ preserveBaffles() [2/2]

Construct from components.

Definition at line 71 of file preserveBafflesConstraint.C.

References Foam::endl(), Foam::Info, and Foam::type().

Here is the call graph for this function:

◆ ~preserveBaffles()

virtual ~preserveBaffles ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "preserveBaffles"  )

Runtime type information.

◆ add()

void add ( const polyMesh mesh,
boolList blockedFace,
PtrList< labelList > &  specifiedProcessorFaces,
labelList specifiedProcessor,
List< labelPair > &  explicitConnections 
) const
virtual

Add my constraints to list of constraints.

Implements decompositionConstraint.

Definition at line 87 of file preserveBafflesConstraint.C.

References Pair< label >::compare(), Foam::endl(), localPointRegion::findDuplicateFacePairs(), forAll, Foam::Info, IOWarningInFunction, mesh, n, p, Foam::returnReduce(), List< T >::setSize(), UList< T >::size(), syncTools::syncFaceList(), and Foam::type().

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

Apply any additional post-decomposition constraints.

Reimplemented from decompositionConstraint.

Definition at line 182 of file preserveBafflesConstraint.C.

References Foam::endl(), localPointRegion::findDuplicateFacePairs(), Foam::Info, mesh, Foam::reduce(), and Foam::type().

Here is the call graph for this function:

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