1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 Foam::IntegrationScheme
30 Top level model for Integration schemes
35 \*---------------------------------------------------------------------------*/
37 #ifndef IntegrationScheme_H
38 #define IntegrationScheme_H
41 #include "runTimeSelectionTables.H"
42 #include "dictionary.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class IntegrationScheme Declaration
51 \*---------------------------------------------------------------------------*/
54 class IntegrationScheme
58 //- Name of the Integration variable
61 //- Reference to the dictionary
62 const dictionary& dict_;
65 // Private Member Functions
67 //- Disallow default bitwise copy construct
68 IntegrationScheme(const IntegrationScheme&);
70 //- Disallow default bitwise assignment
71 void operator=(const IntegrationScheme&);
76 //- Runtime type information
77 TypeName("IntegrationScheme");
80 //- Declare runtime constructor selection table
82 declareRunTimeSelectionTable
89 const dictionary& dict
97 //- Construct from components
101 const dictionary& dict
107 //- Return a reference to the selected radiation model
108 static autoPtr<IntegrationScheme> New
111 const dictionary& dict
117 virtual ~IntegrationScheme();
122 //- Perform the Integration
123 virtual Type integrate
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 } // End namespace Foam
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 #define makeIntegrationScheme(Type) \
141 defineNamedTemplateTypeNameAndDebug(IntegrationScheme<Type>, 0); \
143 defineTemplateRunTimeSelectionTable \
145 IntegrationScheme<Type>, \
150 #define makeIntegrationSchemeType(SS, Type) \
152 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
154 IntegrationScheme<Type>::adddictionaryConstructorToTable<SS<Type> > \
155 add##SS##Type##ConstructorToTable_;
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 # include "IntegrationScheme.C"
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 // ************************************************************************* //