pointBoundaryMeshMapper.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-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::pointBoundaryMeshMapper
28 
29 Description
30  Foam::pointBoundaryMeshMapper
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef pointBoundaryMeshMapper_H
35 #define pointBoundaryMeshMapper_H
36 
37 #include "PtrList.H"
38 #include "pointPatchMapper.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class pointBoundaryMeshMapper Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public PtrList<pointPatchMapper>
52 {
53 public:
54 
55  // Public Types
56 
57  //- The patch mapper type
59 
60 
61  // Generated Methods
62 
63  //- No copy construct
65 
66  //- No copy assignment
67  void operator=(const pointBoundaryMeshMapper&) = delete;
68 
69 
70  // Constructors
71 
72  //- Construct from components
74  (
75  const pointMesh& mesh,
76  const pointMapper& pointMap,
77  const mapPolyMesh& mpm
78  )
79  :
81  {
82  const pointBoundaryMesh& patches = mesh.boundary();
83 
84  forAll(patches, patchi)
85  {
86  set
87  (
88  patchi,
90  (
91  patches[patchi],
92  pointMap,
93  mpm
94  )
95  );
96  }
97  }
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
faceListList boundary
Foam::pointBoundaryMesh.
pointPatchMapper mapper_type
The patch mapper type.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:157
Mesh representing a set of points created from polyMesh.
Definition: pointMesh.H:45
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:421
Mapping class for a pointPatchField.
dynamicFvMesh & mesh
label size() const noexcept
The number of entries in the list.
Definition: UPtrListI.H:106
Foam::pointBoundaryMeshMapper.
pointBoundaryMeshMapper(const pointBoundaryMeshMapper &)=delete
No copy construct.
void operator=(const pointBoundaryMeshMapper &)=delete
No copy assignment.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Definition: List.H:55
const polyBoundaryMesh & patches
This object provides mapping and fill-in information for point data between the two meshes after the ...
Definition: pointMapper.H:53
Namespace for OpenFOAM.