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 meshCutSurface_H
00038 #define meshCutSurface_H
00039
00040 #include "labelList.H"
00041 #include "HashTable.H"
00042 #include "pointField.H"
00043 #include "triSurface.H"
00044 #include "boolList.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052 class primitiveMesh;
00053 class cellAddressing;
00054 class faceDecompCuts;
00055 class cellDecompCuts;
00056
00057
00058
00059
00060
00061 class meshCutSurface
00062 :
00063 public triSurface
00064 {
00065
00066
00067
00068
00069 static label FP0;
00070 static label FC;
00071 static label FP1;
00072 static label CC;
00073
00074
00075 static label FP0_FC;
00076 static label FP0_FP1;
00077 static label FP0_CC;
00078 static label FC_CC;
00079 static label FC_FP1;
00080 static label FP1_CC;
00081
00082
00083
00084
00085
00086 template<class T, class Hash>
00087 static label find
00088 (
00089 const HashTable<label, T, Hash>& table,
00090 const T& key
00091 );
00092
00093
00094 static label findEdge
00095 (
00096 const edgeList& edges,
00097 const labelList& edgeLabels,
00098 const edge& e
00099 );
00100
00101
00102 static label findCutEdge
00103 (
00104 const cellAddressing& model,
00105 const labelList& tetEdgeCuts,
00106 const label faceI,
00107 const label cutEdgeI
00108 );
00109
00110
00111
00112
00113
00114
00115 static triSurface removeDuplicates(const triSurface& surf);
00116
00117
00118 public:
00119
00120
00121
00122
00123 void cutTet
00124 (
00125 const cellAddressing& model,
00126 const labelList& tetVertCuts,
00127 const labelList& tetEdgeCuts,
00128 const label cellI,
00129 List<labelledTri>& tris,
00130 label& triI
00131 );
00132
00133
00134 void cutTetThroughEdges
00135 (
00136 const cellAddressing& model,
00137 const labelList& tetEdgeCuts,
00138 const label nEdgeCuts,
00139 const label cellI,
00140 List<labelledTri>& tris,
00141 label& triI
00142 );
00143
00144
00145
00146 void cutTetThroughVerts
00147 (
00148 const cellAddressing& model,
00149 const labelList& tetVertCuts,
00150 const label nVertCuts,
00151 const labelList& tetEdgeCuts,
00152 const label nEdgeCuts,
00153 const label cellI,
00154 List<labelledTri>& tris,
00155 label& triI
00156 );
00157
00158
00159
00160
00161
00162
00163 template <class T>
00164 static tmp<Field<T> > interpolate
00165 (
00166 const faceDecompCuts& cuts,
00167 const Field<T>& vField,
00168 const Field<T>& fField,
00169 const Field<T>& pField
00170 );
00171
00172
00173
00174 template <class T>
00175 static tmp<Field<T> > interpolate
00176 (
00177 const cellDecompCuts& cuts,
00178 const Field<T>& vField,
00179 const Field<T>& pField
00180 );
00181
00182
00183
00184
00185
00186
00187 meshCutSurface(const faceDecompCuts& cuts);
00188
00189
00190
00191 meshCutSurface(const cellDecompCuts& cuts);
00192 };
00193
00194
00195
00196
00197 }
00198
00199
00200
00201 #ifdef NoRepository
00202 # include "meshCutSurfaceInterpolate.C"
00203 #endif
00204
00205
00206
00207 #endif
00208
00209
Copyright © 2000-2007 OpenCFD Ltd