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::volPointInterpolation
29 Foam::volPointInterpolation
32 volPointInterpolation.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef volPointInterpolation_H
38 #define volPointInterpolation_H
40 #include "MeshObject.H"
41 #include "pointPatchInterpolation.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class volPointInterpolation Declaration
53 \*---------------------------------------------------------------------------*/
55 class volPointInterpolation
57 public MeshObject<fvMesh, volPointInterpolation>
61 //- Boundary interpolation engine.
62 pointPatchInterpolation boundaryInterpolator_;
64 //- Interpolation scheme weighting factor array.
65 scalarListList pointWeights_;
68 // Private member functions
70 //- Construct point weighting factors
73 //- Disallow default bitwise copy construct
74 volPointInterpolation(const volPointInterpolation&);
76 //- Disallow default bitwise assignment
77 void operator=(const volPointInterpolation&);
82 // Declare name of the class and its debug switch
83 ClassName("volPointInterpolation");
88 //- Constructor given fvMesh and pointMesh.
89 explicit volPointInterpolation(const fvMesh&);
94 ~volPointInterpolation();
101 const fvMesh& mesh() const
103 return boundaryInterpolator_.mesh();
109 //- Update mesh topology using the morph engine
112 //- Correct weighting factors for moving mesh.
116 // Interpolation functions
118 //- Interpolate internal field from volField to pointField
119 // using inverse distance weighting
121 void interpolateInternalField
123 const GeometricField<Type, fvPatchField, volMesh>&,
124 GeometricField<Type, pointPatchField, pointMesh>&
127 //- Interpolate from volField to pointField
128 // using inverse distance weighting
132 const GeometricField<Type, fvPatchField, volMesh>&,
133 GeometricField<Type, pointPatchField, pointMesh>&
136 //- Interpolate volField using inverse distance weighting
137 // returning pointField with the same patchField types
139 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
141 const GeometricField<Type, fvPatchField, volMesh>&,
142 const wordList& patchFieldTypes
145 //- Interpolate tmp<volField> using inverse distance weighting
146 // returning pointField with the same patchField types
148 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
150 const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
151 const wordList& patchFieldTypes
154 //- Interpolate volField using inverse distance weighting
155 // returning pointField
157 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
159 const GeometricField<Type, fvPatchField, volMesh>&
162 //- Interpolate tmp<volField> using inverse distance weighting
163 // returning pointField
165 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
167 const tmp<GeometricField<Type, fvPatchField, volMesh> >&
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 } // End namespace Foam
176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 # include "volPointInterpolate.C"
182 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 // ************************************************************************* //