extendedUpwindCellToFaceStencil.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
00038
00039
00040
00041
00042
00043
00044
00045 #ifndef extendedUpwindCellToFaceStencil_H
00046 #define extendedUpwindCellToFaceStencil_H
00047
00048 #include "extendedCellToFaceStencil.H"
00049
00050
00051
00052 namespace Foam
00053 {
00054
00055 class cellToFaceStencil;
00056
00057
00058
00059
00060
00061 class extendedUpwindCellToFaceStencil
00062 :
00063 public extendedCellToFaceStencil
00064 {
00065
00066
00067
00068 const bool pureUpwind_;
00069
00070
00071 autoPtr<mapDistribute> ownMapPtr_;
00072 autoPtr<mapDistribute> neiMapPtr_;
00073
00074
00075 labelListList ownStencil_;
00076 labelListList neiStencil_;
00077
00078
00079
00080
00081
00082
00083 void selectOppositeFaces
00084 (
00085 const boolList& nonEmptyFace,
00086 const scalar minOpposedness,
00087 const label faceI,
00088 const label cellI,
00089 DynamicList<label>& oppositeFaces
00090 ) const;
00091
00092
00093 void transportStencil
00094 (
00095 const boolList& nonEmptyFace,
00096 const labelListList& faceStencil,
00097 const scalar minOpposedness,
00098 const label faceI,
00099 const label cellI,
00100 const bool stencilHasNeighbour,
00101
00102 DynamicList<label>& oppositeFaces,
00103 labelHashSet& faceStencilSet,
00104 labelList& transportedStencil
00105 ) const;
00106
00107
00108 void transportStencils
00109 (
00110 const labelListList& faceStencil,
00111 const scalar minOpposedness,
00112 labelListList& ownStencil,
00113 labelListList& neiStencil
00114 );
00115
00116
00117
00118 extendedUpwindCellToFaceStencil(const extendedUpwindCellToFaceStencil&);
00119
00120
00121 void operator=(const extendedUpwindCellToFaceStencil&);
00122
00123
00124 public:
00125
00126
00127
00128
00129
00130
00131 extendedUpwindCellToFaceStencil
00132 (
00133 const cellToFaceStencil&,
00134 const bool pureUpwind,
00135 const scalar minOpposedness
00136 );
00137
00138
00139
00140 extendedUpwindCellToFaceStencil
00141 (
00142 const cellToFaceStencil&
00143 );
00144
00145
00146
00147
00148 bool pureUpwind() const
00149 {
00150 return pureUpwind_;
00151 }
00152
00153
00154 const mapDistribute& ownMap() const
00155 {
00156 return ownMapPtr_();
00157 }
00158
00159
00160 const mapDistribute& neiMap() const
00161 {
00162 return neiMapPtr_();
00163 }
00164
00165
00166 const labelListList& ownStencil() const
00167 {
00168 return ownStencil_;
00169 }
00170
00171
00172 const labelListList& neiStencil() const
00173 {
00174 return neiStencil_;
00175 }
00176
00177
00178 template<class Type>
00179 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > weightedSum
00180 (
00181 const surfaceScalarField& phi,
00182 const GeometricField<Type, fvPatchField, volMesh>& fld,
00183 const List<List<scalar> >& ownWeights,
00184 const List<List<scalar> >& neiWeights
00185 ) const;
00186
00187 };
00188
00189
00190
00191
00192 }
00193
00194
00195
00196 #ifdef NoRepository
00197 # include "extendedUpwindCellToFaceStencilTemplates.C"
00198 #endif
00199
00200
00201
00202 #endif
00203
00204
Copyright © 2000-2009 OpenCFD Ltd