1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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
33 \*---------------------------------------------------------------------------*/
35 #ifndef edgeInterpolate_H
36 #define edgeInterpolate_H
39 #include "areaFieldsFwd.H"
40 #include "edgeFieldsFwd.H"
41 #include "edgeInterpolationScheme.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Namespace fa functions Declaration
50 \*---------------------------------------------------------------------------*/
54 //- Return weighting factors for scheme given from Istream
56 static tmp<edgeInterpolationScheme<Type> > scheme
58 const edgeScalarField& faceFlux,
62 //- Return weighting factors for scheme given by name in dictionary
64 static tmp<edgeInterpolationScheme<Type> > scheme
66 const edgeScalarField& faceFlux,
71 //- Return weighting factors for scheme given from Istream
73 static tmp<edgeInterpolationScheme<Type> > scheme
79 //- Return weighting factors for scheme given by name in dictionary
81 static tmp<edgeInterpolationScheme<Type> > scheme
88 //- Interpolate field onto faces using scheme given by Istream
90 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
92 const GeometricField<Type, faPatchField, areaMesh>& tvf,
93 const edgeScalarField& faceFlux,
97 //- Interpolate field onto faces using scheme given by name in faSchemes
99 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
101 const GeometricField<Type, faPatchField, areaMesh>& tvf,
102 const edgeScalarField& faceFlux,
106 //- Interpolate field onto faces using scheme given by name in faSchemes
108 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
110 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf,
111 const edgeScalarField& faceFlux,
115 //- Interpolate field onto faces using scheme given by name in faSchemes
117 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
119 const GeometricField<Type, faPatchField, areaMesh>& tvf,
120 const tmp<edgeScalarField>& faceFlux,
124 //- Interpolate field onto faces using scheme given by name in faSchemes
126 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
128 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf,
129 const tmp<edgeScalarField>& faceFlux,
134 //- Interpolate field onto faces using scheme given by Istream
136 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
138 const GeometricField<Type, faPatchField, areaMesh>& tvf,
142 //- Interpolate field onto faces using scheme given by name in faSchemes
144 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
146 const GeometricField<Type, faPatchField, areaMesh>& tvf,
150 //- Interpolate field onto faces using scheme given by name in faSchemes
152 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
154 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf,
159 //- Interpolate tmp field onto faces using central differencing
161 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
163 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf
166 //- Interpolate field onto faces using central differencing
168 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
170 const GeometricField<Type, faPatchField, areaMesh>& tvf
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 } // End namespace Foam
179 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 # include "edgeInterpolate.C"
185 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 // ************************************************************************* //