OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

fvmSup.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-2007 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 Namespace
00026     fvm
00027 
00028 Description
00029     Calculate the matrix for implicit and explicit sources.
00030 
00031 SourceFiles
00032     fvmSup.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef fvmSup_H
00037 #define fvmSup_H
00038 
00039 #include "volFieldsFwd.H"
00040 #include "fvMatrix.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                      Namespace fvm functions Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 namespace fvm
00052 {
00053    // Explicit source
00054 
00055         template<class Type>
00056         tmp<fvMatrix<Type> > Su
00057         (
00058             const GeometricField<Type, fvPatchField, volMesh>&,
00059             GeometricField<Type, fvPatchField, volMesh>&
00060         );
00061 
00062         template<class Type>
00063         tmp<fvMatrix<Type> > Su
00064         (
00065             const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00066             GeometricField<Type, fvPatchField, volMesh>&
00067         );
00068 
00069         template<class Type>
00070         Zero Su
00071         (
00072             const Zero&,
00073             GeometricField<Type, fvPatchField, volMesh>&
00074         );
00075 
00076 
00077     // Implicit source
00078 
00079         template<class Type>
00080         tmp<fvMatrix<Type> > Sp
00081         (
00082             const volScalarField&,
00083             GeometricField<Type, fvPatchField, volMesh>&
00084         );
00085 
00086         template<class Type>
00087         tmp<fvMatrix<Type> > Sp
00088         (
00089             const tmp<volScalarField>&,
00090             GeometricField<Type, fvPatchField, volMesh>&
00091         );
00092 
00093 
00094         template<class Type>
00095         tmp<fvMatrix<Type> > Sp
00096         (
00097             const dimensionedScalar&,
00098             GeometricField<Type, fvPatchField, volMesh>&
00099         );
00100 
00101 
00102         template<class Type>
00103         Zero Sp
00104         (
00105             const Zero&,
00106             GeometricField<Type, fvPatchField, volMesh>&
00107         );
00108 
00109 
00110     // Implicit/Explicit source depending on sign of coefficient
00111 
00112         template<class Type>
00113         tmp<fvMatrix<Type> > SuSp
00114         (
00115             const volScalarField&,
00116             GeometricField<Type, fvPatchField, volMesh>&
00117         );
00118 
00119         template<class Type>
00120         tmp<fvMatrix<Type> > SuSp
00121         (
00122             const tmp<volScalarField>&,
00123             GeometricField<Type, fvPatchField, volMesh>&
00124         );
00125 
00126         template<class Type>
00127         Zero SuSp
00128         (
00129             const Zero&,
00130             GeometricField<Type, fvPatchField, volMesh>&
00131         );
00132 }
00133 
00134 
00135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00136 
00137 } // End namespace Foam
00138 
00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00140 
00141 #ifdef NoRepository
00142 #   include "fvmSup.C"
00143 #endif
00144 
00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00146 
00147 #endif
00148 
00149 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd