1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
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
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/>.
33 \*---------------------------------------------------------------------------*/
35 #ifndef fvBoundaryMesh_H
36 #define fvBoundaryMesh_H
38 #include "fvPatchList.H"
39 #include "lduInterfacePtrsList.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 class polyBoundaryMesh;
49 /*---------------------------------------------------------------------------*\
50 Class fvBoundaryMesh Declaration
51 \*---------------------------------------------------------------------------*/
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&);
77 //- Update boundary based on new polyBoundaryMesh
78 void readUpdate(const polyBoundaryMesh&);
88 //- Construct with zero size
89 fvBoundaryMesh(const fvMesh&);
91 //- Construct from polyBoundaryMesh
92 fvBoundaryMesh(const fvMesh&, const polyBoundaryMesh&);
99 //- Return the mesh reference
100 const fvMesh& mesh() const
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
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 // ************************************************************************* //