Public Member Functions | List of all members
layerAdditionRemoval Class Reference

Cell layer addition mesh modifier. More...

Inheritance diagram for layerAdditionRemoval:
Inheritance graph
[legend]
Collaboration diagram for layerAdditionRemoval:
Collaboration graph
[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 Switch 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 ()
 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 ()
 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...
 

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 ( 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 138 of file layerAdditionRemoval.C.

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

Construct from dictionary.

Definition at line 164 of file layerAdditionRemoval.C.

~layerAdditionRemoval ( )
virtual

Destructor.

Definition at line 191 of file layerAdditionRemoval.C.

Member Function Documentation

TypeName ( "layerAdditionRemoval"  )

Runtime type information.

bool changeTopology ( ) const
virtual
void setRefinement ( polyTopoChange ref) const
virtual

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 397 of file layerAdditionRemoval.C.

References Foam::endl(), mesh, Foam::name(), Foam::Pout, and timeIndex.

Here is the call graph for this function:

void modifyMotionPoints ( pointField motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 220 of file setLayerPairing.C.

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

Here is the call graph for this function:

void updateMesh ( const mapPolyMesh )
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 436 of file layerAdditionRemoval.C.

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

Here is the call graph for this function:

scalar minLayerThickness ( ) const
inline

Return min layer thickness which triggers removal.

Definition at line 196 of file layerAdditionRemoval.H.

References layerAdditionRemoval::setMinLayerThickness().

Here is the call graph for this function:

void setMinLayerThickness ( const scalar  t) const

Set min layer thickness which triggers removal.

Definition at line 461 of file layerAdditionRemoval.C.

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

Referenced by layerAdditionRemoval::minLayerThickness().

Here is the call graph for this function:

Here is the caller graph for this function:

scalar maxLayerThickness ( ) const
inline

Return max layer thickness which triggers removal.

Definition at line 205 of file layerAdditionRemoval.H.

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

Here is the call graph for this function:

void setMaxLayerThickness ( const scalar  t) const

Set max layer thickness which triggers removal.

Definition at line 479 of file layerAdditionRemoval.C.

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

Referenced by layerAdditionRemoval::maxLayerThickness().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 497 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:

void writeDict ( Ostream os) const
virtual

Write dictionary.

Implements polyMeshModifier.

Definition at line 509 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:


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