The open source CFD toolbox
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-------------------------------------------------------------------------------
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
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::faBoundaryMeshMapper
28
29Description
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
42namespace Foam
43{
44
45/*---------------------------------------------------------------------------*\
46 Class faBoundaryMeshMapper Declaration
47\*---------------------------------------------------------------------------*/
50:
51 public PtrList<faPatchMapper>
52{
53public:
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 faBoundaryMeshMapper&) = delete;
68
69
70 // Constructors
71
72 //- Construct from components
74 (
75 const faMesh& mesh,
76 const mapPolyMesh& mpm
77 )
78 :
80 {
82
83 forAll(patches, patchi)
84 {
85 set
86 (
87 patchi,
89 (
90 patches[patchi],
91 mpm
92 )
93 );
94 }
95 }
96};
97
98
99// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100
101} // End namespace Foam
102
103// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104
105#endif
106
107// ************************************************************************* //
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: PtrList.H:73
const faPatchMapper * set(const label i) const
Definition: PtrList.H:138
label size() const noexcept
The number of elements in the list.
Definition: UPtrListI.H:106
Foam::faBoundaryMeshMapper.
faBoundaryMeshMapper(const faMesh &mesh, const mapPolyMesh &mpm)
Construct from components.
faBoundaryMeshMapper(const faBoundaryMeshMapper &)=delete
No copy construct.
faPatchMapper mapper_type
The patch mapper type.
void operator=(const faBoundaryMeshMapper &)=delete
No copy assignment.
Finite area boundary mesh.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
Definition: faMesh.H:100
Mapping class for a faPatchField. Edge mapping is calculated based on faceCells comparison of old and...
Definition: faPatchMapper.H:65
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Definition: fvMesh.C:712
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:162
const polyBoundaryMesh & patches
faceListList boundary
dynamicFvMesh & mesh
Namespace for OpenFOAM.
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:333