OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide 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-2009 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 InNamespace
00026     Foam::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 DimensionedField<Type, volMesh>&,
00059             GeometricField<Type, fvPatchField, volMesh>&
00060         );
00061 
00062         template<class Type>
00063         tmp<fvMatrix<Type> > Su
00064         (
00065             const tmp<DimensionedField<Type, volMesh> >&,
00066             GeometricField<Type, fvPatchField, volMesh>&
00067         );
00068 
00069         template<class Type>
00070         tmp<fvMatrix<Type> > Su
00071         (
00072             const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00073             GeometricField<Type, fvPatchField, volMesh>&
00074         );
00075 
00076         template<class Type>
00077         zeroField Su
00078         (
00079             const zeroField&,
00080             GeometricField<Type, fvPatchField, volMesh>&
00081         );
00082 
00083 
00084     // Implicit source
00085 
00086         template<class Type>
00087         tmp<fvMatrix<Type> > Sp
00088         (
00089             const DimensionedField<scalar, volMesh>&,
00090             GeometricField<Type, fvPatchField, volMesh>&
00091         );
00092 
00093         template<class Type>
00094         tmp<fvMatrix<Type> > Sp
00095         (
00096             const tmp<DimensionedField<scalar, volMesh> >&,
00097             GeometricField<Type, fvPatchField, volMesh>&
00098         );
00099 
00100         template<class Type>
00101         tmp<fvMatrix<Type> > Sp
00102         (
00103             const tmp<volScalarField>&,
00104             GeometricField<Type, fvPatchField, volMesh>&
00105         );
00106 
00107 
00108         template<class Type>
00109         tmp<fvMatrix<Type> > Sp
00110         (
00111             const dimensionedScalar&,
00112             GeometricField<Type, fvPatchField, volMesh>&
00113         );
00114 
00115 
00116         template<class Type>
00117         zeroField Sp
00118         (
00119             const zeroField&,
00120             GeometricField<Type, fvPatchField, volMesh>&
00121         );
00122 
00123 
00124     // Implicit/Explicit source depending on sign of coefficient
00125 
00126         template<class Type>
00127         tmp<fvMatrix<Type> > SuSp
00128         (
00129             const DimensionedField<scalar, volMesh>&,
00130             GeometricField<Type, fvPatchField, volMesh>&
00131         );
00132 
00133         template<class Type>
00134         tmp<fvMatrix<Type> > SuSp
00135         (
00136             const tmp<DimensionedField<scalar, volMesh> >&,
00137             GeometricField<Type, fvPatchField, volMesh>&
00138         );
00139 
00140         template<class Type>
00141         tmp<fvMatrix<Type> > SuSp
00142         (
00143             const tmp<volScalarField>&,
00144             GeometricField<Type, fvPatchField, volMesh>&
00145         );
00146 
00147         template<class Type>
00148         zeroField SuSp
00149         (
00150             const zeroField&,
00151             GeometricField<Type, fvPatchField, volMesh>&
00152         );
00153 }
00154 
00155 
00156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00157 
00158 } // End namespace Foam
00159 
00160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00161 
00162 #ifdef NoRepository
00163 #   include "fvmSup.C"
00164 #endif
00165 
00166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00167 
00168 #endif
00169 
00170 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd