OpenFOAM logo
Open Source CFD Toolkit

polyTopoChanger Class Reference

Inheritance diagram for polyTopoChanger:

Inheritance graph
[legend]
Collaboration diagram for polyTopoChanger:

Collaboration graph
[legend]
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 ()
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

Static Public Member Functions

autoPtr< mapPolyMesh > changeMesh (polyMesh &, const polyTopoChange &)

Static Protected Member Functions

face rotateFace (const face &f, const label nShift)
 Rotate a face nShift positions in anticlockwise direction.
bool reorderCoupledPatches (const polyBoundaryMesh &boundary, const labelList &patchStarts, const labelList &patchSizes, const faceList &faces, const pointField &points, labelList &faceMap, labelList &rotation)
 Determine ordering of faces in coupled patches.

Protected Attributes

polyMesh & mesh_
 Reference to mesh.

Friends

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

Constructor & Destructor Documentation

polyTopoChanger (  const IOobject &  ,
polyMesh & 
) 
 

Read constructor given IOobject and a polyMesh.

polyTopoChanger (  polyMesh &   )  [explicit]
 

Read constructor for given polyMesh.

virtual ~polyTopoChanger (   )  [inline, virtual]
 

Definition at line 131 of file polyTopoChanger.H.


Member Function Documentation

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

Add given set of topology modifiers to the topoChanger.

autoPtr<mapPolyMesh> changeMesh (   ) 
 

autoPtr<mapPolyMesh> changeMesh (  polyMesh &  ,
const polyTopoChange & 
)  [static]
 

bool changeTopology (   )  const
 

Is topology change required.

label findModifierID (  const word &  modName  )  const
 

Find modifier given a name.

const polyMesh& mesh (   )  const [inline]
 

Return the mesh reference.

Definition at line 138 of file polyTopoChanger.H.

References Foam::label, Foam::pointField, and Foam::wordList.

void modifyMotionPoints (  pointField &   )  const
 

Modify point motion.

wordList names (   )  const
 

Return a list of patch names.

bool operator!= (  const polyTopoChanger &   )  const
 

bool operator== (  const polyTopoChanger &   )  const
 

bool reorderCoupledPatches (  const polyBoundaryMesh &  boundary,
const labelList &  patchStarts,
const labelList &  patchSizes,
const faceList &  faces,
const pointField &  points,
labelList &  faceMap,
labelList &  rotation
)  [static, protected]
 

Determine ordering of faces in coupled patches.

Calculate mapping to shuffle faces inside coupled patches and rotation to make 0th vertex in faces align.

face rotateFace (  const face &  f,
const label  nShift
)  [static, protected]
 

Rotate a face nShift positions in anticlockwise direction.

autoPtr<polyTopoChange> topoChangeRequest (   )  const
 

Return topology change request.

TypeName (  "polyTopoChanger"   ) 
 

Runtime type information.

wordList types (   )  const
 

Return a list of patch types.

void update (  const mapPolyMesh &  m  ) 
 

Force recalculation of locally stored data on topological change.

bool writeData (  Ostream &   )  const [virtual]
 

writeData member function required by regIOobject

Implements regIOobject.


Friends And Related Function Documentation

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


Member Data Documentation

polyMesh& mesh_ [protected]
 

Reference to mesh.

Definition at line 86 of file polyTopoChanger.H.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org