|
|
|
pointBoundaryMesh.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 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 Foam::pointBoundaryMesh 00027 00028 Description 00029 Foam::pointBoundaryMesh 00030 00031 SourceFiles 00032 pointBoundaryMesh.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef pointBoundaryMesh_H 00037 #define pointBoundaryMesh_H 00038 00039 #include "pointPatchList.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 // Forward declaration of classes 00047 class pointMesh; 00048 class polyBoundaryMesh; 00049 class globalPointPatch; 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class pointBoundaryMesh Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class pointBoundaryMesh 00056 : 00057 public pointPatchList 00058 { 00059 // Private data 00060 00061 //- Reference to mesh 00062 const pointMesh& mesh_; 00063 00064 00065 // Private Member Functions 00066 00067 //- Calculate the geometry for the patches (transformation tensors etc.) 00068 void calcGeometry(); 00069 00070 //- Disallow default bitwise copy construct 00071 pointBoundaryMesh(const pointBoundaryMesh&); 00072 00073 //- Disallow default bitwise assignment 00074 void operator=(const pointBoundaryMesh&); 00075 00076 00077 public: 00078 00079 //- Declare friendship with pointMesh 00080 friend class pointMesh; 00081 00082 00083 // Constructors 00084 00085 //- Construct from polyBoundaryMesh 00086 pointBoundaryMesh 00087 ( 00088 const pointMesh&, 00089 const polyBoundaryMesh& 00090 ); 00091 00092 00093 // Member functions 00094 00095 //- Return the mesh reference 00096 const pointMesh& mesh() const 00097 { 00098 return mesh_; 00099 } 00100 00101 //- Return reference to globalPointPatch 00102 const globalPointPatch& globalPatch() const; 00103 00104 //- Correct polyBoundaryMesh after moving points 00105 void movePoints(const pointField&); 00106 00107 //- Correct polyBoundaryMesh after topology update 00108 void updateMesh(); 00109 }; 00110 00111 00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00113 00114 } // End namespace Foam 00115 00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00117 00118 #endif 00119 00120 // ************************************************************************* // |