FreeFOAM The Cross-Platform CFD Toolkit
layerAdditionRemoval Class Reference

Cell layer addition mesh modifier. More...

#include <dynamicMesh/layerAdditionRemoval.H>


Detailed Description

+ Inheritance diagram for layerAdditionRemoval:
+ Collaboration diagram for layerAdditionRemoval:

List of all members.

Public Member Functions

 TypeName ("layerAdditionRemoval")
 Runtime type information.
 layerAdditionRemoval (const word &name, const label index, const polyTopoChanger &mme, const word &zoneName, const scalar minThickness, const scalar maxThickness)
 Construct from components.
 layerAdditionRemoval (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
 Construct from dictionary.
virtual ~layerAdditionRemoval ()
virtual bool changeTopology () const
 Check for topology change.
virtual void setRefinement (polyTopoChange &) const
 Insert the layer addition/removal instructions.
virtual void modifyMotionPoints (pointField &motionPoints) const
 Modify motion points to comply with the topological change.
virtual void updateMesh (const mapPolyMesh &)
 Force recalculation of locally stored data on topological change.
scalar minLayerThickness () const
 Return min layer thickness which triggers removal.
void setMinLayerThickness (const scalar t) const
 Set min layer thickness which triggers removal.
scalar maxLayerThickness () const
 Return max layer thickness which triggers removal.
void setMaxLayerThickness (const scalar t) const
 Set max layer thickness which triggers removal.
virtual void write (Ostream &) const
 Write.
virtual void writeDict (Ostream &) const
 Write dictionary.
- Public Member Functions inherited from polyMeshModifier
 TypeName ("meshModifier")
 Runtime type information.
 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.
virtual ~polyMeshModifier ()
const wordname () const
 Return name.
label index () const
 Return the index of this patch in the boundaryMesh.
const polyTopoChangertopoChanger () const
 Return reference to morph engine.
const Switchactive () const
void enable () const
 Activate mesh modifier.
void disable () const
 Activate mesh modifier.

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.

Constructor & Destructor Documentation

layerAdditionRemoval ( const word name,
const label  index,
const polyTopoChanger mme,
const word zoneName,
const scalar  minThickness,
const scalar  maxThickness 
)

Construct from components.

Definition at line 120 of file layerAdditionRemoval.C.

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

Construct from dictionary.

Definition at line 145 of file layerAdditionRemoval.C.

~layerAdditionRemoval ( )
virtual

Definition at line 168 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 368 of file layerAdditionRemoval.C.

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

void modifyMotionPoints ( pointField motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 208 of file setLayerPairing.C.

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

void updateMesh ( const mapPolyMesh )
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 407 of file layerAdditionRemoval.C.

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

scalar minLayerThickness ( ) const
inline

Return min layer thickness which triggers removal.

Definition at line 192 of file layerAdditionRemoval.H.

void setMinLayerThickness ( const scalar  t) const

Set min layer thickness which triggers removal.

Definition at line 432 of file layerAdditionRemoval.C.

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

scalar maxLayerThickness ( ) const
inline

Return max layer thickness which triggers removal.

Definition at line 201 of file layerAdditionRemoval.H.

void setMaxLayerThickness ( const scalar  t) const

Set max layer thickness which triggers removal.

Definition at line 452 of file layerAdditionRemoval.C.

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

void write ( Ostream os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 471 of file layerAdditionRemoval.C.

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

void writeDict ( Ostream os) const
virtual

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