Keep faces together based on geometric considerations from a searchableSurfaces list. The faces inside of each searchableSurface 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... | |
![]() | |
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 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... | |
![]() | |
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... | |
![]() | |
dictionary | coeffDict_ |
Constraint coefficients dictionary. More... | |
Keep faces together based on geometric considerations from a searchableSurfaces list. The faces inside of each searchableSurface 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 |
geometry | Dictionary of enclosing volumes | yes |
The selection of enclosing volumes is 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 131 of file geometricConstraint.H.
|
explicit |
Construct with constraint dictionary.
Definition at line 56 of file geometricConstraint.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Info.
|
explicit |
Move construct from components.
(topoSetFaceSource cannot be cloned)
Definition at line 77 of file geometricConstraint.C.
References Foam::expressions::patchExpr::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 98 of file geometricConstraint.C.
References topoBoolSet::addressing(), Foam::BitOps::count(), Foam::expressions::patchExpr::debug, Foam::endl(), dictionary::get(), Foam::Info, mesh, Foam::New(), dictionary::optionalSubDict(), List< T >::resize(), Foam::returnReduce(), bitSet::set(), List< T >::transfer(), and WarningInFunction.