polyDualMesh.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 #ifndef polyDualMesh_H
00042 #define polyDualMesh_H
00043
00044 #include "polyMesh.H"
00045 #include "labelIOList.H"
00046 #include "typeInfo.H"
00047
00048
00049
00050 namespace Foam
00051 {
00052
00053
00054
00055
00056
00057 class polyDualMesh
00058 :
00059 public polyMesh
00060 {
00061
00062
00063
00064 labelIOList cellPoint_;
00065
00066
00067 labelIOList boundaryFacePoint_;
00068
00069
00070
00071
00072 static labelList getFaceOrder
00073 (
00074 const labelList& faceOwner,
00075 const labelList& faceNeighbour,
00076 const cellList& cells,
00077 label& nInternalFaces
00078 );
00079
00080 static void getPointEdges
00081 (
00082 const primitivePatch& patch,
00083 const label faceI,
00084 const label pointI,
00085 label& e0,
00086 label& e1
00087 );
00088
00089 static labelList collectPatchSideFace
00090 (
00091 const polyPatch& patch,
00092 const label patchToDualOffset,
00093 const labelList& edgeToDualPoint,
00094 const labelList& pointToDualPoint,
00095 const label pointI,
00096
00097 label& edgeI
00098 );
00099
00100 static void collectPatchInternalFace
00101 (
00102 const polyPatch& patch,
00103 const label patchToDualOffset,
00104 const labelList& edgeToDualPoint,
00105
00106 const label pointI,
00107 const label startEdgeI,
00108
00109 labelList& dualFace2,
00110 labelList& featEdgeIndices2
00111 );
00112
00113 static void splitFace
00114 (
00115 const polyPatch& patch,
00116 const labelList& pointToDualPoint,
00117
00118 const label pointI,
00119 const labelList& dualFace,
00120 const labelList& featEdgeIndices,
00121
00122 DynamicList<face>& dualFaces,
00123 DynamicList<label>& dualOwner,
00124 DynamicList<label>& dualNeighbour,
00125 DynamicList<label>& dualRegion
00126 );
00127
00128 static void dualPatch
00129 (
00130 const polyPatch& patch,
00131 const label patchToDualOffset,
00132 const labelList& edgeToDualPoint,
00133 const labelList& pointToDualPoint,
00134
00135 const pointField& dualPoints,
00136
00137 DynamicList<face>& dualFaces,
00138 DynamicList<label>& dualOwner,
00139 DynamicList<label>& dualNeighbour,
00140 DynamicList<label>& dualRegion
00141 );
00142
00143 void calcDual
00144 (
00145 const polyMesh& mesh,
00146 const labelList& featureEdges,
00147 const labelList& featurePoints
00148 );
00149
00150
00151
00152 polyDualMesh(const polyDualMesh&);
00153
00154
00155 void operator=(const polyDualMesh&);
00156
00157
00158 public:
00159
00160
00161 ClassName("polyDualMesh");
00162
00163
00164
00165
00166
00167 polyDualMesh(const IOobject&);
00168
00169
00170
00171
00172 polyDualMesh
00173 (
00174 const polyMesh&,
00175 const labelList& featureEdges,
00176 const labelList& featurePoints
00177 );
00178
00179
00180
00181 polyDualMesh
00182 (
00183 const polyMesh&,
00184 const scalar featureCos
00185 );
00186
00187
00188
00189 static void calcFeatures
00190 (
00191 const polyMesh&,
00192 const scalar featureCos,
00193 labelList& featureEdges,
00194 labelList& featurePoints
00195 );
00196
00197
00198
00199
00200 ~polyDualMesh();
00201
00202
00203
00204
00205
00206
00207
00208 const labelIOList& cellPoint() const
00209 {
00210 return cellPoint_;
00211 }
00212
00213
00214 const labelIOList& boundaryFacePoint() const
00215 {
00216 return boundaryFacePoint_;
00217 }
00218 };
00219
00220
00221
00222 }
00223
00224
00225
00226 #endif
00227
00228
Copyright © 2000-2009 OpenCFD Ltd