/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2016 OpenFOAM Foundation Copyright (C) 2015-2023 OpenCFD Ltd. ------------------------------------------------------------------------------- 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::meshToMesh Description Class to calculate the cell-addressing between two overlapping meshes Mapping is performed using a run-time selectable interpolation mothod SeeAlso meshToMeshMethod SourceFiles meshToMesh.C meshToMeshParallelOps.C meshToMeshTemplates.C \*---------------------------------------------------------------------------*/ #ifndef Foam_meshToMesh_H #define Foam_meshToMesh_H #include "polyMesh.H" #include "treeBoundBox.H" #include "mapDistribute.H" #include "volFieldsFwd.H" #include "Enum.H" #include "AMIPatchToPatchInterpolation.H" #include "pointList.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class meshToMesh Declaration \*---------------------------------------------------------------------------*/ class meshToMesh { public: // Public data types //- Enumeration specifying interpolation method enum class interpolationMethod { imDirect, imMapNearest, imCellVolumeWeight, imCorrectedCellVolumeWeight }; static const Enum interpolationMethodNames_; //- Enumeration specifying processor parallel map construction method enum class procMapMethod { pmAABB, pmLOD }; static const Enum procMapMethodNames_; private: // Private data //- Reference to the source mesh const polyMesh& srcRegion_; //- Reference to the target mesh const polyMesh& tgtRegion_; //- Processor parallel map construction method procMapMethod procMapMethod_; //- List of target patch IDs per source patch (local index) List