1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
32 \*---------------------------------------------------------------------------*/
34 #ifndef edgeInterpolate_H
35 #define edgeInterpolate_H
38 #include "areaFieldsFwd.H"
39 #include "edgeFieldsFwd.H"
40 #include "edgeInterpolationScheme.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Namespace fa functions Declaration
49 \*---------------------------------------------------------------------------*/
53 //- Return weighting factors for scheme given from Istream
55 static tmp<edgeInterpolationScheme<Type> > scheme
57 const edgeScalarField& faceFlux,
61 //- Return weighting factors for scheme given by name in dictionary
63 static tmp<edgeInterpolationScheme<Type> > scheme
65 const edgeScalarField& faceFlux,
70 //- Return weighting factors for scheme given from Istream
72 static tmp<edgeInterpolationScheme<Type> > scheme
78 //- Return weighting factors for scheme given by name in dictionary
80 static tmp<edgeInterpolationScheme<Type> > scheme
87 //- Interpolate field onto faces using scheme given by Istream
89 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
91 const GeometricField<Type, faPatchField, areaMesh>& tvf,
92 const edgeScalarField& faceFlux,
96 //- Interpolate field onto faces using scheme given by name in faSchemes
98 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
100 const GeometricField<Type, faPatchField, areaMesh>& tvf,
101 const edgeScalarField& faceFlux,
105 //- Interpolate field onto faces using scheme given by name in faSchemes
107 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
109 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf,
110 const edgeScalarField& faceFlux,
114 //- Interpolate field onto faces using scheme given by name in faSchemes
116 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
118 const GeometricField<Type, faPatchField, areaMesh>& tvf,
119 const tmp<edgeScalarField>& faceFlux,
123 //- Interpolate field onto faces using scheme given by name in faSchemes
125 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
127 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf,
128 const tmp<edgeScalarField>& faceFlux,
133 //- Interpolate field onto faces using scheme given by Istream
135 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
137 const GeometricField<Type, faPatchField, areaMesh>& tvf,
141 //- Interpolate field onto faces using scheme given by name in faSchemes
143 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
145 const GeometricField<Type, faPatchField, areaMesh>& tvf,
149 //- Interpolate field onto faces using scheme given by name in faSchemes
151 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
153 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf,
158 //- Interpolate tmp field onto faces using central differencing
160 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
162 const tmp<GeometricField<Type, faPatchField, areaMesh> >& tvf
165 //- Interpolate field onto faces using central differencing
167 static tmp<GeometricField<Type, faePatchField, edgeMesh> > interpolate
169 const GeometricField<Type, faPatchField, areaMesh>& tvf
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 } // End namespace Foam
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181 # include "edgeInterpolate.C"
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 // ************************************************************************* //