Merge branch 'master' of github.com:OpenCFD/OpenFOAM-1.7.x
[OpenFOAM-1.7.x.git] / src / finiteVolume / fvMesh / fvBoundaryMesh / fvBoundaryMesh.H
blob1649e3eeb9015ef6d2d24f07b534766e1b023efb
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2011 OpenCFD Ltd.
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
90         (
91             const fvMesh&
92         );
94         //- Construct from polyBoundaryMesh
95         fvBoundaryMesh
96         (
97             const fvMesh&,
98             const polyBoundaryMesh&
99         );
102     // Member functions
104         // Access
106             //- Return the mesh reference
107             const fvMesh& mesh() const
108             {
109                 return mesh_;
110             }
112             //- Return a list of pointers for each patch
113             //  with only those pointing to interfaces being set
114             lduInterfacePtrsList interfaces() const;
117         //- Correct patches after moving points
118         void movePoints();
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace Foam
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 #endif
130 // ************************************************************************* //