FreeFOAM The Cross-Platform CFD Toolkit
fvBoundaryMesh.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 | Copyright (C) 1991-2011 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::fvBoundaryMesh
26 
27 Description
28  Foam::fvBoundaryMesh
29 
30 SourceFiles
31  fvBoundaryMesh.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef fvBoundaryMesh_H
36 #define fvBoundaryMesh_H
37 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 class fvMesh;
47 class polyBoundaryMesh;
48 
49 /*---------------------------------------------------------------------------*\
50  Class fvBoundaryMesh Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
55  public fvPatchList
56 {
57  // Private data
58 
59  //- Reference to mesh
60  const fvMesh& mesh_;
61 
62 
63  // Private Member Functions
64 
65  //- Disable default copy construct
67 
68  //- Disallow assignment
69  void operator=(const fvBoundaryMesh&);
70 
71  //- Add fvPatches corresponding to the given polyBoundaryMesh
72  void addPatches(const polyBoundaryMesh&);
73 
74 
75 protected:
76 
77  //- Update boundary based on new polyBoundaryMesh
78  void readUpdate(const polyBoundaryMesh&);
79 
80 
81 public:
82 
83  friend class fvMesh;
84 
85 
86  // Constructors
87 
88  //- Construct with zero size
90  (
91  const fvMesh&
92  );
93 
94  //- Construct from polyBoundaryMesh
96  (
97  const fvMesh&,
98  const polyBoundaryMesh&
99  );
100 
101 
102  // Member functions
103 
104  // Access
105 
106  //- Return the mesh reference
107  const fvMesh& mesh() const
108  {
109  return mesh_;
110  }
111 
112  //- Return a list of pointers for each patch
113  // with only those pointing to interfaces being set
115 
116 
117  //- Correct patches after moving points
118  void movePoints();
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************ vim: set sw=4 sts=4 et: ************************ //