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