FreeFOAM The Cross-Platform CFD Toolkit
pointBoundaryMesh.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-2010 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::pointBoundaryMesh
26 
27 Description
28  Foam::pointBoundaryMesh
29 
30 SourceFiles
31  pointBoundaryMesh.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef pointBoundaryMesh_H
36 #define pointBoundaryMesh_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 // Forward declaration of classes
46 class pointMesh;
47 class polyBoundaryMesh;
48 class globalPointPatch;
49 
50 /*---------------------------------------------------------------------------*\
51  Class pointBoundaryMesh Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public pointPatchList
57 {
58  // Private data
59 
60  //- Reference to mesh
61  const pointMesh& mesh_;
62 
63 
64  // Private Member Functions
65 
66  //- Calculate the geometry for the patches (transformation tensors etc.)
67  void calcGeometry();
68 
69  //- Disallow default bitwise copy construct
71 
72  //- Disallow default bitwise assignment
73  void operator=(const pointBoundaryMesh&);
74 
75 
76 public:
77 
78  //- Declare friendship with pointMesh
79  friend class pointMesh;
80 
81 
82  // Constructors
83 
84  //- Construct from polyBoundaryMesh
86  (
87  const pointMesh&,
88  const polyBoundaryMesh&
89  );
90 
91 
92  // Member functions
93 
94  //- Return the mesh reference
95  const pointMesh& mesh() const
96  {
97  return mesh_;
98  }
99 
100  //- Return reference to globalPointPatch
101  const globalPointPatch& globalPatch() const;
102 
103  //- Correct polyBoundaryMesh after moving points
104  void movePoints(const pointField&);
105 
106  //- Correct polyBoundaryMesh after topology update
107  void updateMesh();
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************ vim: set sw=4 sts=4 et: ************************ //