Keep faces together based on geometric considerations from a list of topoSetFaceSource. The faces selected (inside) of each source are to be kept together during the decomposition. More...
Public Member Functions | |
TypeName ("geometric") | |
Runtime type information. More... | |
geometric (const dictionary &dict) | |
Construct with constraint dictionary. More... | |
geometric (PtrList< topoSetFaceSource > &&selections) | |
Move construct from components. More... | |
virtual | ~geometric ()=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... | |
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 | 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< 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... | |
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... | |
Keep faces together based on geometric considerations from a list of topoSetFaceSource. The faces selected (inside) of each source are to be kept together during the decomposition.
constraints { geom1 { type geometric; grow false; selection { box1 { source box; min (-0.1 -0.01 -0.1); max (0.1 0.30 0.1); } ball { source sphere; origin (-0.1 -0.01 -0.1); radius 0.25; } blob { source surface; surfaceType triSurfaceMesh; surfaceName blob.obj; } } } }
Dictionary parameters
Property | Description | Required | Default |
---|---|---|---|
type | geometric | yes | |
grow | Grow cells with partial connectivity | no | false |
selection | Dictionary of geometric selections | yes |
The combined face selections are treated as an OR operation.
The "grow" mode includes an additional check to include cell faces for any cell that already has two or more of its faces "unblocked". This could indicate a connection over a corner, but does not distinguish between connectivity introduced by the constraint and the connectivity defined by other constraints.
Definition at line 127 of file geometricConstraint.H.
|
explicit |
Construct with constraint dictionary.
Definition at line 49 of file geometricConstraint.C.
References Foam::ensightOutput::debug, Foam::endl(), and Foam::Info.
|
explicit |
Move construct from components.
(topoSetFaceSource cannot be cloned)
Definition at line 70 of file geometricConstraint.C.
References Foam::ensightOutput::debug, Foam::endl(), and Foam::Info.
|
virtualdefault |
Destructor.
TypeName | ( | "geometric" | ) |
Runtime type information.
|
virtual |
Add this constraint to list of constraints.
Implements decompositionConstraint.
Definition at line 91 of file geometricConstraint.C.
References topoBoolSet::addressing(), Foam::BitOps::count(), Foam::ensightOutput::debug, Foam::endl(), dictionary::get(), Foam::Info, mesh, Foam::New(), dictionary::optionalSubDict(), List< T >::resize(), returnReduce(), bitSet::set(), List< T >::transfer(), and WarningInFunction.