1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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
29 Abstract base class for d2dt2 schemes.
34 \*---------------------------------------------------------------------------*/
40 #include "dimensionedType.H"
41 #include "volFieldsFwd.H"
42 #include "surfaceFieldsFwd.H"
44 #include "runTimeSelectionTables.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 /*---------------------------------------------------------------------------*\
62 Class d2dt2Scheme Declaration
63 \*---------------------------------------------------------------------------*/
78 // Private Member Functions
80 //- Disallow copy construct
81 d2dt2Scheme(const d2dt2Scheme&);
83 //- Disallow default bitwise assignment
84 void operator=(const d2dt2Scheme&);
89 //- Runtime type information
90 virtual const word& type() const = 0;
93 // Declare run-time constructor selection tables
95 declareRunTimeSelectionTable
100 (const fvMesh& mesh, Istream& schemeData),
107 //- Construct from mesh
108 d2dt2Scheme(const fvMesh& mesh)
113 //- Construct from mesh and Istream
114 d2dt2Scheme(const fvMesh& mesh, Istream&)
122 //- Return a pointer to a new d2dt2Scheme created on freestore
123 static tmp<d2dt2Scheme<Type> > New
132 virtual ~d2dt2Scheme();
137 //- Return mesh reference
138 const fvMesh& mesh() const
143 virtual tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
145 const GeometricField<Type, fvPatchField, volMesh>&
148 virtual tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
150 const volScalarField&,
151 const GeometricField<Type, fvPatchField, volMesh>&
154 virtual tmp<fvMatrix<Type> > fvmD2dt2
156 GeometricField<Type, fvPatchField, volMesh>&
159 virtual tmp<fvMatrix<Type> > fvmD2dt2
161 const dimensionedScalar&,
162 GeometricField<Type, fvPatchField, volMesh>&
165 virtual tmp<fvMatrix<Type> > fvmD2dt2
167 const volScalarField&,
168 GeometricField<Type, fvPatchField, volMesh>&
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 } // End namespace fv
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 } // End namespace Foam
181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 // Add the patch constructor functions to the hash tables
185 #define makeFvD2dt2TypeScheme(SS, Type) \
187 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
189 d2dt2Scheme<Type>::addIstreamConstructorToTable<SS<Type> > \
190 add##SS##Type##IstreamConstructorToTable_;
193 #define makeFvD2dt2Scheme(SS) \
195 makeFvD2dt2TypeScheme(SS, scalar) \
196 makeFvD2dt2TypeScheme(SS, vector) \
197 makeFvD2dt2TypeScheme(SS, sphericalTensor) \
198 makeFvD2dt2TypeScheme(SS, symmTensor) \
199 makeFvD2dt2TypeScheme(SS, tensor)
202 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
205 # include "d2dt2Scheme.C"
208 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
212 // ************************************************************************* //