1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 \*---------------------------------------------------------------------------*/
29 #include "multivariateGaussConvectionScheme.H"
30 #include "gaussConvectionScheme.H"
31 #include "fvMatrices.H"
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
47 multivariateGaussConvectionScheme<Type>::interpolate
49 const surfaceScalarField& faceFlux,
50 const GeometricField<Type, fvPatchField, volMesh>& vf
53 return gaussConvectionScheme<Type>
58 ).interpolate(faceFlux, vf);
63 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
64 multivariateGaussConvectionScheme<Type>::flux
66 const surfaceScalarField& faceFlux,
67 const GeometricField<Type, fvPatchField, volMesh>& vf
70 return gaussConvectionScheme<Type>
81 multivariateGaussConvectionScheme<Type>::fvmDiv
83 const surfaceScalarField& faceFlux,
84 GeometricField<Type, fvPatchField, volMesh>& vf
87 return gaussConvectionScheme<Type>
92 ).fvmDiv(faceFlux, vf);
97 tmp<GeometricField<Type, fvPatchField, volMesh> >
98 multivariateGaussConvectionScheme<Type>::fvcDiv
100 const surfaceScalarField& faceFlux,
101 const GeometricField<Type, fvPatchField, volMesh>& vf
104 return gaussConvectionScheme<Type>
109 ).fvcDiv(faceFlux, vf);
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 } // End namespace fv
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 } // End namespace Foam
121 // ************************************************************************* //