Adds two meshes without using any polyMesh morphing. More...
Static Public Member Functions | |
static autoPtr< polyMesh > | add (const IOobject &io, const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, autoPtr< mapAddedPolyMesh > &mapPtr) |
static autoPtr< mapAddedPolyMesh > | add (polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true) |
static Map< label > | findSharedPoints (const polyMesh &, const scalar mergeTol) |
static void | mergePoints (const polyMesh &, const Map< label > &pointToMaster, polyTopoChange &meshMod) |
static label | procPatchPairs (const UPtrList< polyMesh > &meshes, List< DynamicList< label >> &localPatch, List< DynamicList< label >> &remoteMesh, List< DynamicList< label >> &remotePatch) |
static void | patchFacePairs (const UPtrList< polyMesh > &meshes, const List< DynamicList< label >> &localPatch, const List< DynamicList< label >> &remoteMesh, const List< DynamicList< label >> &remotePatch, labelListList &localBoundaryFace, labelListList &remoteFaceMesh, labelListList &remoteBoundaryFace) |
static void | add (const UPtrList< polyMesh > &meshes, const UList< labelList > &patchMap, const labelListList &localBoundaryFace, const labelListList &remoteFaceMesh, const labelListList &remoteBoundaryFace, const labelListList &remoteFaceStart, const UList< labelList > &pointZoneMap, const UList< labelList > &faceZoneMap, const UList< labelList > &cellZoneMap, polyTopoChange &meshMod, labelListList &cellProcAddressing, labelListList &faceProcAddressing, labelListList &pointProcAddressing) |
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.
Definition at line 57 of file polyMeshAdder.H.
|
static |
Definition at line 1445 of file polyMeshAdder.C.
References polyMesh::addPatches(), Foam::DelaunayMeshTools::allPoints(), polyMesh::boundaryMesh(), faceCoupleInfo::cutFaces(), Foam::identity(), mesh, meshPtr, primitiveMesh::nCells(), autoPtr::New(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), primitiveMesh::nPoints(), autoPtr::reset(), and Foam::Zero.
Referenced by fvMeshAdder::add().
|
static |
Definition at line 1665 of file polyMeshAdder.C.
References Foam::DelaunayMeshTools::allPoints(), polyMesh::boundaryMesh(), polyMesh::cellZones(), ZoneMesh::clear(), polyMesh::faceZones(), forAll, Foam::identity(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nPoints(), polyMesh::pointZones(), polyMesh::resetMotion(), polyMesh::resetPrimitives(), PtrList::set(), PtrList::setSize(), List::setSize(), and Foam::Zero.
Definition at line 1980 of file polyMeshAdder.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, forAllConstIters(), polyMesh::globalData(), Foam::invertOneToMany(), Foam::labelMax, Foam::mergePoints(), mesh, Foam::min(), polyMesh::points(), List::setSize(), globalMeshData::sharedPointAddr(), and globalMeshData::sharedPointLabels().
|
static |
Definition at line 2191 of file polyMeshAdder.C.
References polyMesh::boundaryMesh(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), faceZone::flipMap(), forAll, mesh, patchID, polyMesh::points(), polyTopoChange::removePoint(), polyTopoChange::setAction(), faceZone::whichFace(), polyBoundaryMesh::whichPatch(), ZoneMesh::whichZone(), and zoneID.
Referenced by meshRefinement::mergePoints().
|
static |
Definition at line 2321 of file polyMeshAdder.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, meshes(), patchIdentifier::name(), polyBoundaryMesh::names(), Foam::PtrListOps::names(), processorPolyPatch::neighbProcNo(), polyBoundaryMesh::nNonProcessor(), and processorPolyPatch::owner().
|
static |
Definition at line 2442 of file polyMeshAdder.C.
References polyMesh::boundaryMesh(), forAll, mesh, meshes(), primitiveMesh::nInternalFaces(), List::setSize(), and polyPatch::start().
|
static |
Definition at line 2666 of file polyMeshAdder.C.
References polyTopoChange::addCell(), polyTopoChange::addFace(), polyTopoChange::addPoint(), polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), polyMesh::cellZones(), List::clear(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), faceProcAddressing, polyMesh::faces(), polyMesh::faceZones(), forAll, Foam::identity(), mesh, meshes(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), nPoints, primitiveMesh::nPoints(), pointLabels(), points, polyMesh::points(), polyMesh::pointZones(), face::reverseFace(), PtrList::set(), List::setSize(), polyPatch::start(), Foam::Swap(), and WarningInFunction.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.