1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Class holds all the necessary information for mapping fields associated
35 \*---------------------------------------------------------------------------*/
37 #ifndef pointMeshMapper_H
38 #define pointMeshMapper_H
40 #include "pointMapper.H"
41 #include "pointBoundaryMeshMapper.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
52 /*---------------------------------------------------------------------------*\
53 Class pointMeshMapper Declaration
54 \*---------------------------------------------------------------------------*/
61 const pointMesh& mesh_;
64 pointMapper pointMap_;
67 pointBoundaryMeshMapper boundaryMap_;
70 // Private Member Functions
72 //- Disallow default bitwise copy construct
73 pointMeshMapper(const pointMeshMapper&);
75 //- Disallow default bitwise assignment
76 void operator=(const pointMeshMapper&);
83 //- Construct from pointMesh
84 pointMeshMapper(const pointMesh& mesh, const mapPolyMesh& mpm)
88 boundaryMap_(mesh, pointMap_, mpm)
95 //- Return reference to mesh fields belong to
96 const pointMesh& mesh() const
101 //- Return reference to objectRegistry storing fields. Can be
102 // removed once fields stored on pointMesh.
103 const objectRegistry& thisDb() const
108 //- Return point mapper
109 const morphFieldMapper& pointMap() const
114 //- Return boundary mapper
115 const pointBoundaryMeshMapper& boundaryMap() const
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace Foam
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 // ************************************************************************* //