![]() |
|
00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2005 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 fvBoundaryMesh 00027 00028 Description 00029 00030 SourceFiles 00031 fvBoundaryMesh.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef fvBoundaryMesh_H 00036 #define fvBoundaryMesh_H 00037 00038 #include "fvPatchList.H" 00039 00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00041 00042 namespace Foam 00043 { 00044 00045 class fvMesh; 00046 class polyBoundaryMesh; 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class fvBoundaryMesh Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class fvBoundaryMesh 00053 : 00054 public fvPatchList 00055 { 00056 private: 00057 00058 // Private data 00059 00060 //- Reference to mesh 00061 const fvMesh& mesh_; 00062 00063 00064 // Private Member Functions 00065 00066 //- Disable default copy construct 00067 fvBoundaryMesh(const fvBoundaryMesh&); 00068 00069 //- Disallow assignment 00070 void operator=(const fvBoundaryMesh&); 00071 00072 //- Add fvPatches corresponding to the given polyBoundaryMesh 00073 void addPatches(const polyBoundaryMesh&); 00074 00075 00076 protected: 00077 00078 //- Update boundary based on new polyBoundaryMesh 00079 void readUpdate(const polyBoundaryMesh&); 00080 00081 00082 public: 00083 00084 friend class fvMesh; 00085 00086 00087 // Constructors 00088 00089 //- Construct with zero size 00090 fvBoundaryMesh 00091 ( 00092 const fvMesh& 00093 ); 00094 00095 //- Construct from polyBoundaryMesh 00096 fvBoundaryMesh 00097 ( 00098 const fvMesh&, 00099 const polyBoundaryMesh& 00100 ); 00101 00102 00103 // Member functions 00104 00105 //- Return the mesh reference 00106 const fvMesh& mesh() const 00107 { 00108 return mesh_; 00109 } 00110 00111 //- Correct patches after moving points 00112 void movePoints(); 00113 }; 00114 00115 00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00117 00118 } // End namespace Foam 00119 00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00121 00122 #endif 00123 00124 // ************************************************************************* //