Loading...
Searching...
No Matches
pointMeshMapper.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::pointMeshMapper
28
29Description
30 Class holds all the necessary information for mapping fields associated
31 with pointMesh.
32
33SourceFiles
34 pointMeshMapper.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef Foam_pointMeshMapper_H
39#define Foam_pointMeshMapper_H
40
41#include "pointMapper.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49// Forward Declarations
50class pointMesh;
51class mapPolyMesh;
53/*---------------------------------------------------------------------------*\
54 Class pointMeshMapper Declaration
55\*---------------------------------------------------------------------------*/
56
57class pointMeshMapper
58{
59 // Private Data
60
61 //- Reference to mesh
62 const pointMesh& mesh_;
63
64 //- Point mapper
65 pointMapper pointMap_;
66
67 //- Boundary mapper
68 pointBoundaryMeshMapper boundaryMap_;
69
70
71 // Private Member Functions
72
73 //- No copy construct
74 pointMeshMapper(const pointMeshMapper&) = delete;
75
76 //- No copy assignment
77 void operator=(const pointMeshMapper&) = delete;
78
79
80public:
81
82 // Constructors
83
84 //- Construct from pointMesh
85 pointMeshMapper(const pointMesh& mesh, const mapPolyMesh& mpm)
86 :
87 mesh_(mesh),
88 pointMap_(mesh, mpm),
89 boundaryMap_(mesh, pointMap_, mpm)
90 {}
91
93 // Member Functions
94
95 //- Return reference to mesh fields belong to
96 const pointMesh& mesh() const noexcept
97 {
98 return mesh_;
99 }
100
101 //- Return reference to objectRegistry storing fields. Can be
102 // removed once fields stored on pointMesh.
103 const objectRegistry& thisDb() const noexcept
104 {
105 return mesh_();
106 }
107
108 //- Return point mapper
109 const morphFieldMapper& pointMap() const noexcept
110 {
111 return pointMap_;
112 }
113
114 //- Return boundary mapper
116 {
117 return boundaryMap_;
118 }
119};
120
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124} // End namespace Foam
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128#endif
129
130// ************************************************************************* //
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Abstract base class to hold the Field mapping for mesh morphs.
Registry of regIOobjects.
Foam::pointBoundaryMeshMapper.
This object provides mapping and fill-in information for point data between the two meshes after the ...
Definition pointMapper.H:56
pointMeshMapper(const pointMesh &mesh, const mapPolyMesh &mpm)
Construct from pointMesh.
const pointMesh & mesh() const noexcept
Return reference to mesh fields belong to.
const pointBoundaryMeshMapper & boundaryMap() const noexcept
Return boundary mapper.
const objectRegistry & thisDb() const noexcept
Return reference to objectRegistry storing fields. Can be.
const morphFieldMapper & pointMap() const noexcept
Return point mapper.
Mesh representing a set of points created from polyMesh.
Definition pointMesh.H:49
Namespace for OpenFOAM.
const direction noexcept
Definition scalarImpl.H:265