layerAdditionRemoval Class Reference

Cell layer addition mesh modifier. More...

Inheritance diagram for layerAdditionRemoval:
Collaboration diagram for layerAdditionRemoval:

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 Switch thicknessFromVolume=true)
 Construct from components. More...
 
 layerAdditionRemoval (const word &name, const dictionary &dict, const label index, const polyTopoChanger &ptc)
 Construct from dictionary. More...
 
 layerAdditionRemoval (const layerAdditionRemoval &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~layerAdditionRemoval ()
 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 topoChange (const polyTopoChangeMap &)
 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...
 
void operator= (const layerAdditionRemoval &)=delete
 Disallow default bitwise assignment. 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...
 
 polyMeshModifier (const polyMeshModifier &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~polyMeshModifier ()
 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...
 
const Switchactive () const
 
void enable () const
 Activate mesh modifier. More...
 
void disable () const
 Activate mesh modifier. More...
 
void operator= (const polyMeshModifier &)=delete
 Disallow default bitwise assignment. 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 52 of file layerAdditionRemoval.H.

Constructor & Destructor Documentation

◆ layerAdditionRemoval() [1/3]

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

Construct from components.

Definition at line 136 of file layerAdditionRemoval.C.

◆ layerAdditionRemoval() [2/3]

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

Construct from dictionary.

Definition at line 162 of file layerAdditionRemoval.C.

◆ layerAdditionRemoval() [3/3]

Disallow default bitwise copy construction.

◆ ~layerAdditionRemoval()

~layerAdditionRemoval ( )
virtual

Destructor.

Definition at line 189 of file layerAdditionRemoval.C.

Member Function Documentation

◆ TypeName()

TypeName ( "layerAdditionRemoval"  )

Runtime type information.

◆ changeTopology()

◆ setRefinement()

void setRefinement ( polyTopoChange ref) const
virtual

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 395 of file layerAdditionRemoval.C.

References Foam::endl(), mesh, Foam::name(), Foam::Pout, 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 214 of file setLayerPairing.C.

References Foam::endl(), polyMeshModifier::name(), and Foam::Pout.

Here is the call graph for this function:

◆ topoChange()

void topoChange ( const polyTopoChangeMap )
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 434 of file layerAdditionRemoval.C.

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

References layerAdditionRemoval::setMinLayerThickness().

Here is the call graph for this function:

◆ setMinLayerThickness()

void setMinLayerThickness ( const scalar  t) const

Set min layer thickness which triggers removal.

Definition at line 459 of file layerAdditionRemoval.C.

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

Referenced by layerAdditionRemoval::minLayerThickness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ maxLayerThickness()

scalar maxLayerThickness ( ) const
inline

Return max layer thickness which triggers removal.

Definition at line 202 of file layerAdditionRemoval.H.

References layerAdditionRemoval::operator=(), layerAdditionRemoval::setMaxLayerThickness(), layerAdditionRemoval::write(), and layerAdditionRemoval::writeDict().

Here is the call graph for this function:

◆ setMaxLayerThickness()

void setMaxLayerThickness ( const scalar  t) const

Set max layer thickness which triggers removal.

Definition at line 472 of file layerAdditionRemoval.C.

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

Referenced by layerAdditionRemoval::maxLayerThickness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 485 of file layerAdditionRemoval.C.

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

Referenced by layerAdditionRemoval::maxLayerThickness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeDict()

void writeDict ( Ostream os) const
virtual

Write dictionary.

Implements polyMeshModifier.

Definition at line 497 of file layerAdditionRemoval.C.

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

Referenced by layerAdditionRemoval::maxLayerThickness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const layerAdditionRemoval )
delete

Disallow default bitwise assignment.

Referenced by layerAdditionRemoval::maxLayerThickness().

Here is the caller graph for this function:

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