geometric Class Reference

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...

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

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< 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

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
Note
The searchableSurface must describe a closed volume. Ie, its hasVolumeType() method must be true.

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.

Source files

Definition at line 131 of file geometricConstraint.H.

Constructor & Destructor Documentation

◆ geometric() [1/2]

geometric ( const dictionary dict)
explicit

Construct with constraint dictionary.

Definition at line 56 of file geometricConstraint.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Info.

Here is the call graph for this function:

◆ geometric() [2/2]

geometric ( PtrList< topoSetFaceSource > &&  selections)
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.

Here is the call graph for this function:

◆ ~geometric()

virtual ~geometric ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "geometric"  )

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 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.

Here is the call graph for this function:

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