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
26 Foam::fv::EulerD2dt2Scheme
29 First-order Euler implicit d2dt2 using the current and two previous
35 \*---------------------------------------------------------------------------*/
37 #ifndef EulerD2dt2Scheme_H
38 #define EulerD2dt2Scheme_H
40 #include "d2dt2Scheme.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 /*---------------------------------------------------------------------------*\
53 Class EulerD2dt2Scheme Declaration
54 \*---------------------------------------------------------------------------*/
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&);
72 //- Runtime type information
78 //- Construct from mesh
79 EulerD2dt2Scheme(const fvMesh& mesh)
81 d2dt2Scheme<Type>(mesh)
84 //- Construct from mesh and Istream
85 EulerD2dt2Scheme(const fvMesh& mesh, Istream& is)
87 d2dt2Scheme<Type>(mesh, is)
93 //- Return mesh reference
94 const fvMesh& mesh() const
96 return fv::d2dt2Scheme<Type>::mesh();
99 tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
101 const GeometricField<Type, fvPatchField, volMesh>&
104 tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
106 const volScalarField&,
107 const GeometricField<Type, fvPatchField, volMesh>&
110 tmp<fvMatrix<Type> > fvmD2dt2
112 GeometricField<Type, fvPatchField, volMesh>&
115 tmp<fvMatrix<Type> > fvmD2dt2
117 const dimensionedScalar&,
118 GeometricField<Type, fvPatchField, volMesh>&
121 tmp<fvMatrix<Type> > fvmD2dt2
123 const volScalarField&,
124 GeometricField<Type, fvPatchField, volMesh>&
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace fv
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 } // End namespace Foam
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 # include "EulerD2dt2Scheme.C"
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 // ************************************************************************* //