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 "primitivePatchInterpolation.H"
00039 #include "volFieldsFwd.H"
00040 #include "pointFieldsFwd.H"
00041 #include "scalarList.H"
00042 #include "className.H"
00043
00044
00045
00046 namespace Foam
00047 {
00048
00049 class fvMesh;
00050 class pointMesh;
00051
00052
00053
00054
00055
00056 class pointPatchInterpolation
00057 {
00058
00059
00060 const fvMesh& fvMesh_;
00061 const pointMesh& pointMesh_;
00062
00063
00064 PtrList<primitivePatchInterpolation> patchInterpolators_;
00065
00066
00067 labelList patchPatchPoints_;
00068
00069
00070 scalarListList patchPatchPointWeights_;
00071
00072 labelList patchPatchPointConstraintPoints_;
00073 tensorField patchPatchPointConstraintTensors_;
00074
00075
00076
00077
00078
00079 void makePatchPatchAddressing();
00080
00081
00082 void makePatchPatchWeights();
00083
00084
00085
00086 pointPatchInterpolation(const pointPatchInterpolation&);
00087
00088
00089 void operator=(const pointPatchInterpolation&);
00090
00091
00092 public:
00093
00094
00095 ClassName("pointPatchInterpolation");
00096
00097
00098
00099
00100
00101 pointPatchInterpolation(const fvMesh&, const pointMesh&);
00102
00103
00104
00105
00106 ~pointPatchInterpolation();
00107
00108
00109
00110
00111
00112
00113 const fvMesh& mesh() const
00114 {
00115 return fvMesh_;
00116 }
00117
00118 const pointMesh& pMesh() const
00119 {
00120 return pointMesh_;
00121 }
00122
00123
00124
00125
00126
00127 void updateMesh();
00128
00129
00130 bool movePoints();
00131
00132
00133
00134
00135 template<class Type>
00136 void interpolate
00137 (
00138 const GeometricField<Type, fvPatchField, volMesh>&,
00139 GeometricField<Type, pointPatchField, pointMesh>&,
00140 bool overrideFixedValue
00141 ) const;
00142
00143 template<class Type>
00144 void applyCornerConstraints
00145 (
00146 GeometricField<Type, pointPatchField, pointMesh>& pf
00147 ) const;
00148 };
00149
00150
00151 template<>
00152 void pointPatchInterpolation::applyCornerConstraints<scalar>
00153 (
00154 GeometricField<scalar, pointPatchField, pointMesh>& pf
00155 ) const;
00156
00157
00158
00159
00160 }
00161
00162
00163
00164 #ifdef NoRepository
00165 # include "pointPatchInterpolate.C"
00166 #endif
00167
00168
00169
00170 #endif
00171
00172
Copyright © 2000-2007 OpenCFD Ltd