OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

surfaceInterpolate.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-2009 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 InNamespace
00026     Foam::fvc
00027 
00028 Description
00029     Surface Interpolation
00030 
00031 SourceFiles
00032     surfaceInterpolate.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef surfaceInterpolate_H
00037 #define surfaceInterpolate_H
00038 
00039 #include "tmp.H"
00040 #include "volFieldsFwd.H"
00041 #include "surfaceFieldsFwd.H"
00042 #include "surfaceInterpolationScheme.H"
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050                      Namespace fvc functions Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 namespace fvc
00054 {
00055     //- Return weighting factors for scheme given from Istream
00056     template<class Type>
00057     static tmp<surfaceInterpolationScheme<Type> > scheme
00058     (
00059         const surfaceScalarField& faceFlux,
00060         Istream& schemeData
00061     );
00062 
00063     //- Return weighting factors for scheme given by name in dictionary
00064     template<class Type>
00065     static tmp<surfaceInterpolationScheme<Type> > scheme
00066     (
00067         const surfaceScalarField& faceFlux,
00068         const word& name
00069     );
00070 
00071 
00072     //- Return weighting factors for scheme given from Istream
00073     template<class Type>
00074     static tmp<surfaceInterpolationScheme<Type> > scheme
00075     (
00076         const fvMesh& mesh,
00077         Istream& schemeData
00078     );
00079 
00080     //- Return weighting factors for scheme given by name in dictionary
00081     template<class Type>
00082     static tmp<surfaceInterpolationScheme<Type> > scheme
00083     (
00084         const fvMesh& mesh,
00085         const word& name
00086     );
00087 
00088 
00089     //- Interpolate field onto faces using scheme given by Istream
00090     template<class Type>
00091     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00092     (
00093         const GeometricField<Type, fvPatchField, volMesh>& tvf,
00094         const surfaceScalarField& faceFlux,
00095         Istream& schemeData
00096     );
00097 
00098     //- Interpolate field onto faces using scheme given by name in fvSchemes
00099     template<class Type>
00100     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00101     (
00102         const GeometricField<Type, fvPatchField, volMesh>& tvf,
00103         const surfaceScalarField& faceFlux,
00104         const word& name
00105     );
00106 
00107     //- Interpolate field onto faces using scheme given by name in fvSchemes
00108     template<class Type>
00109     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00110     (
00111         const tmp<GeometricField<Type, fvPatchField, volMesh> >& tvf,
00112         const surfaceScalarField& faceFlux,
00113         const word& name
00114     );
00115 
00116     //- Interpolate field onto faces using scheme given by name in fvSchemes
00117     template<class Type>
00118     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00119     (
00120         const GeometricField<Type, fvPatchField, volMesh>& tvf,
00121         const tmp<surfaceScalarField>& faceFlux,
00122         const word& name
00123     );
00124 
00125     //- Interpolate field onto faces using scheme given by name in fvSchemes
00126     template<class Type>
00127     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00128     (
00129         const tmp<GeometricField<Type, fvPatchField, volMesh> >& tvf,
00130         const tmp<surfaceScalarField>& faceFlux,
00131         const word& name
00132     );
00133 
00134 
00135     //- Interpolate field onto faces using scheme given by Istream
00136     template<class Type>
00137     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00138     (
00139         const GeometricField<Type, fvPatchField, volMesh>& tvf,
00140         Istream& schemeData
00141     );
00142 
00143     //- Interpolate field onto faces using scheme given by name in fvSchemes
00144     template<class Type>
00145     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00146     (
00147         const GeometricField<Type, fvPatchField, volMesh>& tvf,
00148         const word& name
00149     );
00150 
00151     //- Interpolate field onto faces using scheme given by name in fvSchemes
00152     template<class Type>
00153     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00154     (
00155         const tmp<GeometricField<Type, fvPatchField, volMesh> >& tvf,
00156         const word& name
00157     );
00158 
00159 
00160     //- Interpolate tmp field onto faces using central differencing
00161     template<class Type>
00162     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00163     (
00164         const tmp<GeometricField<Type, fvPatchField, volMesh> >& tvf
00165     );
00166 
00167     //- Interpolate field onto faces using central differencing
00168     template<class Type>
00169     static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
00170     (
00171         const GeometricField<Type, fvPatchField, volMesh>& tvf
00172     );
00173 }
00174 
00175 
00176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00177 
00178 } // End namespace Foam
00179 
00180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00181 
00182 #ifdef NoRepository
00183 #   include "surfaceInterpolate.C"
00184 #endif
00185 
00186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00187 
00188 #endif
00189 
00190 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd