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