/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . Class Foam::mergePolyMesh Description Merge meshes into a single mesh without stitching. SourceFiles mergePolyMesh.C \*---------------------------------------------------------------------------*/ #ifndef mergePolyMesh_H #define mergePolyMesh_H #include "polyMesh.H" #include "polyTopoChange.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class mergePolyMesh Declaration \*---------------------------------------------------------------------------*/ class mergePolyMesh { // Private Data //- The master mesh the other meshes are merged into polyMesh& mesh_; //- Topological change to accumulated all mesh changes polyTopoChange meshMod_; //- Patch names DynamicList patchNames_; //- Patch dictionaries DynamicList patchDicts_; //- Point zone names DynamicList pointZoneNames_; //- Zones of the added points List pointZonesAddedPoints_; //- Face zone names DynamicList faceZoneNames_; //- Zones of the added faces List> faceZonesAddedFaces_; //- Cell zone names DynamicList cellZoneNames_; //- Zones of the added cells List cellZonesAddedCells_; // Private Member Functions //- Return patch index given a name and type label patchIndex(const polyPatch&); //- Return zone index given a list of active zones and a name label zoneIndex(DynamicList&, const word&); public: //- Runtime type information TypeName("mergePolyMesh"); // Constructors //- Construct from polyMesh mergePolyMesh(polyMesh& mesh); //- Destructor virtual ~mergePolyMesh() {} // Member Functions //- Add a mesh void addMesh(const polyMesh& m); //- Merge meshes void merge(); // Member Operators //- Disallow default bitwise assignment void operator=(const mergePolyMesh&) = delete; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //