FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

GAMGInterfaceField.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-2010 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::GAMGInterfaceField
00026 
00027 Description
00028      Abstract base class for GAMG agglomerated interface fields.
00029 
00030 SourceFiles
00031     GAMGInterfaceField.C
00032     newAmgInterfaceField.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef GAMGInterfaceField_H
00037 #define GAMGInterfaceField_H
00038 
00039 #include <OpenFOAM/lduInterfaceField.H>
00040 #include <OpenFOAM/GAMGInterface.H>
00041 #include <OpenFOAM/autoPtr.H>
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049                       Class GAMGInterfaceField Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 class GAMGInterfaceField
00053 :
00054     public lduInterfaceField
00055 {
00056     // Private data
00057 
00058         //- Local reference cast into the interface
00059         const GAMGInterface& interface_;
00060 
00061 
00062     // Private Member Functions
00063 
00064         //- Disallow default bitwise copy construct
00065         GAMGInterfaceField(const GAMGInterfaceField&);
00066 
00067         //- Disallow default bitwise assignment
00068         void operator=(const GAMGInterfaceField&);
00069 
00070 
00071 public:
00072 
00073     //- Runtime type information
00074     TypeName("GAMGInterfaceField");
00075 
00076 
00077     // Declare run-time constructor selection tables
00078 
00079         declareRunTimeSelectionTable
00080         (
00081             autoPtr,
00082             GAMGInterfaceField,
00083             lduInterface,
00084             (
00085                 const GAMGInterface& GAMGCp,
00086                 const lduInterfaceField& fineInterface
00087             ),
00088             (GAMGCp, fineInterface)
00089         );
00090 
00091 
00092     // Selectors
00093 
00094         //- Return a pointer to a new interface created on freestore given
00095         //  the fine interface
00096         static autoPtr<GAMGInterfaceField> New
00097         (
00098             const GAMGInterface& GAMGCp,
00099             const lduInterfaceField& fineInterface
00100         );
00101 
00102 
00103     // Constructors
00104 
00105         //- Construct from GAMG interface and fine level interface field
00106         GAMGInterfaceField
00107         (
00108             const GAMGInterface& GAMGCp,
00109             const lduInterfaceField&
00110         )
00111         :
00112             lduInterfaceField(GAMGCp),
00113             interface_(GAMGCp)
00114         {}
00115 };
00116 
00117 
00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00119 
00120 } // End namespace Foam
00121 
00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00123 
00124 #endif
00125 
00126 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines