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 faBoundaryMeshMapper_H
35 #define faBoundaryMeshMapper_H
36 
37 #include "PtrList.H"
38 #include "faPatchMapper.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class faBoundaryMeshMapper Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public PtrList<faPatchMapper>
52 {
53  // Private Member Functions
54 
55  //- No copy construct
57 
58  //- No copy assignment
59  void operator=(const faBoundaryMeshMapper&) = delete;
60 
61 
62 public:
63 
64  // Constructors
65 
66  //- Construct from components
68  (
69  const faMesh& mesh,
70  const mapPolyMesh& mpm
71  )
72  :
74  {
75  const faBoundaryMesh& patches = mesh.boundary();
76 
77  forAll(patches, patchI)
78  {
79  set
80  (
81  patchI,
82  new faPatchMapper
83  (
84  patches[patchI],
85  mpm
86  )
87  );
88  }
89  }
90 };
91 
92 
93 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 
95 } // End namespace Foam
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 #endif
100 
101 // ************************************************************************* //
Foam::faBoundaryMeshMapper
Foam::faBoundaryMeshMapper.
Definition: faBoundaryMeshMapper.H:48
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:296
faPatchMapper.H
Foam::faBoundaryMesh
Finite area boundary mesh.
Definition: faBoundaryMesh.H:66
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: List.H:62
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::PtrList< faPatchMapper >::set
const faPatchMapper * set(const label i) const
Return const pointer to element (if set) or nullptr.
Definition: PtrListI.H:143
patches
const polyBoundaryMesh & patches
Definition: convertProcessorPatches.H:65
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:160
PtrList.H
Foam::faMesh
Finite area mesh. Used for 2-D non-Euclidian finite area method.
Definition: faMesh.H:77
boundary
faceListList boundary
Definition: createBlockMesh.H:4
Foam::faPatchMapper
Mapping class for a faPatchField. Edge mapping is calculated based on faceCells comparison of old and...
Definition: faPatchMapper.H:62