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

polyMeshAdder Class Reference

Inheritance diagram for polyMeshAdder:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 65 of file polyMeshAdder.H.


Static Public Member Functions

static autoPtr< polyMesh > add (const IOobject &io, const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, autoPtr< mapAddedPolyMesh > &mapPtr)
 Add two polyMeshes. Returns new polyMesh and map construct.
static autoPtr< mapAddedPolyMesh > add (polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true)
 Inplace add mesh to polyMesh. Returns map construct.
static Map< label > findSharedPoints (const polyMesh &, const scalar mergeTol)
 Find topologically&geometrically shared points.
static void mergePoints (const polyMesh &, const Map< label > &pointToMaster, polyTopoChange &meshMod)
 Helper: Merge points.

Member Function Documentation

static autoPtr<polyMesh> add ( const IOobject &  io,
const polyMesh &  mesh0,
const polyMesh &  mesh1,
const faceCoupleInfo &  coupleInfo,
autoPtr< mapAddedPolyMesh > &  mapPtr 
) [static]

Add two polyMeshes. Returns new polyMesh and map construct.

static autoPtr<mapAddedPolyMesh> add ( polyMesh &  mesh0,
const polyMesh &  mesh1,
const faceCoupleInfo &  coupleInfo,
const bool  validBoundary = true 
) [static]

Inplace add mesh to polyMesh. Returns map construct.

static Map<label> findSharedPoints ( const polyMesh &  ,
const scalar  mergeTol 
) [static]

Find topologically&geometrically shared points.

  • should only be called for parallel correct mesh (since uses mesh.globalData)
  • returns Map from point to master point (all in mesh point labels) for any sets of points that need to be merged.

static void mergePoints ( const polyMesh &  ,
const Map< label > &  pointToMaster,
polyTopoChange &  meshMod 
) [static]

Helper: Merge points.

  • Gets map from point to destination point
  • Removes all points that don't map to themselves
  • Modifies all faces that use the points to be removed.


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