fvPatch.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 fvPatch_H
00038 #define fvPatch_H
00039
00040 #include "polyPatch.H"
00041 #include "labelList.H"
00042 #include "SubList.H"
00043 #include "typeInfo.H"
00044 #include "tmp.H"
00045 #include "primitiveFields.H"
00046 #include "SubField.H"
00047 #include "fvPatchFieldsFwd.H"
00048 #include "autoPtr.H"
00049 #include "runTimeSelectionTables.H"
00050
00051
00052
00053 namespace Foam
00054 {
00055
00056 class fvBoundaryMesh;
00057 class surfaceInterpolation;
00058
00059
00060
00061
00062
00063 class fvPatch
00064 {
00065
00066
00067
00068 const polyPatch& polyPatch_;
00069
00070
00071 const fvBoundaryMesh& boundaryMesh_;
00072
00073
00074
00075
00076
00077 fvPatch(const fvPatch&);
00078
00079
00080 void operator=(const fvPatch&);
00081
00082
00083 protected:
00084
00085
00086
00087
00088 virtual void makeWeights(scalarField&) const;
00089
00090
00091 virtual void makeDeltaCoeffs(scalarField&) const;
00092
00093
00094 virtual void initMovePoints();
00095
00096
00097 virtual void movePoints();
00098
00099
00100 public:
00101
00102 typedef fvBoundaryMesh BoundaryMesh;
00103
00104 friend class fvBoundaryMesh;
00105 friend class surfaceInterpolation;
00106
00107
00108 TypeName(polyPatch::typeName_());
00109
00110
00111
00112
00113 declareRunTimeSelectionTable
00114 (
00115 autoPtr,
00116 fvPatch,
00117 polyPatch,
00118 (const polyPatch& patch, const fvBoundaryMesh& bm),
00119 (patch, bm)
00120 );
00121
00122
00123
00124
00125
00126 fvPatch(const polyPatch&, const fvBoundaryMesh&);
00127
00128
00129
00130
00131
00132 static autoPtr<fvPatch> New(const polyPatch&, const fvBoundaryMesh&);
00133
00134
00135
00136
00137 virtual ~fvPatch();
00138
00139
00140
00141
00142
00143
00144
00145 const polyPatch& patch() const
00146 {
00147 return polyPatch_;
00148 }
00149
00150
00151 const word& name() const
00152 {
00153 return polyPatch_.name();
00154 }
00155
00156
00157 virtual label size() const
00158 {
00159 return polyPatch_.size();
00160 }
00161
00162
00163 bool coupled() const
00164 {
00165 return polyPatch_.coupled();
00166 }
00167
00168
00169 static bool constraintType(const word& pt);
00170
00171
00172 static wordList constraintTypes();
00173
00174
00175 label index() const
00176 {
00177 return polyPatch_.index();
00178 }
00179
00180
00181 const fvBoundaryMesh& boundaryMesh() const
00182 {
00183 return boundaryMesh_;
00184 }
00185
00186
00187 template<class T>
00188 const typename List<T>::subList patchSlice(const List<T>& l) const
00189 {
00190 return typename List<T>::subList(l, size(), polyPatch_.start());
00191 }
00192
00193
00194 virtual const unallocLabelList& faceCells() const;
00195
00196
00197
00198
00199
00200 const vectorField& Cf() const;
00201
00202
00203 tmp<vectorField> Cn() const;
00204
00205
00206 const vectorField& Sf() const;
00207
00208
00209 const scalarField& magSf() const;
00210
00211
00212 tmp<vectorField> nf() const;
00213
00214
00215
00216
00217 virtual tmp<vectorField> delta() const;
00218
00219
00220
00221
00222
00223 const scalarField& weights() const;
00224
00225
00226
00227
00228 const scalarField& deltaCoeffs() const;
00229
00230
00231
00232
00233
00234 template<class Type>
00235 tmp<Field<Type> > patchInternalField(const UList<Type>&) const;
00236
00237
00238 template<class GeometricField, class Type>
00239 const typename GeometricField::PatchFieldType& patchField
00240 (
00241 const GeometricField&
00242 ) const;
00243
00244
00245
00246
00247
00248
00249 template<class GeometricField, class Type>
00250 const typename GeometricField::PatchFieldType& lookupPatchField
00251 (
00252 const word& name,
00253 const GeometricField* = NULL,
00254 const Type* = NULL
00255 ) const;
00256 };
00257
00258
00259
00260
00261 }
00262
00263
00264
00265 #ifdef NoRepository
00266 # include "fvPatchTemplates.C"
00267 #endif
00268
00269
00270
00271 #endif
00272
00273
Copyright © 2000-2009 OpenCFD Ltd