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::pointPatchInterpolation
29 Foam::pointPatchInterpolation
32 pointPatchInterpolation.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef pointPatchInterpolation_H
37 #define pointPatchInterpolation_H
39 #include "primitivePatchInterpolation.H"
41 #include "volFieldsFwd.H"
42 #include "pointFieldsFwd.H"
43 #include "scalarList.H"
44 #include "className.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 // Forward declaration of classes
55 /*---------------------------------------------------------------------------*\
56 Class pointPatchInterpolation Declaration
57 \*---------------------------------------------------------------------------*/
59 class pointPatchInterpolation
63 const fvMesh& fvMesh_;
64 const pointMesh& pointMesh_;
66 //- Primitive patch interpolators
67 PtrList<primitivePatchInterpolation> patchInterpolators_;
69 //- List of patch-patch edge points that require special treatement
70 labelList patchPatchPoints_;
72 //- Weights for patch-patch boundary points
73 scalarListList patchPatchPointWeights_;
75 labelList patchPatchPointConstraintPoints_;
76 tensorField patchPatchPointConstraintTensors_;
79 // Private member functions
81 //- Construct addressing for patch-patch boundary points
82 void makePatchPatchAddressing();
84 //- Construct weights for patch-patch boundary points
85 void makePatchPatchWeights();
88 //- Disallow default bitwise copy construct
89 pointPatchInterpolation(const pointPatchInterpolation&);
91 //- Disallow default bitwise assignment
92 void operator=(const pointPatchInterpolation&);
97 // Declare name of the class and its debug switch
98 ClassName("pointPatchInterpolation");
103 //- Constructor given fvMesh and pointMesh.
104 pointPatchInterpolation(const fvMesh&, const pointMesh&);
109 ~pointPatchInterpolation();
116 const fvMesh& mesh() const
121 const pointMesh& pMesh() const
129 //- Update mesh topology using the morph engine
132 //- Correct weighting factors for moving mesh.
136 // Interpolation functions
141 const GeometricField<Type, fvPatchField, volMesh>&,
142 GeometricField<Type, pointPatchField, pointMesh>&,
143 bool overrideFixedValue
147 void applyCornerConstraints
149 GeometricField<Type, pointPatchField, pointMesh>& pf
155 void pointPatchInterpolation::applyCornerConstraints<scalar>
157 GeometricField<scalar, pointPatchField, pointMesh>& pf
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 } // End namespace Foam
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 # include "pointPatchInterpolate.C"
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 // ************************************************************************* //