Advertisement
Guest User

Untitled

a guest
Aug 27th, 2012
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. /*---------------------------------------------------------------------------*\
  2. | ========= | |
  3. | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
  4. | \\ / O peration | Version: 1.0 |
  5. | \\ / A nd | Web: http://www.openfoam.org |
  6. | \\/ M anipulation | |
  7. \*---------------------------------------------------------------------------*/
  8.  
  9. FoamFile
  10. {
  11. version 2.0;
  12. format ascii;
  13. class dictionary;
  14. object snappyHexMeshDict;
  15. }
  16.  
  17. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
  18.  
  19. // Which of the steps to run
  20. castellatedMesh true; // true;
  21. snap true; // true;
  22. addLayers true; // true;
  23.  
  24. geometry {
  25. clarkypt_le.stl {
  26. type triSurfaceMesh;
  27. name leadingEdge;
  28. }
  29.  
  30. clarkypt_body.stl {
  31. type triSurfaceMesh;
  32. name foil;
  33. }
  34.  
  35. clarkypt_te.stl {
  36. type triSurfaceMesh;
  37. name trailingEdge;
  38. }
  39.  
  40. innerBox {
  41. type searchableBox;
  42. min (-0.12 -0.12 -0.07);
  43. max (2 0.12 0.19);
  44. }
  45. };
  46.  
  47.  
  48.  
  49. // Settings for the castellatedMesh generation.
  50. castellatedMeshControls {
  51. maxLocalCells 1000000;
  52. maxGlobalCells 2000000;
  53. minRefinementCells 0;
  54. nCellsBetweenLevels 3;
  55. refinementSurfaces {
  56. foil {
  57. level (6 6);
  58. }
  59.  
  60. leadingEdge {
  61. level (7 7);
  62. }
  63.  
  64. trailingEdge {
  65. level (7 7);
  66. }
  67. }
  68. refinementRegions {
  69. innerBox {
  70. mode inside;
  71. levels ((5 5));
  72. }
  73. }
  74. resolveFeatureAngle 60;
  75. locationInMesh (-1 0 0);
  76. features ();
  77. allowFreeStandingZoneFaces false;
  78. }
  79.  
  80.  
  81.  
  82. // Settings for the snapping.
  83. snapControls {
  84. nSmoothPatch 6;
  85. tolerance 10;
  86. nSolveIter 60;
  87. nRelaxIter 10;
  88. }
  89.  
  90.  
  91.  
  92. // Settings for the layer addition.
  93. addLayersControls {
  94. relativeSizes false;
  95. layers{
  96. leadingEdge_OBJECT {
  97. nSurfaceLayers 5;
  98. }
  99.  
  100. foil_OBJECT {
  101. nSurfaceLayers 5;
  102. }
  103.  
  104. trailingEdge_OBJECT {
  105. nSurfaceLayers 5;
  106. }
  107. }
  108. expansionRatio 1.2;
  109. finalLayerThickness 0.0001;
  110. minThickness 0.0000311;
  111. nGrow 0;
  112. featureAngle 180;
  113. nRelaxIter 5;
  114. nSmoothSurfaceNormals 1;
  115. nSmoothNormals 3;
  116. nSmoothThickness 10;
  117. maxFaceThicknessRatio 0.5;
  118. maxThicknessToMedialRatio 0.3;
  119. minMedianAxisAngle 130;
  120. nBufferCellsNoExtrude 0;
  121. nLayerIter 50;
  122. }
  123.  
  124.  
  125.  
  126. // Generic mesh quality settings. At any undoable phase these determine
  127. // where to undo.
  128. meshQualityControls {
  129. maxNonOrtho 60;
  130. maxBoundarySkewness 20;
  131. maxInternalSkewness 4;
  132. maxConcave 80;
  133. minFlatness 0.5;
  134. minVol -1e13;
  135. minArea -1;
  136. minTwist 0.05;
  137. minDeterminant 0.001;
  138. minFaceWeight 0.05;
  139. minVolRatio 0.01;
  140. minTriangleTwist -1;
  141. nSmoothScale 4;
  142. errorReduction 0.75;
  143. minTetQuality 0.01;
  144. }
  145.  
  146.  
  147. // Advanced
  148.  
  149. // Flags for optional output
  150. // 0 : only write final meshes
  151. // 1 : write intermediate meshes
  152. // 2 : write volScalarField with cellLevel for postprocessing
  153. // 4 : write current intersections as .obj files
  154. debug 0;
  155.  
  156.  
  157. // Merge tolerance. Is fraction of overall bounding box of initial mesh.
  158. // Note: the write tolerance needs to be higher than this.
  159. mergeTolerance 1E-6;
  160.  
  161.  
  162. // ************************************************************************* //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement