Loading...
Searching...
No Matches
refinementHistory Class Reference

Constraint to keep all cells originating from refining the same cell onto the same processor. Reads polyMesh/refinementHistory. More...

#include <refinementHistoryConstraint.H>

Inheritance diagram for refinementHistory:
Collaboration diagram for refinementHistory:

Public Member Functions

 TypeName ("refinementHistory")
 Runtime type information.
 refinementHistory (const dictionary &dict)
 Construct with constraint dictionary.
 refinementHistory ()
 Construct from components.
virtual ~refinementHistory ()=default
 Destructor.
virtual void add (const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
 Add this constraint to list of constraints.
virtual void apply (const polyMesh &mesh, const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &decomposition) const
 Apply this constraint post-decomposition.
Public Member Functions inherited from decompositionConstraint
 TypeName ("decompositionConstraint")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, decompositionConstraint, dictionary,(const dictionary &dict),(dict))
 decompositionConstraint (const dictionary &constraintDict)
 Construct with constraint dictionary.
 decompositionConstraint (const dictionary &constraintDict, const word &modelType)
 Construct with constraint dictionary and model type.
virtual ~decompositionConstraint ()=default
 Destructor.

Additional Inherited Members

Static Public Member Functions inherited from decompositionConstraint
static autoPtr< decompositionConstraintNew (const dictionary &constraintDict)
 Return a reference to the selected decompositionConstraint.
static autoPtr< decompositionConstraintNew (const dictionary &constraintDict, const word &modelType)
 Return a reference to the selected decompositionConstraint.
Protected Member Functions inherited from decompositionConstraint
void getMinBoundaryValue (const polyMesh &mesh, const labelList &decomposition, labelList &destProc) const
 Get minimum label across coupled boundary faces.
 decompositionConstraint (const decompositionConstraint &)=delete
 No copy construct.
void operator= (const decompositionConstraint &)=delete
 No copy assignment.
Protected Attributes inherited from decompositionConstraint
dictionary coeffDict_
 Constraint coefficients dictionary.

Detailed Description

Constraint to keep all cells originating from refining the same cell onto the same processor. Reads polyMesh/refinementHistory.


Dictionary parameters

Property Description Required Default
type refinementHistory yes
Source files

Definition at line 66 of file refinementHistoryConstraint.H.

Constructor & Destructor Documentation

◆ refinementHistory() [1/2]

refinementHistory ( const dictionary & dict)
explicit

Construct with constraint dictionary.

Definition at line 47 of file refinementHistoryConstraint.C.

References decompositionConstraint::decompositionConstraint(), dict, Foam::endl(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::Info, and Foam::type().

Here is the call graph for this function:

◆ refinementHistory() [2/2]

refinementHistory ( )

Construct from components.

Definition at line 62 of file refinementHistoryConstraint.C.

References decompositionConstraint::decompositionConstraint(), Foam::endl(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::Info, and Foam::type().

Here is the call graph for this function:

◆ ~refinementHistory()

virtual ~refinementHistory ( )
virtualdefault

Destructor.

References mesh.

Member Function Documentation

◆ TypeName()

TypeName ( "refinementHistory" )

Runtime type information.

References dict.

◆ 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 76 of file refinementHistoryConstraint.C.

References Foam::endl(), autoPtr< T >::get(), Foam::Info, mesh, polyMesh::meshSubDir, IOobjectOption::NO_WRITE, IOobjectOption::READ_IF_PRESENT, autoPtr< T >::reset(), 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 this constraint post-decomposition.

Reimplemented from decompositionConstraint.

Definition at line 145 of file refinementHistoryConstraint.C.

References autoPtr< T >::get(), mesh, polyMesh::meshSubDir, IOobjectOption::NO_WRITE, IOobjectOption::READ_IF_PRESENT, and autoPtr< T >::reset().

Here is the call graph for this function:

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