Public Member Functions | Static Public Member Functions | Friends | List of all members
polyMeshModifier Class Referenceabstract

Virtual base class for mesh modifiers. More...

Inheritance diagram for polyMeshModifier:
Inheritance graph
[legend]

Public Member Functions

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

Static Public Member Functions

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

Friends

Ostreamoperator<< (Ostream &, const polyMeshModifier &)
 

Detailed Description

Virtual base class for mesh modifiers.

Source files

Definition at line 61 of file polyMeshModifier.H.

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

Destructor.

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

Select constructed from dictionary.

Definition at line 32 of file polyMeshModifierNew.C.

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

Here is the call graph for this function:

const word& name ( ) const
inline

Return name of this modifier.

Definition at line 143 of file polyMeshModifier.H.

Referenced by layerAdditionRemoval::modifyMotionPoints(), and attachDetach::modifyMotionPoints().

Here is the caller graph for this function:

label index ( ) const
inline

Return the index of this modifier.

Definition at line 149 of file polyMeshModifier.H.

References polyMeshModifier::changeTopology(), polyMeshModifier::modifyMotionPoints(), polyMeshModifier::setRefinement(), polyMeshModifier::topoChanger(), and polyMeshModifier::updateMesh().

Here is the call graph for this function:

const Foam::polyTopoChanger & topoChanger ( ) const

Return reference to morph engine.

Definition at line 69 of file polyMeshModifier.C.

References IOstream::check(), Foam::operator<<(), and polyMeshModifier::write().

Referenced by polyMeshModifier::index().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool changeTopology ( ) const
pure virtual

Check for topology change.

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

Referenced by polyMeshModifier::index().

Here is the caller graph for this function:

virtual void setRefinement ( polyTopoChange ) const
pure virtual

Insert the topological change instructions.

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

Referenced by polyMeshModifier::index().

Here is the caller graph for this function:

virtual void modifyMotionPoints ( pointField motionPoints) const
pure virtual

Modify motion points to comply with the topological change.

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

Referenced by polyMeshModifier::index().

Here is the caller graph for this function:

virtual void updateMesh ( const mapPolyMesh )
pure virtual

Force recalculation of locally stored data on topological change.

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

Referenced by polyMeshModifier::index().

Here is the caller graph for this function:

const Switch& active ( ) const
inline

Definition at line 172 of file polyMeshModifier.H.

void enable ( ) const
inline

Activate mesh modifier.

Definition at line 178 of file polyMeshModifier.H.

void disable ( ) const
inline

Activate mesh modifier.

Definition at line 184 of file polyMeshModifier.H.

References polyMeshModifier::operator<<, polyMeshModifier::write(), and polyMeshModifier::writeDict().

Here is the call graph for this function:

virtual void write ( Ostream ) const
pure virtual

Write.

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

Referenced by polyMeshModifier::disable(), and polyMeshModifier::topoChanger().

Here is the caller graph for this function:

virtual void writeDict ( Ostream ) const
pure virtual

Write dictionary.

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

Referenced by polyMeshModifier::disable().

Here is the caller graph for this function:

Friends And Related Function Documentation

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

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