initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / finiteVolume / finiteVolume / d2dt2Schemes / EulerD2dt2Scheme / EulerD2dt2Scheme.H
blobbca75562ed34931be3030ed240e468bd058a863c
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::fv::EulerD2dt2Scheme
28 Description
29     First-order Euler implicit d2dt2 using the current and two previous
30     time-step values.
32 SourceFiles
33     EulerD2dt2Scheme.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef EulerD2dt2Scheme_H
38 #define EulerD2dt2Scheme_H
40 #include "d2dt2Scheme.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 namespace fv
52 /*---------------------------------------------------------------------------*\
53                        Class EulerD2dt2Scheme Declaration
54 \*---------------------------------------------------------------------------*/
56 template<class Type>
57 class EulerD2dt2Scheme
59     public fv::d2dt2Scheme<Type>
61     // Private Member Functions
63         //- Disallow default bitwise copy construct
64         EulerD2dt2Scheme(const EulerD2dt2Scheme&);
66         //- Disallow default bitwise assignment
67         void operator=(const EulerD2dt2Scheme&);
70 public:
72     //- Runtime type information
73     TypeName("Euler");
76     // Constructors
78         //- Construct from mesh
79         EulerD2dt2Scheme(const fvMesh& mesh)
80         :
81             d2dt2Scheme<Type>(mesh)
82         {}
84         //- Construct from mesh and Istream
85         EulerD2dt2Scheme(const fvMesh& mesh, Istream& is)
86         :
87             d2dt2Scheme<Type>(mesh, is)
88         {}
91     // Member Functions
93         //- Return mesh reference
94         const fvMesh& mesh() const
95         {
96             return fv::d2dt2Scheme<Type>::mesh();
97         }
99         tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
100         (
101             const GeometricField<Type, fvPatchField, volMesh>&
102         );
104         tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
105         (
106             const volScalarField&,
107             const GeometricField<Type, fvPatchField, volMesh>&
108         );
110         tmp<fvMatrix<Type> > fvmD2dt2
111         (
112             GeometricField<Type, fvPatchField, volMesh>&
113         );
115         tmp<fvMatrix<Type> > fvmD2dt2
116         (
117             const dimensionedScalar&,
118             GeometricField<Type, fvPatchField, volMesh>&
119         );
121         tmp<fvMatrix<Type> > fvmD2dt2
122         (
123             const volScalarField&,
124             GeometricField<Type, fvPatchField, volMesh>&
125         );
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace fv
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 } // End namespace Foam
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 #ifdef NoRepository
140 #   include "EulerD2dt2Scheme.C"
141 #endif
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 #endif
147 // ************************************************************************* //