removeFaces.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 #ifndef removeFaces_H
00040 #define removeFaces_H
00041
00042 #include "Pstream.H"
00043 #include "HashSet.H"
00044 #include "Map.H"
00045 #include "boolList.H"
00046 #include "indirectPrimitivePatch.H"
00047
00048
00049
00050 namespace Foam
00051 {
00052
00053
00054 class polyMesh;
00055 class polyTopoChange;
00056 class face;
00057 class mapPolyMesh;
00058 class mapDistributePolyMesh;
00059
00060
00061
00062
00063
00064 class removeFaces
00065 {
00066
00067
00068
00069 const polyMesh& mesh_;
00070
00071
00072
00073 const scalar minCos_;
00074
00075
00076
00077
00078
00079
00080 void changeCellRegion
00081 (
00082 const label cellI,
00083 const label oldRegion,
00084 const label newRegion,
00085 labelList& cellRegion
00086 ) const;
00087
00088
00089 label changeFaceRegion
00090 (
00091 const labelList& cellRegion,
00092 const boolList& removedFace,
00093 const labelList& nFacesPerEdge,
00094 const label faceI,
00095 const label newRegion,
00096 const labelList& fEdges,
00097 labelList& faceRegion
00098 ) const;
00099
00100
00101 boolList getFacesAffected
00102 (
00103 const labelList& cellRegion,
00104 const labelList& cellRegionMaster,
00105 const labelList& facesToRemove,
00106 const labelHashSet& edgesToRemove,
00107 const labelHashSet& pointsToRemove
00108 ) const;
00109
00110
00111
00112
00113
00114 static void writeOBJ
00115 (
00116 const indirectPrimitivePatch&,
00117 const fileName&
00118 );
00119
00120
00121 void mergeFaces
00122 (
00123 const labelList& cellRegion,
00124 const labelList& cellRegionMaster,
00125 const labelHashSet& pointsToRemove,
00126 const labelList& faceLabels,
00127 polyTopoChange& meshMod
00128 ) const;
00129
00130
00131 void getFaceInfo
00132 (
00133 const label faceI,
00134 label& patchID,
00135 label& zoneID,
00136 label& zoneFlip
00137 ) const;
00138
00139
00140 face filterFace(const labelHashSet& pointsToRemove, const label)
00141 const;
00142
00143
00144 void modFace
00145 (
00146 const face& f,
00147 const label masterFaceID,
00148 const label own,
00149 const label nei,
00150 const bool flipFaceFlux,
00151 const label newPatchID,
00152 const bool removeFromZone,
00153 const label zoneID,
00154 const bool zoneFlip,
00155
00156 polyTopoChange& meshMod
00157 ) const;
00158
00159
00160
00161
00162 removeFaces(const removeFaces&);
00163
00164
00165 void operator=(const removeFaces&);
00166
00167
00168 public:
00169
00170
00171 ClassName("removeFaces");
00172
00173
00174
00175
00176
00177
00178
00179 removeFaces(const polyMesh&, const scalar minCos);
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190 label compatibleRemoves
00191 (
00192 const labelList& inPiercedFaces,
00193 labelList& cellRegion,
00194 labelList& cellRegionMaster,
00195 labelList& outPiercedFaces
00196 ) const;
00197
00198
00199
00200 void setRefinement
00201 (
00202 const labelList& piercedFaces,
00203 const labelList& cellRegion,
00204 const labelList& cellRegionMaster,
00205 polyTopoChange&
00206 ) const;
00207
00208
00209 void updateMesh(const mapPolyMesh&)
00210 {}
00211
00212
00213 void distribute(const mapDistributePolyMesh&)
00214 {}
00215 };
00216
00217
00218
00219
00220 }
00221
00222
00223
00224 #endif
00225
00226
Copyright © 2000-2009 OpenCFD Ltd