FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

polyTopoChanger Class Reference

List of mesh modifiers defining the mesh dynamics. More...

#include <dynamicMesh/polyTopoChanger.H>


Detailed Description

List of mesh modifiers defining the mesh dynamics.

Source files

Definition at line 57 of file polyTopoChanger.H.

Inheritance diagram for polyTopoChanger:
Collaboration diagram for polyTopoChanger:

List of all members.

Public Member Functions

 TypeName ("polyTopoChanger")
 Runtime type information.
 polyTopoChanger (const IOobject &, polyMesh &)
 Read constructor given IOobject and a polyMesh.
 polyTopoChanger (polyMesh &)
 Read constructor for given polyMesh.
virtual  ~polyTopoChanger ()
const polyMesh &  mesh () const
 Return the mesh reference.
wordList  types () const
 Return a list of patch types.
wordList  names () const
 Return a list of patch names.
bool  changeTopology () const
 Is topology change required.
autoPtr< polyTopoChange >  topoChangeRequest () const
 Return topology change request.
void  modifyMotionPoints (pointField &) const
 Modify point motion.
autoPtr< mapPolyMesh >  changeMesh (const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
void  update (const mapPolyMesh &m)
 Force recalculation of locally stored data on topological change.
void  addTopologyModifiers (const List< polyMeshModifier * > &tm)
 Add given set of topology modifiers to the topoChanger.
label  findModifierID (const word &modName) const
 Find modifier given a name.
bool  writeData (Ostream &) const
 writeData member function required by regIOobject
bool  operator!= (const polyTopoChanger &) const
bool  operator== (const polyTopoChanger &) const

Protected Attributes

polyMesh &  mesh_
 Reference to mesh.

Friends

Ostream &  operator<< (Ostream &, const polyTopoChanger &)

Constructor & Destructor Documentation

polyTopoChanger ( const IOobject &   io,
polyMesh &   mesh  
)

Read constructor given IOobject and a polyMesh.

Definition at line 86 of file polyTopoChanger.C.

polyTopoChanger ( polyMesh &   mesh  ) [explicit]

Read constructor for given polyMesh.

Definition at line 100 of file polyTopoChanger.C.

virtual ~polyTopoChanger (  ) [inline, virtual]

Definition at line 97 of file polyTopoChanger.H.


Member Function Documentation

TypeName ( "polyTopoChanger"    )

Runtime type information.

const polyMesh& mesh (  ) const [inline]

Return the mesh reference.

Definition at line 104 of file polyTopoChanger.H.

References polyTopoChanger::mesh_.

Foam::wordList types (  ) const

Return a list of patch types.

Definition at line 127 of file polyTopoChanger.C.

References forAll, and PtrList< T >::size().

Foam::wordList names (  ) const

Return a list of patch names.

Definition at line 143 of file polyTopoChanger.C.

References forAll, and PtrList< T >::size().

bool changeTopology (  ) const

Is topology change required.

Definition at line 159 of file polyTopoChanger.C.

References Foam::endl(), forAll, and Foam::Info.

Foam::autoPtr< Foam::polyTopoChange > topoChangeRequest (  ) const

Return topology change request.

Definition at line 206 of file polyTopoChanger.C.

References forAll, and mesh.

void modifyMotionPoints ( pointField &   p  ) const

Modify point motion.

Definition at line 227 of file polyTopoChanger.C.

References forAll.

Foam::autoPtr< Foam::mapPolyMesh > changeMesh ( const bool   inflate,
const bool   syncParallel = true,
const bool   orderCells = false,
const bool   orderPoints = false  
)

Definition at line 261 of file polyTopoChanger.C.

Referenced by attachPolyTopoChanger::attach().

void update ( const mapPolyMesh &   m  )

Force recalculation of locally stored data on topological change.

Definition at line 242 of file polyTopoChanger.C.

References IOobject::AUTO_WRITE, and forAll.

void addTopologyModifiers ( const List< polyMeshModifier * > &   tm  )

Add given set of topology modifiers to the topoChanger.

Definition at line 294 of file polyTopoChanger.C.

References Foam::abort(), IOobject::AUTO_WRITE, Foam::FatalError, FatalErrorIn, forAll, setSize(), and List< T >::size().

Foam::label findModifierID ( const word &   modName  ) const

Find modifier given a name.

Definition at line 320 of file polyTopoChanger.C.

References Foam::endl(), forAll, Foam::Info, and Foam::name().

bool writeData ( Ostream &   os  ) const [virtual]

writeData member function required by regIOobject

Implements regIOobject.

Definition at line 349 of file polyTopoChanger.C.

References IOstream::good().

bool operator!= ( const polyTopoChanger &   me  ) const

Definition at line 358 of file polyTopoChanger.C.

bool operator== ( const polyTopoChanger &   me  ) const

Definition at line 364 of file polyTopoChanger.C.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &   ,
const polyTopoChanger &    
) [friend]

Member Data Documentation

polyMesh& mesh_ [protected]

Reference to mesh.

Definition at line 78 of file polyTopoChanger.H.

Referenced by attachPolyTopoChanger::attach(), and polyTopoChanger::mesh().


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