Detects baffles and keeps owner and neighbour on same processor. More...
Public Member Functions | |
TypeName ("preserveBaffles") | |
Runtime type information. More... | |
preserveBafflesConstraint (const dictionary &constraintsDict, const word &type) | |
Construct with generic dictionary with optional entry for type. More... | |
preserveBafflesConstraint () | |
Construct from components. More... | |
virtual | ~preserveBafflesConstraint () |
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 &constraintsDict, const word &type),(constraintsDict, type)) | |
decompositionConstraint (const dictionary &constraintsDict, const word &type) | |
Construct with generic dictionary with optional entry for type. More... | |
decompositionConstraint (const decompositionConstraint &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~decompositionConstraint () |
Destructor. More... | |
void | operator= (const decompositionConstraint &)=delete |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from decompositionConstraint | |
static autoPtr< decompositionConstraint > | New (const dictionary &constraintsDict, const word &type) |
Return a reference to the selected decompositionConstraint. More... | |
Protected Attributes inherited from decompositionConstraint | |
dictionary | coeffDict_ |
Model coefficients dictionary. More... | |
Detects baffles and keeps owner and neighbour on same processor.
Definition at line 51 of file preserveBafflesConstraint.H.
preserveBafflesConstraint | ( | const dictionary & | constraintsDict, |
const word & | type | ||
) |
Construct with generic dictionary with optional entry for type.
Definition at line 53 of file preserveBafflesConstraint.C.
References Foam::endl(), Foam::Info, preserveBafflesConstraint::preserveBafflesConstraint(), and Foam::type().
Construct from components.
Definition at line 70 of file preserveBafflesConstraint.C.
References preserveBafflesConstraint::add(), Foam::endl(), Foam::Info, and Foam::type().
Referenced by preserveBafflesConstraint::preserveBafflesConstraint().
|
inlinevirtual |
Destructor.
Definition at line 77 of file preserveBafflesConstraint.H.
References preserveBafflesConstraint::add(), preserveBafflesConstraint::apply(), and mesh.
TypeName | ( | "preserveBaffles" | ) |
Runtime type information.
|
virtual |
Add my constraints to list of constraints.
Implements decompositionConstraint.
Definition at line 86 of file preserveBafflesConstraint.C.
References preserveBafflesConstraint::apply(), decompositionConstraint::coeffDict_, Pair< Type >::compare(), Foam::endl(), primitiveMesh::faceCentres(), localPointRegion::findDuplicateFacePairs(), UList< T >::first(), forAll, Foam::Info, IOWarningInFunction, n, primitiveMesh::nFaces(), p, Foam::returnReduce(), List< T >::setSize(), List< T >::size(), syncTools::syncFaceList(), and Foam::type().
Referenced by preserveBafflesConstraint::preserveBafflesConstraint(), and preserveBafflesConstraint::~preserveBafflesConstraint().
|
virtual |
Apply any additional post-decomposition constraints.
Reimplemented from decompositionConstraint.
Definition at line 184 of file preserveBafflesConstraint.C.
References Foam::endl(), f1, polyMesh::faceNeighbour(), polyMesh::faceOwner(), localPointRegion::findDuplicateFacePairs(), Pair< Type >::first(), forAll, Foam::Info, primitiveMesh::isInternalFace(), Foam::reduce(), Pair< Type >::second(), and Foam::type().
Referenced by preserveBafflesConstraint::add(), and preserveBafflesConstraint::~preserveBafflesConstraint().