FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 InNamespace
00025     Foam::fvm
00026 
00027 Description
00028     Calculate the matrix for implicit and explicit sources.
00029 
00030 SourceFiles
00031     fvmSup.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef fvmSup_H
00036 #define fvmSup_H
00037 
00038 #include <finiteVolume/volFieldsFwd.H>
00039 #include <finiteVolume/fvMatrix.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                      Namespace fvm functions Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 namespace fvm
00051 {
00052    // Explicit source
00053 
00054         template<class Type>
00055         tmp<fvMatrix<Type> > Su
00056         (
00057             const DimensionedField<Type, volMesh>&,
00058             GeometricField<Type, fvPatchField, volMesh>&
00059         );
00060 
00061         template<class Type>
00062         tmp<fvMatrix<Type> > Su
00063         (
00064             const tmp<DimensionedField<Type, volMesh> >&,
00065             GeometricField<Type, fvPatchField, volMesh>&
00066         );
00067 
00068         template<class Type>
00069         tmp<fvMatrix<Type> > Su
00070         (
00071             const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00072             GeometricField<Type, fvPatchField, volMesh>&
00073         );
00074 
00075         template<class Type>
00076         zeroField Su
00077         (
00078             const zeroField&,
00079             GeometricField<Type, fvPatchField, volMesh>&
00080         );
00081 
00082 
00083     // Implicit source
00084 
00085         template<class Type>
00086         tmp<fvMatrix<Type> > Sp
00087         (
00088             const DimensionedField<scalar, volMesh>&,
00089             GeometricField<Type, fvPatchField, volMesh>&
00090         );
00091 
00092         template<class Type>
00093         tmp<fvMatrix<Type> > Sp
00094         (
00095             const tmp<DimensionedField<scalar, volMesh> >&,
00096             GeometricField<Type, fvPatchField, volMesh>&
00097         );
00098 
00099         template<class Type>
00100         tmp<fvMatrix<Type> > Sp
00101         (
00102             const tmp<volScalarField>&,
00103             GeometricField<Type, fvPatchField, volMesh>&
00104         );
00105 
00106 
00107         template<class Type>
00108         tmp<fvMatrix<Type> > Sp
00109         (
00110             const dimensionedScalar&,
00111             GeometricField<Type, fvPatchField, volMesh>&
00112         );
00113 
00114 
00115         template<class Type>
00116         zeroField Sp
00117         (
00118             const zeroField&,
00119             GeometricField<Type, fvPatchField, volMesh>&
00120         );
00121 
00122 
00123     // Implicit/Explicit source depending on sign of coefficient
00124 
00125         template<class Type>
00126         tmp<fvMatrix<Type> > SuSp
00127         (
00128             const DimensionedField<scalar, volMesh>&,
00129             GeometricField<Type, fvPatchField, volMesh>&
00130         );
00131 
00132         template<class Type>
00133         tmp<fvMatrix<Type> > SuSp
00134         (
00135             const tmp<DimensionedField<scalar, volMesh> >&,
00136             GeometricField<Type, fvPatchField, volMesh>&
00137         );
00138 
00139         template<class Type>
00140         tmp<fvMatrix<Type> > SuSp
00141         (
00142             const tmp<volScalarField>&,
00143             GeometricField<Type, fvPatchField, volMesh>&
00144         );
00145 
00146         template<class Type>
00147         zeroField SuSp
00148         (
00149             const zeroField&,
00150             GeometricField<Type, fvPatchField, volMesh>&
00151         );
00152 }
00153 
00154 
00155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00156 
00157 } // End namespace Foam
00158 
00159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00160 
00161 #ifdef NoRepository
00162 #   include <finiteVolume/fvmSup.C>
00163 #endif
00164 
00165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00166 
00167 #endif
00168 
00169 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines