00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2011 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::fvBoundaryMesh 00026 00027 Description 00028 Foam::fvBoundaryMesh 00029 00030 SourceFiles 00031 fvBoundaryMesh.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef fvBoundaryMesh_H 00036 #define fvBoundaryMesh_H 00037 00038 #include <finiteVolume/fvPatchList.H> 00039 #include <OpenFOAM/lduInterfacePtrsList.H> 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 class fvMesh; 00047 class polyBoundaryMesh; 00048 00049 /*---------------------------------------------------------------------------*\ 00050 Class fvBoundaryMesh Declaration 00051 \*---------------------------------------------------------------------------*/ 00052 00053 class fvBoundaryMesh 00054 : 00055 public fvPatchList 00056 { 00057 // Private data 00058 00059 //- Reference to mesh 00060 const fvMesh& mesh_; 00061 00062 00063 // Private Member Functions 00064 00065 //- Disable default copy construct 00066 fvBoundaryMesh(const fvBoundaryMesh&); 00067 00068 //- Disallow assignment 00069 void operator=(const fvBoundaryMesh&); 00070 00071 //- Add fvPatches corresponding to the given polyBoundaryMesh 00072 void addPatches(const polyBoundaryMesh&); 00073 00074 00075 protected: 00076 00077 //- Update boundary based on new polyBoundaryMesh 00078 void readUpdate(const polyBoundaryMesh&); 00079 00080 00081 public: 00082 00083 friend class fvMesh; 00084 00085 00086 // Constructors 00087 00088 //- Construct with zero size 00089 fvBoundaryMesh 00090 ( 00091 const fvMesh& 00092 ); 00093 00094 //- Construct from polyBoundaryMesh 00095 fvBoundaryMesh 00096 ( 00097 const fvMesh&, 00098 const polyBoundaryMesh& 00099 ); 00100 00101 00102 // Member functions 00103 00104 // Access 00105 00106 //- Return the mesh reference 00107 const fvMesh& mesh() const 00108 { 00109 return mesh_; 00110 } 00111 00112 //- Return a list of pointers for each patch 00113 // with only those pointing to interfaces being set 00114 lduInterfacePtrsList interfaces() const; 00115 00116 00117 //- Correct patches after moving points 00118 void movePoints(); 00119 }; 00120 00121 00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00123 00124 } // End namespace Foam 00125 00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00127 00128 #endif 00129 00130 // ************************ vim: set sw=4 sts=4 et: ************************ //