OpenFOAM logo
Open Source CFD Toolkit

fvcDiv.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 Namespace
00026     fvc
00027 
00028 Description
00029     Calculate the divergence of the given field.
00030 
00031 SourceFiles
00032     fvcDiv.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 
00037 #ifndef fvcDiv_H
00038 #define fvcDiv_H
00039 
00040 #include "volFieldsFwd.H"
00041 #include "surfaceFieldsFwd.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049                      Namespace fvc functions Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 namespace fvc
00053 {
00054     template<class Type>
00055     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00056     (
00057         const GeometricField<Type, fvPatchField, surfaceMesh>&
00058     );
00059 
00060     template<class Type>
00061     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00062     (
00063         const tmp<GeometricField<Type, fvPatchField, surfaceMesh> >&
00064     );
00065 
00066 
00067     template<class Type>
00068     tmp
00069     <
00070         GeometricField
00071         <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
00072     > div
00073     (
00074         const GeometricField<Type, fvPatchField, volMesh>&,
00075         const word& name
00076     );
00077 
00078     template<class Type>
00079     tmp
00080     <
00081         GeometricField
00082         <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
00083     > div
00084     (
00085         const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00086         const word& name
00087     );
00088 
00089 
00090     template<class Type>
00091     tmp
00092     <
00093         GeometricField
00094         <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
00095     > div
00096     (
00097         const GeometricField<Type, fvPatchField, volMesh>&
00098     );
00099 
00100     template<class Type>
00101     tmp
00102     <
00103         GeometricField
00104         <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
00105     > div
00106     (
00107         const tmp<GeometricField<Type, fvPatchField, volMesh> >&
00108     );
00109 
00110 
00111     template<class Type>
00112     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00113     (
00114         const surfaceScalarField&,
00115         const GeometricField<Type, fvPatchField, volMesh>&,
00116         const word& name
00117     );
00118 
00119     template<class Type>
00120     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00121     (
00122         const tmp<surfaceScalarField>&,
00123         const GeometricField<Type, fvPatchField, volMesh>&,
00124         const word& name
00125     );
00126 
00127     template<class Type>
00128     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00129     (
00130         const surfaceScalarField&,
00131         const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00132         const word& name
00133     );
00134 
00135     template<class Type>
00136     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00137     (
00138         const tmp<surfaceScalarField>&,
00139         const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00140         const word& name
00141     );
00142 
00143 
00144     template<class Type>
00145     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00146     (
00147         const surfaceScalarField&,
00148         const GeometricField<Type, fvPatchField, volMesh>&
00149     );
00150 
00151     template<class Type>
00152     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00153     (
00154         const tmp<surfaceScalarField>&,
00155         const GeometricField<Type, fvPatchField, volMesh>&
00156     );
00157 
00158     template<class Type>
00159     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00160     (
00161         const surfaceScalarField&,
00162         const tmp<GeometricField<Type, fvPatchField, volMesh> >&
00163     );
00164 
00165     template<class Type>
00166     tmp<GeometricField<Type, fvPatchField, volMesh> > div
00167     (
00168         const tmp<surfaceScalarField>&,
00169         const tmp<GeometricField<Type, fvPatchField, volMesh> >&
00170     );
00171 }
00172 
00173 
00174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00175 
00176 } // End namespace Foam
00177 
00178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00179 
00180 #ifdef NoRepository
00181 #   include "fvcDiv.C"
00182 #endif
00183 
00184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00185 
00186 #endif
00187 
00188 // ************************************************************************* //
For further information go to www.openfoam.org