1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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::volPointInterpolation
29 Foam::volPointInterpolation
32 volPointInterpolation.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef volPointInterpolation_H
38 #define volPointInterpolation_H
40 #include "pointPatchInterpolation.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class volPointInterpolation Declaration
52 \*---------------------------------------------------------------------------*/
54 class volPointInterpolation
58 //- Boundary interpolation engine.
59 pointPatchInterpolation boundaryInterpolator_;
61 //- Interpolation scheme weighting factor array.
62 scalarListList pointWeights_;
65 // Private member functions
67 //- Construct point weighting factors
70 //- Disallow default bitwise copy construct
71 volPointInterpolation(const volPointInterpolation&);
73 //- Disallow default bitwise assignment
74 void operator=(const volPointInterpolation&);
79 // Declare name of the class and its debug switch
80 ClassName("volPointInterpolation");
85 //- Constructor given fvMesh and pointMesh.
86 volPointInterpolation(const fvMesh&, const pointMesh&);
91 ~volPointInterpolation();
98 const fvMesh& mesh() const
100 return boundaryInterpolator_.mesh();
103 const pointMesh& pMesh() const
105 return boundaryInterpolator_.pMesh();
111 //- Update mesh topology using the morph engine
114 //- Correct weighting factors for moving mesh.
118 // Interpolation functions
120 //- Interpolate internal field from volField to pointField
121 // using inverse distance weighting
123 void interpolateInternalField
125 const GeometricField<Type, fvPatchField, volMesh>&,
126 GeometricField<Type, pointPatchField, pointMesh>&
129 //- Interpolate from volField to pointField
130 // using inverse distance weighting
134 const GeometricField<Type, fvPatchField, volMesh>&,
135 GeometricField<Type, pointPatchField, pointMesh>&
138 //- Interpolate volField using inverse distance weighting
139 // returning pointField with the same patchField types
141 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
143 const GeometricField<Type, fvPatchField, volMesh>&,
144 const wordList& patchFieldTypes
147 //- Interpolate tmp<volField> using inverse distance weighting
148 // returning pointField with the same patchField types
150 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
152 const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
153 const wordList& patchFieldTypes
156 //- Interpolate volField using inverse distance weighting
157 // returning pointField
159 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
161 const GeometricField<Type, fvPatchField, volMesh>&
164 //- Interpolate tmp<volField> using inverse distance weighting
165 // returning pointField
167 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
169 const tmp<GeometricField<Type, fvPatchField, volMesh> >&
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 } // End namespace Foam
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181 # include "volPointInterpolate.C"
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 // ************************************************************************* //