OpenFOAM logo
Open Source CFD Toolkit

EulerD2dt2Scheme.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-2005 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     EulerD2dt2Scheme
00027 
00028 Description
00029     First-order Euler implicit d2dt2 using the current and two previous
00030     time-step values.
00031 
00032 SourceFiles
00033     EulerD2dt2Scheme.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef EulerD2dt2Scheme_H
00038 #define EulerD2dt2Scheme_H
00039 
00040 #include "d2dt2Scheme.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00048 
00049 namespace fv
00050 {
00051 
00052 /*---------------------------------------------------------------------------*\
00053                        Class EulerD2dt2Scheme Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 template<class Type>
00057 class EulerD2dt2Scheme
00058 :
00059     public fv::d2dt2Scheme<Type>
00060 {
00061     // Private Member Functions
00062 
00063         //- Disallow default bitwise copy construct
00064         EulerD2dt2Scheme(const EulerD2dt2Scheme&);
00065 
00066         //- Disallow default bitwise assignment
00067         void operator=(const EulerD2dt2Scheme&);
00068 
00069 
00070 public:
00071 
00072     //- Runtime type information
00073     TypeName("Euler");
00074 
00075 
00076     // Constructors
00077 
00078         //- Construct from mesh
00079         EulerD2dt2Scheme(const fvMesh& mesh)
00080         :
00081             d2dt2Scheme<Type>(mesh)
00082         {}
00083 
00084         //- Construct from mesh and Istream
00085         EulerD2dt2Scheme(const fvMesh& mesh, Istream& is)
00086         :
00087             d2dt2Scheme<Type>(mesh, is)
00088         {}
00089 
00090 
00091     // Member Functions
00092 
00093         //- Return mesh reference
00094         const fvMesh& mesh() const
00095         {
00096             return fv::d2dt2Scheme<Type>::mesh();
00097         }
00098 
00099         tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
00100         (
00101             const GeometricField<Type, fvPatchField, volMesh>&
00102         );
00103 
00104         tmp<GeometricField<Type, fvPatchField, volMesh> > fvcD2dt2
00105         (
00106             const volScalarField&,
00107             const GeometricField<Type, fvPatchField, volMesh>&
00108         );
00109 
00110         tmp<fvMatrix<Type> > fvmD2dt2
00111         (
00112             GeometricField<Type, fvPatchField, volMesh>&
00113         );
00114 
00115         tmp<fvMatrix<Type> > fvmD2dt2
00116         (
00117             const dimensionedScalar&,
00118             GeometricField<Type, fvPatchField, volMesh>&
00119         );
00120 
00121         tmp<fvMatrix<Type> > fvmD2dt2
00122         (
00123             const volScalarField&,
00124             GeometricField<Type, fvPatchField, volMesh>&
00125         );
00126 };
00127 
00128 
00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00130 
00131 } // End namespace fv
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 } // End namespace Foam
00136 
00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00138 
00139 #ifdef NoRepository
00140 #   include "EulerD2dt2Scheme.C"
00141 #endif
00142 
00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00144 
00145 #endif
00146 
00147 // ************************************************************************* //
For further information go to www.openfoam.org