OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

polyTopoChange Class Reference

Collaboration diagram for polyTopoChange:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 107 of file polyTopoChange.H.


Public Member Functions

 ClassName ("polyTopoChange")
 Runtime type information.
 polyTopoChange (const polyMesh &mesh, const bool strict=true)
 Construct from mesh. Adds all points/face/cells from mesh.
const DynamicList< point > & points () const
 Points. Shrunk after constructing mesh (or calling of compact()).
const DynamicList< face > & faces () const
const DynamicList< label > & region () const
const DynamicList< label > & faceOwner () const
const DynamicList< label > & faceNeighbour () const
bool pointRemoved (const label pointI) const
 Is point removed?
bool faceRemoved (const label faceI) const
 Is face removed?
bool cellRemoved (const label cellI) const
 Is cell removed?
void clear ()
 Clear all storage.
void addMesh (const polyMesh &, const labelList &patchMap, const labelList &pointZoneMap, const labelList &faceZoneMap, const labelList &cellZoneMap)
 Add all points/faces/cells of mesh. Additional offset for patch.
void movePoints (const pointField &newPoints)
 Move all points. Incompatible with other topology changes.
label setAction (const topoAction &action)
 For compatibility with polyTopoChange: set topological action.
label addPoint (const point &, const label masterPointID, const label zoneID, const bool inCell)
 Add point. Return new point label.
void modifyPoint (const label, const point &, const label newZoneID, const bool inCell)
 Modify coordinate.
void removePoint (const label, const label)
 Remove/merge point.
label addFace (const face &f, const label own, const label nei, const label masterPointID, const label masterEdgeID, const label masterFaceID, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip)
 Add face to cells. Return new face label.
void modifyFace (const face &f, const label faceI, const label own, const label nei, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip)
 Modify vertices or cell of face.
void removeFace (const label, const label)
 Remove/merge face.
label addCell (const label masterPointID, const label masterEdgeID, const label masterFaceID, const label masterCellID, const label zoneID)
 Add cell. Return new cell label.
void modifyCell (const label, const label zoneID)
 Modify zone of cell.
void removeCell (const label, const label)
 Remove/merge cell.
autoPtr< mapPolyMesh > changeMesh (polyMesh &mesh, const bool inflate, const bool syncParallel=true)
 Inplace changes mesh without change of patches.
autoPtr< mapPolyMesh > makeMesh (autoPtr< fvMesh > &newMesh, const IOobject &io, const fvMesh &mesh, const bool syncParallel=true)
 Create new mesh with old mesh patches.

Constructor & Destructor Documentation

polyTopoChange ( const polyMesh &  mesh,
const bool  strict = true 
)

Construct from mesh. Adds all points/face/cells from mesh.


Member Function Documentation

ClassName ( "polyTopoChange"   ) 

Runtime type information.

const DynamicList<point>& points (  )  const [inline]

Points. Shrunk after constructing mesh (or calling of compact()).

Definition at line 497 of file polyTopoChange.H.

const DynamicList<face>& faces (  )  const [inline]

Definition at line 502 of file polyTopoChange.H.

const DynamicList<label>& region (  )  const [inline]

Definition at line 507 of file polyTopoChange.H.

const DynamicList<label>& faceOwner (  )  const [inline]

Definition at line 512 of file polyTopoChange.H.

const DynamicList<label>& faceNeighbour (  )  const [inline]

Definition at line 517 of file polyTopoChange.H.

bool pointRemoved ( const label  pointI  )  const [inline]

Is point removed?

Definition at line 35 of file polyTopoChangeI.H.

bool faceRemoved ( const label  faceI  )  const [inline]

Is face removed?

Definition at line 46 of file polyTopoChangeI.H.

bool cellRemoved ( const label  cellI  )  const [inline]

Is cell removed?

Definition at line 52 of file polyTopoChangeI.H.

void clear (  ) 

Clear all storage.

void addMesh ( const polyMesh &  ,
const labelList &  patchMap,
const labelList &  pointZoneMap,
const labelList &  faceZoneMap,
const labelList &  cellZoneMap 
)

Add all points/faces/cells of mesh. Additional offset for patch.

or zone ids.

void movePoints ( const pointField &  newPoints  ) 

Move all points. Incompatible with other topology changes.

label setAction ( const topoAction &  action  ) 

For compatibility with polyTopoChange: set topological action.

label addPoint ( const point &  ,
const label  masterPointID,
const label  zoneID,
const bool  inCell 
)

Add point. Return new point label.

Notes:

  • masterPointID can be < 0 (appended points)
  • inCell = false: add retired point (to end of point list)

void modifyPoint ( const   label,
const point &  ,
const label  newZoneID,
const bool  inCell 
)

Modify coordinate.

Notes:

  • inCell = false: add retired point (to end of point list)

void removePoint ( const   label,
const   label 
)

Remove/merge point.

label addFace ( const face &  f,
const label  own,
const label  nei,
const label  masterPointID,
const label  masterEdgeID,
const label  masterFaceID,
const bool  flipFaceFlux,
const label  patchID,
const label  zoneID,
const bool  zoneFlip 
)

Add face to cells. Return new face label.

own,nei<0, zoneID>=0 : add inactive face (to end of face list)

void modifyFace ( const face &  f,
const label  faceI,
const label  own,
const label  nei,
const bool  flipFaceFlux,
const label  patchID,
const label  zoneID,
const bool  zoneFlip 
)

Modify vertices or cell of face.

void removeFace ( const   label,
const   label 
)

Remove/merge face.

label addCell ( const label  masterPointID,
const label  masterEdgeID,
const label  masterFaceID,
const label  masterCellID,
const label  zoneID 
)

Add cell. Return new cell label.

void modifyCell ( const   label,
const label  zoneID 
)

Modify zone of cell.

void removeCell ( const   label,
const   label 
)

Remove/merge cell.

autoPtr<mapPolyMesh> changeMesh ( polyMesh &  mesh,
const bool  inflate,
const bool  syncParallel = true 
)

Inplace changes mesh without change of patches.

Adapts patch start/end and by default does parallel matching. Clears all data. Returns map. inflate = true : keep old mesh points. Put new points into the returned map (preMotionPoints) so we can use inflation. Any points out of nothing (appended points) are vector::zero. inflate = false: set mesh points directly. Empty preMotionPoints in the map.

autoPtr<mapPolyMesh> makeMesh ( autoPtr< fvMesh > &  newMesh,
const IOobject &  io,
const fvMesh &  mesh,
const bool  syncParallel = true 
)

Create new mesh with old mesh patches.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd