polyMeshAdder Class Reference

Adds two meshes without using any polyMesh morphing. More...

Inheritance diagram for polyMeshAdder:

Static Public Member Functions

static autoPtr< polyMeshadd (const IOobject &io, const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, autoPtr< mapAddedPolyMesh > &mapPtr)
 Add two polyMeshes. Returns new polyMesh and map construct. More...
 
static autoPtr< mapAddedPolyMeshadd (polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true)
 Inplace add mesh to polyMesh. Returns map construct. More...
 

Detailed Description

Adds two meshes without using any polyMesh morphing.

Gets faces to couple as faceCoupleInfo which is list of faces on both meshes. Returns map from last mesh addition.

Source files

Definition at line 59 of file polyMeshAdder.H.

Member Function Documentation

◆ add() [1/2]

Foam::autoPtr< Foam::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.

Definition at line 1286 of file polyMeshAdder.C.

References polyMesh::addPatches(), Foam::DelaunayMeshTools::allPoints(), polyMesh::boundaryMesh(), Foam::identity(), faceCoupleInfo::masterPatch(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nPoints(), autoPtr< T >::reset(), and UPtrList< T >::size().

Referenced by fvMeshAdder::add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add() [2/2]

Foam::autoPtr< Foam::mapAddedPolyMesh > add ( polyMesh mesh0,
const polyMesh mesh1,
const faceCoupleInfo coupleInfo,
const bool  validBoundary = true 
)
static

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