OpenFOAM logo
Open Source CFD Toolkit

EulerFaDdtScheme.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     EulerDdtScheme
00027 
00028 Description
00029     Basic first-order Euler implicit/explicit ddt using only the current and
00030     previous time-step values.
00031 
00032 SourceFiles
00033     EulerDdtScheme.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef EulerFaDdtScheme_H
00038 #define EulerFaDdtScheme_H
00039 
00040 #include "faDdtScheme.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00048 
00049 namespace fa
00050 {
00051 
00052 /*---------------------------------------------------------------------------*\
00053                        Class EulerFaDdtScheme Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 template<class Type>
00057 class EulerFaDdtScheme
00058 :
00059     public fa::faDdtScheme<Type>
00060 {
00061     // Private Member Functions
00062 
00063         //- Disallow default bitwise copy construct
00064         EulerFaDdtScheme(const EulerFaDdtScheme&);
00065 
00066         //- Disallow default bitwise assignment
00067         void operator=(const EulerFaDdtScheme&);
00068 
00069 
00070 public:
00071 
00072     //- Runtime type information
00073     TypeName("Euler");
00074 
00075 
00076     // Constructors
00077 
00078         //- Construct from mesh
00079         EulerFaDdtScheme(const faMesh& mesh)
00080         :
00081             faDdtScheme<Type>(mesh)
00082         {}
00083 
00084         //- Construct from mesh and Istream
00085         EulerFaDdtScheme(const faMesh& mesh, Istream& is)
00086         :
00087             faDdtScheme<Type>(mesh, is)
00088         {}
00089 
00090 
00091     // Member Functions
00092 
00093         //- Return mesh reference
00094         const faMesh& mesh() const
00095         {
00096             return fa::faDdtScheme<Type>::mesh();
00097         }
00098 
00099         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt
00100         (
00101             const dimensioned<Type>
00102         );
00103 
00104         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt0
00105         (
00106             const dimensioned<Type>
00107         );
00108 
00109         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt
00110         (
00111             const GeometricField<Type, faPatchField, areaMesh>&
00112         );
00113 
00114         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt0
00115         (
00116             const GeometricField<Type, faPatchField, areaMesh>&
00117         );
00118 
00119         tmp<GeometricField<Type, faPatchField, edgeMesh> > facDdt0
00120         (
00121             const GeometricField<Type, faPatchField, edgeMesh>&
00122         );
00123 
00124         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt
00125         (
00126             const dimensionedScalar&,
00127             const GeometricField<Type, faPatchField, areaMesh>&
00128         );
00129 
00130         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt0
00131         (
00132             const dimensionedScalar&,
00133             const GeometricField<Type, faPatchField, areaMesh>&
00134         );
00135 
00136         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt
00137         (
00138             const areaScalarField&,
00139             const GeometricField<Type, faPatchField, areaMesh>&
00140         );
00141 
00142         tmp<GeometricField<Type, faPatchField, areaMesh> > facDdt0
00143         (
00144             const areaScalarField&,
00145             const GeometricField<Type, faPatchField, areaMesh>&
00146         );
00147 
00148         tmp<faMatrix<Type> > famDdt
00149         (
00150             GeometricField<Type, faPatchField, areaMesh>&
00151         );
00152 
00153         tmp<faMatrix<Type> > famDdt
00154         (
00155             const dimensionedScalar&,
00156             GeometricField<Type, faPatchField, areaMesh>&
00157         );
00158 
00159         tmp<faMatrix<Type> > famDdt
00160         (
00161             const areaScalarField&,
00162             GeometricField<Type, faPatchField, areaMesh>&
00163         );
00164 };
00165 
00166 
00167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00168 
00169 } // End namespace fa
00170 
00171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00172 
00173 } // End namespace Foam
00174 
00175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00176 
00177 #ifdef NoRepository
00178 #   include "EulerFaDdtScheme.C"
00179 #endif
00180 
00181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00182 
00183 #endif
00184 
00185 // ************************************************************************* //
For further information go to www.openfoam.org