/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2026 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::fvMeshMapper Description Class holds all the necessary information for mapping fields associated with fvMesh. SourceFiles fvMeshMapper.C \*---------------------------------------------------------------------------*/ #ifndef fvMeshMapper_H #define fvMeshMapper_H #include "faceMapper.H" #include "cellMapper.H" #include "fvSurfaceMapper.H" #include "fvBoundaryMeshMapper.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // Forward declaration of classes class fvMesh; class polyTopoChangeMap; /*---------------------------------------------------------------------------*\ Class fvMeshMapper Declaration \*---------------------------------------------------------------------------*/ class fvMeshMapper { // Private Data //- Reference to mesh const fvMesh& mesh_; //- Face mapper faceMapper faceMap_; //- Cell mapper cellMapper cellMap_; //- Surface mapper (needs to be shortened for internal faces only) fvSurfaceMapper surfaceMap_; //- Boundary mapper fvBoundaryMeshMapper boundaryMap_; public: // Constructors //- Construct from fvMesh fvMeshMapper(const fvMesh& mesh, const polyTopoChangeMap& map) : mesh_(mesh), faceMap_(map), cellMap_(map), surfaceMap_(mesh, faceMap_), boundaryMap_(mesh, faceMap_) {} //- Disallow default bitwise copy construction fvMeshMapper(const fvMeshMapper&) = delete; // Member Functions //- Return reference to mesh const fvMesh& mesh() const { return mesh_; } //- Return reference to objectRegistry storing fields. Can be // removed once fields stored on pointMesh. const objectRegistry& db() const { return mesh_; } //- Return volume mapper const morphFieldMapper& volMap() const { return cellMap_; } //- Return surface mapper const fvSurfaceMapper& surfaceMap() const { return surfaceMap_; } //- Return boundary mapper const fvBoundaryMeshMapper& boundaryMap() const { return boundaryMap_; } // Member Operators //- Disallow default bitwise assignment void operator=(const fvMeshMapper&) = delete; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //