autoRefineDriver.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 #ifndef autoRefineDriver_H
00036 #define autoRefineDriver_H
00037
00038 #include "treeBoundBox.H"
00039
00040
00041
00042 namespace Foam
00043 {
00044
00045
00046 class featureEdgeMesh;
00047 class refinementParameters;
00048 class meshRefinement;
00049 class decompositionMethod;
00050 class fvMeshDistribute;
00051
00052
00053
00054
00055
00056 class autoRefineDriver
00057 {
00058
00059
00060
00061 meshRefinement& meshRefiner_;
00062
00063
00064 decompositionMethod& decomposer_;
00065
00066
00067 fvMeshDistribute& distributor_;
00068
00069
00070 const labelList globalToPatch_;
00071
00072
00073
00074
00075
00076 label readFeatureEdges
00077 (
00078 const PtrList<dictionary>& featDicts,
00079 PtrList<featureEdgeMesh>& featureMeshes,
00080 labelList& featureLevel
00081 ) const;
00082
00083
00084 label featureEdgeRefine
00085 (
00086 const refinementParameters& refineParams,
00087 const PtrList<dictionary>& featDicts,
00088 const label maxIter,
00089 const label minRefine
00090 );
00091
00092
00093 label surfaceOnlyRefine
00094 (
00095 const refinementParameters& refineParams,
00096 const label maxIter
00097 );
00098
00099
00100 void removeInsideCells
00101 (
00102 const refinementParameters& refineParams,
00103 const label nBufferLayers
00104 );
00105
00106
00107 label shellRefine
00108 (
00109 const refinementParameters& refineParams,
00110 const label maxIter
00111 );
00112
00113
00114 void baffleAndSplitMesh
00115 (
00116 const refinementParameters& refineParams,
00117 const bool handleSnapProblems,
00118 const dictionary& motionDict
00119 );
00120
00121
00122 void zonify(const refinementParameters& refineParams);
00123
00124 void splitAndMergeBaffles
00125 (
00126 const refinementParameters& refineParams,
00127 const bool handleSnapProblems,
00128 const dictionary& motionDict
00129 );
00130
00131
00132 void mergePatchFaces
00133 (
00134 const refinementParameters& refineParams
00135 );
00136
00137
00138
00139 autoRefineDriver(const autoRefineDriver&);
00140
00141
00142 void operator=(const autoRefineDriver&);
00143
00144
00145 public:
00146
00147
00148 ClassName("autoRefineDriver");
00149
00150
00151
00152
00153
00154 autoRefineDriver
00155 (
00156 meshRefinement& meshRefiner,
00157 decompositionMethod& decomposer,
00158 fvMeshDistribute& distributor,
00159 const labelList& globalToPatch
00160 );
00161
00162
00163
00164
00165
00166 void doRefine
00167 (
00168 const dictionary& refineDict,
00169 const refinementParameters& refineParams,
00170 const bool prepareForSnapping,
00171 const dictionary& motionDict
00172 );
00173 };
00174
00175
00176
00177
00178 }
00179
00180
00181
00182 #endif
00183
00184
Copyright © 2000-2009 OpenCFD Ltd