CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Not all entries in refinementSurfaces dictionary were used

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 13, 2015, 07:08
Default Not all entries in refinementSurfaces dictionary were used
  #1
New Member
 
Caro
Join Date: Jul 2014
Posts: 7
Rep Power: 2
will_ca is on a distinguished road
Hi everyone,
I'm trying to learn how to use snappyHexMesh.
I'm trying to mesh the quarter of a cylinder. I build that geometry in Salome and saved it as stl files.
I saved the different parts (wall, two symmetryplanes, inlet and outlet) as separate files and changed the file so that every surface has its name like this:
solid wall
<facet .>
endsolid wall


when I try to run snappyHexMesh I get the warning:

Code:
Reading refinement surfaces. 
 --> FOAM Warning :  
     From function refinementSurfaces::refinementSurfaces(..) 
     in file autoHexMesh/refinementSurfaces/refinementSurfaces.C at line 226 
     Reading "/home/cw591/OpenFOAM/cw591-2.3.0/run/testmesh2/system/snappyHexMeshDict.castellatedMeshControls.refinementSurfaces" from line 150 to line 154 
     Not all entries in refinementSurfaces dictionary were used. The following entries were not used :  
 4 
 ( 
 SymPlane1 
 inlet 
 outlet 
 wall 
 )
so it looks as if only the stl file that I use last in the geometry part of my snappyHexMeshDict (see below) is used.


I also tried making one stl file (vol.stl) that includes all surfaces with their names and then using just that, adding regions like in the part commented geometry part in the snappyHexMeshDict below. When I run that I get the same warning, but now none of the patches are used:

Code:
Not all entries in refinementSurfaces dictionary were used. The following entries were not used :  
 5 
 ( 
 SymPlane1 
 SymPlane2 
 inlet 
 outlet 
 wall 
 )
Does anyone know what I'm doing wrong?
I'd apreciate any help
C

My snappyHexMeshDict:
Code:
castellatedMesh true; 
 snap            true; 
 addLayers       false; 
  
  
 geometry 
 { 
     inlet.stl {type triSurfaceMesh; name inlet} 
     outlet.stl {type triSurfaceMesh; name outlet} 
     wall.stl {type triSurfaceMesh; name wall} 
     SymPlane1.stl {type triSurfaceMesh; name SymPlane1} 
     SymPlane2.stl {type triSurfaceMesh; name SymPlane2} 
  
   /*  vol.stl  
     { 
         type triSurfaceMesh;  
         name volume; 
         /*regions 
         { 
             inlet 
             { name inlet;} 
             outlet 
             {name outlet;} 
             wall 
             { name wall;} 
             SymPlane1 
             { name SymPlane1;} 
             SymPlane2 
             { name SymPlane2;} 
         } 
     }*/ 
  
     // Analytical shape; cylinder, sphere 
     refinementBox 
     { 
         type searchableBox; 
         min (-0.01 -0.01 -0.5); 
         max ( 0.55 0.55 1.4); 
     } 
 }; 
  
  
  
 // Settings for the castellatedMesh generation. 
 castellatedMeshControls 
 { 
  
     maxLocalCells 1000000; 
  
     maxGlobalCells 7000000; 
  
     minRefinementCells 10; 
  
     maxLoadUnbalance 0.10; 
  
     nCellsBetweenLevels 1; 
  
  
     features 
     ( 
         { 
             file "inlet.eMesh"; 
         level 3; 
         } 
         { 
             file "outlet.eMesh"; 
         level 3; 
         } 
  
         { 
             file "wall.eMesh"; 
         level 3; 
         } 
         { 
             file "SymPlane1.eMesh"; 
         level 3; 
         } 
         { 
             file "SymPlane2.eMesh"; 
         level 3; 
         } 
     ); 
  
  
  
     refinementSurfaces 
     { 
                     // Surface-wise min and max refinement level 
             inlet {level (1 1);} 
             outlet {level (1 1);} 
             wall {level (5 6);} 
             SymPlane1 {level (5 6);} 
             SymPlane2 {level (5 6);}         
     } 
  
     // Resolve sharp angles 
     resolveFeatureAngle 80; 
  
  
  
     refinementRegions 
     { 
         refinementBox   
         { 
             mode inside; 
             levels ((1E15 5)); 
         } 
  
     } 
  
  
     locationInMesh (0.01 0.01 0.01); 
  
  
     allowFreeStandingZoneFaces true;  
 } 
  
  
  
 // Settings for the snapping. 
 snapControls 
 { 
  
     nSmoothPatch 3; 
  
     tolerance 4.0; 
  
     nSolveIter 30; 
  
     nRelaxIter 5; 
 } 
  
  
  
 // Settings for the layer addition. 
 addLayersControls 
 { 
  
     relativeSizes true; 
  
      layers 
     { 
         wall  
     { 
             nSurfaceLayers 3; 
         } 
     } 
  
  
     expansionRatio 1.1; 
  
     finalLayerThickness 0.003; 
  
     minThickness 0.003; 
  
     nGrow 0; 
  
  
     // Advanced settings 
  
     featureAngle 60; 
  
     nRelaxIter 3; 
  
     nSmoothSurfaceNormals 1; 
  
     nSmoothNormals 3; 
  
     nSmoothThickness 2; 
  
     maxFaceThicknessRatio 0.5; 
  
     maxThicknessToMedialRatio 0.3; 
  
     minMedianAxisAngle 130; 
  
     nBufferCellsNoExtrude 0; 
  
     nLayerIter 50; 
 } 
  
  
  
 meshQualityControls 
 { 
  
     maxNonOrtho 65; 
  
     maxBoundarySkewness 20; 
     maxInternalSkewness 4; 
  
     maxConcave 80; 
  
     minFlatness 0.5; 
  
     minVol 1e-13; 
     minTetQuality 1e-30; 
  
     minArea -1; 
  
     minTwist 0.02; 
  
     minDeterminant 0.001; 
  
     minFaceWeight 0.02; 
  
     minVolRatio 0.01; 
  
     minTriangleTwist -1; 
  
  
     // Advanced 
  
     nSmoothScale 4; 
  
     errorReduction 0.75; 
 } 
  
  
 // Advanced 
  
 debug 0; 
  
 // Merge tolerance. Is fraction of overall bounding box of initial mesh. 
 // Note: the write tolerance needs to be higher than this. 
 mergeTolerance 1E-6;
will_ca is offline   Reply With Quote

Reply

Tags
not used, patches, refinementsurfaces, stl file

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
writing subDict in a dictionary ubaid OpenFOAM Programming & Development 3 October 25, 2014 17:17
Reading a field(?) within a dictionary ecbmxer OpenFOAM Programming & Development 0 July 14, 2014 16:21
New Boundary Condition: Reading Dictionary Problem Koga OpenFOAM Programming & Development 0 November 26, 2012 06:01
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
FoamX error aachenBomb case Ervin Adorean (Adorean) OpenFOAM Pre-Processing 13 March 7, 2005 04:50


All times are GMT -4. The time now is 19:35.