layerAdditionRemoval Class Reference

Cell layer addition mesh modifier. More...

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

Public Member Functions

 TypeName ("layerAdditionRemoval")
 Runtime type information. More...
 
 layerAdditionRemoval (const word &name, const label index, const polyTopoChanger &ptc, const word &zoneName, const scalar minThickness, const scalar maxThickness, const bool thicknessFromVolume=true)
 Construct from components. More...
 
 layerAdditionRemoval (const word &name, const dictionary &dict, const label index, const polyTopoChanger &ptc)
 Construct from dictionary. More...
 
virtual ~layerAdditionRemoval ()=default
 Destructor. More...
 
virtual bool changeTopology () const
 Check for topology change. More...
 
virtual void setRefinement (polyTopoChange &) const
 Insert the layer addition/removal instructions. More...
 
virtual void modifyMotionPoints (pointField &motionPoints) const
 Modify motion points to comply with the topological change. More...
 
virtual void updateMesh (const mapPolyMesh &)
 Force recalculation of locally stored data on topological change. More...
 
scalar minLayerThickness () const
 Return min layer thickness which triggers removal. More...
 
void setMinLayerThickness (const scalar t) const
 Set min layer thickness which triggers removal. More...
 
scalar maxLayerThickness () const
 Return max layer thickness which triggers removal. More...
 
void setMaxLayerThickness (const scalar t) const
 Set max layer thickness which triggers removal. More...
 
virtual void write (Ostream &) const
 Write. More...
 
virtual void writeDict (Ostream &) const
 Write dictionary. More...
 
- Public Member Functions inherited from polyMeshModifier
 TypeName ("meshModifier")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, polyMeshModifier, dictionary,(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme),(name, dict, index, mme))
 
 polyMeshModifier (const word &name, const label index, const polyTopoChanger &mme, const bool act)
 Construct from components. More...
 
virtual ~polyMeshModifier ()=default
 Destructor. More...
 
const wordname () const
 Return name of this modifier. More...
 
label index () const
 Return the index of this modifier. More...
 
const polyTopoChangertopoChanger () const
 Return reference to morph engine. More...
 
Switch active () const
 If modifier activate? More...
 
void enable () const
 Activate mesh modifier. More...
 
void disable () const
 Activate mesh modifier. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from polyMeshModifier
static autoPtr< polyMeshModifierNew (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
 Select constructed from dictionary. More...
 

Detailed Description

Cell layer addition mesh modifier.

Source files

Definition at line 55 of file layerAdditionRemoval.H.

Constructor & Destructor Documentation

◆ layerAdditionRemoval() [1/2]

layerAdditionRemoval ( const word name,
const label  index,
const polyTopoChanger ptc,
const word zoneName,
const scalar  minThickness,
const scalar  maxThickness,
const bool  thicknessFromVolume = true 
)

Construct from components.

Definition at line 108 of file layerAdditionRemoval.C.

◆ layerAdditionRemoval() [2/2]

layerAdditionRemoval ( const word name,
const dictionary dict,
const label  index,
const polyTopoChanger ptc 
)

Construct from dictionary.

Definition at line 134 of file layerAdditionRemoval.C.

◆ ~layerAdditionRemoval()

virtual ~layerAdditionRemoval ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "layerAdditionRemoval"  )

Runtime type information.

◆ changeTopology()

bool changeTopology ( ) const
virtual

◆ setRefinement()

void setRefinement ( polyTopoChange ref) const
virtual

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 356 of file layerAdditionRemoval.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), mesh, Foam::name(), Foam::Pout, ref(), and timeIndex.

Here is the call graph for this function:

◆ modifyMotionPoints()

void modifyMotionPoints ( pointField motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 216 of file setLayerPairing.C.

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

Here is the call graph for this function:

◆ updateMesh()

void updateMesh ( const mapPolyMesh )
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 395 of file layerAdditionRemoval.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), mesh, Foam::name(), and Foam::Pout.

Here is the call graph for this function:

◆ minLayerThickness()

scalar minLayerThickness ( ) const
inline

Return min layer thickness which triggers removal.

Definition at line 193 of file layerAdditionRemoval.H.

◆ setMinLayerThickness()

void setMinLayerThickness ( const scalar  t) const

Set min layer thickness which triggers removal.

Definition at line 420 of file layerAdditionRemoval.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ maxLayerThickness()

scalar maxLayerThickness ( ) const
inline

Return max layer thickness which triggers removal.

Definition at line 202 of file layerAdditionRemoval.H.

◆ setMaxLayerThickness()

void setMaxLayerThickness ( const scalar  t) const

Set max layer thickness which triggers removal.

Definition at line 433 of file layerAdditionRemoval.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 446 of file layerAdditionRemoval.C.

References Foam::endl(), Foam::name(), Foam::nl, os(), and Foam::type().

Here is the call graph for this function:

◆ writeDict()

void writeDict ( Ostream os) const
virtual

Write dictionary.

Implements polyMeshModifier.

Definition at line 458 of file layerAdditionRemoval.C.

References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::name(), Foam::nl, os(), and Foam::type().

Here is the call graph for this function:

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