OpenFOAM logo
Open Source CFD Toolkit

directPolyTopoChange Class Reference

Collaboration diagram for directPolyTopoChange:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("directPolyTopoChange")
 Runtime type information.
 directPolyTopoChange (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
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.
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)
 Remove 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)
 Remove 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)
 Remove cell.
autoPtr< mapPolyMeshchangeMesh (polyMesh &mesh)
 Inplace changes mesh without change of patches.

Constructor & Destructor Documentation

directPolyTopoChange const polyMesh mesh,
const bool  strict = true
 

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


Member Function Documentation

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

Add cell. Return new cell label.

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 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.

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)

autoPtr<mapPolyMesh> changeMesh polyMesh mesh  ) 
 

Inplace changes mesh without change of patches.

Adapts patch start/end and does reorderCoupledFaces. Clears all data. Returns map.

ClassName "directPolyTopoChange"   ) 
 

Runtime type information.

void clear  ) 
 

Clear all storage.

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

Definition at line 474 of file directPolyTopoChange.H.

References Foam::label, and Foam::point.

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

Definition at line 469 of file directPolyTopoChange.H.

References Foam::label.

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

Definition at line 459 of file directPolyTopoChange.H.

References Foam::labelList.

void modifyCell const   label,
const label  zoneID
 

Modify zone of cell.

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 modifyPoint const   label,
const point ,
const label  newZoneID,
const bool  inCell
 

Modify coordinate.

Notes:

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

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

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

Definition at line 454 of file directPolyTopoChange.H.

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

Definition at line 464 of file directPolyTopoChange.H.

References Foam::labelList.

void removeCell const   label  ) 
 

Remove cell.

void removeFace const   label  ) 
 

Remove face.

void removePoint const   label  ) 
 

Remove point.

label setAction const topoAction action  ) 
 

For compatibility with polyTopoChange: set topological action.


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