OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

polyMeshModifier Class Reference

Virtual base class for mesh modifiers. More...

Inheritance diagram for polyMeshModifier:
Collaboration 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 &)

Detailed Description

Virtual base class for mesh modifiers.

Source files

Definition at line 57 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 40 of file polyMeshModifier.C.

~polyMeshModifier (  )  [virtual]

Definition at line 56 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 29 of file newPolyMeshModifier.C.

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

Here is the call graph for this function:

const word& name (  )  const [inline]

Return name.

Definition at line 140 of file polyMeshModifier.H.

label index (  )  const [inline]

Return the index of this patch in the boundaryMesh.

Definition at line 146 of file polyMeshModifier.H.

const Foam::polyTopoChanger & topoChanger (  )  const

Return reference to morph engine.

Definition at line 62 of file polyMeshModifier.C.

virtual bool changeTopology (  )  const [pure virtual]

virtual void setRefinement ( polyTopoChange  )  const [pure virtual]

Insert the topological change instructions.

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

virtual void modifyMotionPoints ( pointField motionPoints  )  const [pure virtual]

Modify motion points to comply with the topological change.

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

virtual void updateMesh ( const mapPolyMesh  )  [pure virtual]

Force recalculation of locally stored data on topological change.

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

const Switch& active (  )  const [inline]

Definition at line 169 of file polyMeshModifier.H.

void enable (  )  const [inline]

Activate mesh modifier.

Definition at line 175 of file polyMeshModifier.H.

void disable (  )  const [inline]

Activate mesh modifier.

Definition at line 181 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:
Copyright © 2000-2009 OpenCFD Ltd