/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2012-2016 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::meshToMesh Description Class to calculate the cell-addressing between two overlapping meshes Mapping is performed using a run-time selectable interpolation mothod See also meshToMeshMethod SourceFiles meshToMesh.C meshToMeshParallelOps.C meshToMeshTemplates.C \*---------------------------------------------------------------------------*/ #ifndef meshToMesh_H #define meshToMesh_H #include "polyMesh.H" #include "boundBox.H" #include "mapDistribute.H" #include "volFieldsFwd.H" #include "NamedEnum.H" #include "AMIPatchToPatchInterpolation.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class meshToMesh Declaration \*---------------------------------------------------------------------------*/ class meshToMesh { public: // Public data types //- Enumeration specifying interpolation method enum interpolationMethod { imDirect, imMapNearest, imCellVolumeWeight }; static const NamedEnum interpolationMethodNames_; private: // Private data //- Reference to the source mesh const polyMesh& srcRegion_; //- Reference to the target mesh const polyMesh& tgtRegion_; //- List of target patch IDs per source patch (local index) List