Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 #ifndef pointPatchInterpolation_H
00036 #define pointPatchInterpolation_H
00037 
00038 #include <OpenFOAM/primitivePatchInterpolation.H>
00039 #include <OpenFOAM/PtrList.H>
00040 #include <finiteVolume/volFieldsFwd.H>
00041 #include <OpenFOAM/pointFieldsFwd.H>
00042 #include <OpenFOAM/scalarList.H>
00043 #include <OpenFOAM/className.H>
00044 
00045 
00046 
00047 namespace Foam
00048 {
00049 
00050 
00051 class fvMesh;
00052 class pointMesh;
00053 
00054 
00055 
00056 
00057 
00058 class pointPatchInterpolation
00059 {
00060     
00061 
00062         const fvMesh& fvMesh_;
00063 
00064         
00065         PtrList<primitivePatchInterpolation> patchInterpolators_;
00066 
00067         
00068         labelList patchPatchPoints_;
00069 
00070         
00071         scalarListList patchPatchPointWeights_;
00072 
00073         labelList patchPatchPointConstraintPoints_;
00074         tensorField patchPatchPointConstraintTensors_;
00075 
00076 
00077     
00078 
00079         
00080         void makePatchPatchAddressing();
00081 
00082         
00083         void makePatchPatchWeights();
00084 
00085 
00086         
00087         pointPatchInterpolation(const pointPatchInterpolation&);
00088 
00089         
00090         void operator=(const pointPatchInterpolation&);
00091 
00092 
00093 public:
00094 
00095     
00096     ClassName("pointPatchInterpolation");
00097 
00098 
00099     
00100 
00101         
00102         pointPatchInterpolation(const fvMesh&);
00103 
00104 
00105     
00106 
00107         ~pointPatchInterpolation();
00108 
00109 
00110     
00111 
00112         
00113 
00114             const fvMesh& mesh() const
00115             {
00116                 return fvMesh_;
00117             }
00118 
00119 
00120         
00121 
00122             
00123             void updateMesh();
00124 
00125             
00126             bool movePoints();
00127 
00128 
00129     
00130 
00131         template<class Type>
00132         void interpolate
00133         (
00134             const GeometricField<Type, fvPatchField, volMesh>&,
00135             GeometricField<Type, pointPatchField, pointMesh>&,
00136             bool overrideFixedValue
00137         ) const;
00138 
00139         template<class Type>
00140         void applyCornerConstraints
00141         (
00142             GeometricField<Type, pointPatchField, pointMesh>& pf
00143         ) const;
00144 };
00145 
00146 
00147 template<>
00148 void pointPatchInterpolation::applyCornerConstraints<scalar>
00149 (
00150     GeometricField<scalar, pointPatchField, pointMesh>& pf
00151 ) const;
00152 
00153 
00154 
00155 
00156 } 
00157 
00158 
00159 
00160 #ifdef NoRepository
00161 #   include <finiteVolume/pointPatchInterpolate.C>
00162 #endif
00163 
00164 
00165 
00166 #endif
00167 
00168