FreeFOAM The Cross-Platform CFD Toolkit
polyMeshModifier Class Reference

Virtual base class for mesh modifiers. More...

#include <dynamicMesh/polyMeshModifier.H>


Detailed Description

+ Inheritance diagram for polyMeshModifier:

List of all members.

Public Member Functions

 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.
virtual bool changeTopology () const =0
 Check for topology change.
virtual void setRefinement (polyTopoChange &) const =0
 Insert the topological change instructions.
virtual void modifyMotionPoints (pointField &motionPoints) const =0
 Modify motion points to comply with the topological change.
virtual void updateMesh (const mapPolyMesh &)=0
 Force recalculation of locally stored data on topological change.
const Switchactive () const
void enable () const
 Activate mesh modifier.
void disable () const
 Activate mesh modifier.
virtual void write (Ostream &) const =0
 Write.
virtual void writeDict (Ostream &) const =0
 Write dictionary.

Static Public Member Functions

static autoPtr< polyMeshModifierNew (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
 Select constructed from dictionary.

Friends

Ostreamoperator<< (Ostream &, const polyMeshModifier &)

Constructor & Destructor Documentation

polyMeshModifier ( const word name,
const label  index,
const polyTopoChanger mme,
const bool  act 
)

Construct from components.

Definition at line 47 of file polyMeshModifier.C.

~polyMeshModifier ( )
virtual

Definition at line 63 of file polyMeshModifier.C.


Member Function Documentation

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)   
)
autoPtr< polyMeshModifier > New ( const word name,
const dictionary dict,
const label  index,
const polyTopoChanger mme 
)
static

Select constructed from dictionary.

Definition at line 37 of file newPolyMeshModifier.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, Foam::Info, dictionary::lookup(), and Foam::name().

const word& name ( ) const
inline

Return name.

Definition at line 145 of file polyMeshModifier.H.

label index ( ) const
inline

Return the index of this patch in the boundaryMesh.

Definition at line 151 of file polyMeshModifier.H.

const Foam::polyTopoChanger & topoChanger ( ) const

Return reference to morph engine.

Definition at line 69 of file polyMeshModifier.C.

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

Insert the topological change instructions.

Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, errorDrivenRefinement, and setUpdater.

virtual void modifyMotionPoints ( pointField motionPoints) const
pure virtual

Modify motion points to comply with the topological change.

Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, errorDrivenRefinement, and setUpdater.

virtual void updateMesh ( const mapPolyMesh )
pure virtual

Force recalculation of locally stored data on topological change.

Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, errorDrivenRefinement, and setUpdater.

const Switch& active ( ) const
inline

Definition at line 174 of file polyMeshModifier.H.

void enable ( ) const
inline

Activate mesh modifier.

Definition at line 180 of file polyMeshModifier.H.

void disable ( ) const
inline

Activate mesh modifier.

Definition at line 186 of file polyMeshModifier.H.

virtual void write ( Ostream ) const
pure virtual
virtual void writeDict ( Ostream ) const
pure virtual

Friends And Related Function Documentation

Ostream& operator<< ( Ostream ,
const polyMeshModifier  
)
friend

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