BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / finiteVolume / fvMesh / fvBoundaryMesh / fvBoundaryMesh.H
blob8270fc9348ec30355dd04cd951f45b4ecd62af0f
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by
13     the Free Software Foundation, either version 3 of the License, or
14     (at your option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::fvBoundaryMesh
27 Description
28     Foam::fvBoundaryMesh
30 SourceFiles
31     fvBoundaryMesh.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef fvBoundaryMesh_H
36 #define fvBoundaryMesh_H
38 #include "fvPatchList.H"
39 #include "lduInterfacePtrsList.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 class fvMesh;
47 class polyBoundaryMesh;
49 /*---------------------------------------------------------------------------*\
50                        Class fvBoundaryMesh Declaration
51 \*---------------------------------------------------------------------------*/
53 class fvBoundaryMesh
55     public fvPatchList
57     // Private data
59         //- Reference to mesh
60         const fvMesh& mesh_;
63     // Private Member Functions
65         //- Disable default copy construct
66         fvBoundaryMesh(const fvBoundaryMesh&);
68         //- Disallow assignment
69         void operator=(const fvBoundaryMesh&);
71         //- Add fvPatches corresponding to the given polyBoundaryMesh
72         void addPatches(const polyBoundaryMesh&);
75 protected:
77         //- Update boundary based on new polyBoundaryMesh
78         void readUpdate(const polyBoundaryMesh&);
81 public:
83     friend class fvMesh;
86     // Constructors
88         //- Construct with zero size
89         fvBoundaryMesh(const fvMesh&);
91         //- Construct from polyBoundaryMesh
92         fvBoundaryMesh(const fvMesh&, const polyBoundaryMesh&);
95     // Member Functions
97         // Access
99             //- Return the mesh reference
100             const fvMesh& mesh() const
101             {
102                 return mesh_;
103             }
105             //- Return a list of pointers for each patch
106             //  with only those pointing to interfaces being set
107             lduInterfacePtrsList interfaces() const;
109             //- Find patch index given a name
110             label findPatchID(const word& patchName) const;
113         //- Correct patches after moving points
114         void movePoints();
117     // Member Operators
119         //- Return const and non-const reference to fvPatch by index.
120         using fvPatchList::operator[];
122         //- Return const reference to fvPatch by name.
123         const fvPatch& operator[](const word&) const;
125         //- Return reference to fvPatch by name.
126         fvPatch& operator[](const word&);
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 #endif
138 // ************************************************************************* //