faBoundaryMeshMapper.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) 2016-2017 Wikki Ltd
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::faBoundaryMeshMapper
28 
29 Description
30  Foam::faBoundaryMeshMapper
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef Foam_faBoundaryMeshMapper_H
35 #define Foam_faBoundaryMeshMapper_H
36 
37 #include "faPatchMapper.H"
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 
44 /*---------------------------------------------------------------------------*\
45  Class faBoundaryMeshMapper Declaration
46 \*---------------------------------------------------------------------------*/
47 
49 :
50  public PtrList<faPatchMapper>
51 {
52 public:
53 
54  // Public Types
55 
56  //- The patch mapper type
57  typedef faPatchMapper mapper_type;
58 
59 
60  // Generated Methods
61 
62  //- No copy construct
64 
65  //- No copy assignment
66  void operator=(const faBoundaryMeshMapper&) = delete;
67 
68 
69  // Constructors
70 
71  //- Construct from components
73  (
74  const faMesh& mesh,
75  const mapPolyMesh& mpm
76  )
77  :
79  {
80  const faBoundaryMesh& patches = mesh.boundary();
81 
82  forAll(patches, patchi)
83  {
84  set
85  (
86  patchi,
87  new faPatchMapper
88  (
89  patches[patchi],
90  mpm
91  )
92  );
93  }
94  }
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
Definition: faMesh.H:133
faceListList boundary
Foam::faBoundaryMeshMapper.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:158
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:400
dynamicFvMesh & mesh
label size() const noexcept
The number of entries in the list.
Definition: UPtrListI.H:106
faPatchMapper mapper_type
The patch mapper type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Definition: PtrList.H:56
const polyBoundaryMesh & patches
Finite area boundary mesh, which is a faPatch list with registered IO, a reference to the associated ...
Mapping class for a faPatchField. Edge mapping is calculated based on faceCells comparison of old and...
Definition: faPatchMapper.H:57
void operator=(const faBoundaryMeshMapper &)=delete
No copy assignment.
Namespace for OpenFOAM.
faBoundaryMeshMapper(const faBoundaryMeshMapper &)=delete
No copy construct.