OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

fvBoundaryMesh.H

Go 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-2007 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 #include "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:
00058 
00059     // Private data
00060 
00061         //- Reference to mesh
00062         const fvMesh& mesh_;
00063 
00064 
00065     // Private Member Functions
00066 
00067         //- Disable default copy construct
00068         fvBoundaryMesh(const fvBoundaryMesh&);
00069 
00070         //- Disallow assignment
00071         void operator=(const fvBoundaryMesh&);
00072 
00073         //- Add fvPatches corresponding to the given polyBoundaryMesh
00074         void addPatches(const polyBoundaryMesh&);
00075 
00076 
00077 protected:
00078 
00079         //- Update boundary based on new polyBoundaryMesh
00080         void readUpdate(const polyBoundaryMesh&);
00081 
00082 
00083 public:
00084 
00085     friend class fvMesh;
00086 
00087 
00088     // Constructors
00089 
00090         //- Construct with zero size
00091         fvBoundaryMesh
00092         (
00093             const fvMesh&
00094         );
00095 
00096         //- Construct from polyBoundaryMesh
00097         fvBoundaryMesh
00098         (
00099             const fvMesh&,
00100             const polyBoundaryMesh&
00101         );
00102 
00103 
00104     // Member functions
00105 
00106         // Access
00107 
00108             //- Return the mesh reference
00109             const fvMesh& mesh() const
00110             {
00111                 return mesh_;
00112             }
00113 
00114             //- Return a list of pointers for each patch
00115             //  with only those pointing to interfaces being set
00116             lduInterfacePtrsList interfaces() const;
00117 
00118 
00119         //- Correct patches after moving points
00120         void movePoints();
00121 };
00122 
00123 
00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00125 
00126 } // End namespace Foam
00127 
00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00129 
00130 #endif
00131 
00132 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd