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
00037
00038
00039
00040
00041
00042 #ifndef edgeCorrectedVolPointInterpolation_H
00043 #define edgeCorrectedVolPointInterpolation_H
00044
00045 #include "volPointInterpolation.H"
00046
00047
00048
00049 namespace Foam
00050 {
00051
00052
00053
00054
00055
00056 class edgeCorrectedVolPointInterpolation
00057 :
00058 public volPointInterpolation
00059 {
00060
00061
00062
00063 mutable FieldField<Field, vector>* extrapolationVectorsPtr_;
00064
00065
00066
00067
00068
00069 edgeCorrectedVolPointInterpolation
00070 (
00071 const edgeCorrectedVolPointInterpolation&
00072 );
00073
00074
00075 void operator=(const edgeCorrectedVolPointInterpolation&);
00076
00077
00078
00079 void makeExtrapolationWeights() const;
00080
00081
00082 const FieldField<Field, vector>& extrapolationVectors() const;
00083
00084
00085 public:
00086
00087
00088
00089
00090 edgeCorrectedVolPointInterpolation(const fvMesh&, const pointMesh&);
00091
00092
00093
00094
00095 virtual ~edgeCorrectedVolPointInterpolation();
00096
00097
00098
00099
00100
00101 virtual bool movePoints();
00102
00103
00104
00105
00106
00107
00108
00109 template<class Type>
00110 void interpolate
00111 (
00112 const GeometricField<Type, fvPatchField, volMesh>&,
00113 const GeometricField
00114 <
00115 typename outerProduct<vector, Type>::type,
00116 fvPatchField,
00117 volMesh
00118 >&,
00119 GeometricField<Type, pointPatchField, pointMesh>&
00120 ) const;
00121
00122
00123
00124
00125 template<class Type>
00126 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
00127 (
00128 const GeometricField<Type, fvPatchField, volMesh>&,
00129 const GeometricField
00130 <
00131 typename outerProduct<vector, Type>::type,
00132 fvPatchField,
00133 volMesh
00134 >&
00135 ) const;
00136
00137
00138
00139
00140 template<class Type>
00141 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
00142 (
00143 const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00144 const GeometricField
00145 <
00146 typename outerProduct<vector, Type>::type,
00147 fvPatchField,
00148 volMesh
00149 >&
00150 ) const;
00151
00152 template<class Type>
00153 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
00154 (
00155 const GeometricField<Type, fvPatchField, volMesh>&,
00156 const tmp<GeometricField
00157 <
00158 typename outerProduct<vector, Type>::type,
00159 fvPatchField,
00160 volMesh
00161 > >&
00162 ) const;
00163
00164 template<class Type>
00165 tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate
00166 (
00167 const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
00168 const tmp<GeometricField
00169 <
00170 typename outerProduct<vector, Type>::type,
00171 fvPatchField,
00172 volMesh
00173 > >&
00174 ) const;
00175 };
00176
00177
00178
00179
00180 }
00181
00182
00183
00184 #include "edgeCorrectedVolPointInterpolate.C"
00185
00186
00187
00188 #endif
00189
00190