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
26 Foam::fv::multivariateGaussConvectionScheme
29 Basic second-order convection using face-gradients and Gauss' theorem.
32 multivariateGaussConvectionScheme.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef multivariateGaussConvectionScheme_H
37 #define multivariateGaussConvectionScheme_H
39 #include "convectionScheme.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class multivariateGaussConvectionScheme Declaration
53 \*---------------------------------------------------------------------------*/
56 class multivariateGaussConvectionScheme
58 public fv::convectionScheme<Type>
62 tmp<multivariateSurfaceInterpolationScheme<Type> > tinterpScheme_;
67 //- Runtime type information
73 //- Construct from flux and Istream
74 multivariateGaussConvectionScheme
77 const typename multivariateSurfaceInterpolationScheme<Type>::
79 const surfaceScalarField& faceFlux,
83 convectionScheme<Type>(mesh, faceFlux),
86 multivariateSurfaceInterpolationScheme<Type>::New
88 mesh, fields, faceFlux, is
96 tmp<multivariateSurfaceInterpolationScheme<Type> >
97 interpolationScheme() const
99 return tinterpScheme_;
102 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
104 const surfaceScalarField&,
105 const GeometricField<Type, fvPatchField, volMesh>&
108 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > flux
110 const surfaceScalarField&,
111 const GeometricField<Type, fvPatchField, volMesh>&
114 tmp<fvMatrix<Type> > fvmDiv
116 const surfaceScalarField&,
117 GeometricField<Type, fvPatchField, volMesh>&
120 tmp<GeometricField<Type, fvPatchField, volMesh> > fvcDiv
122 const surfaceScalarField&,
123 const GeometricField<Type, fvPatchField, volMesh>&
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 } // End namespace fv
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 # include "multivariateGaussConvectionScheme.C"
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 // ************************************************************************* //