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