refinement by region
Hi all,
I am using snappyhexmesh for my model. I am modeling 3blocks and I want to refine mesh area around the blocks. When I use refinement box with searchable type, and define refinement box -with the area that I want to be refined- in refinement region, it does create mesh but not refine them as I expect. Can anyone please let me know where the problem is? here is snappyhexmeshdict: /*--------------------------------*- C++-*----------------------------------*\\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } castellatedMesh true; snap true; addLayers false; geometry { A3b1.stl { type triSurfaceMesh; name A3b1; } A3b2.stl { type triSurfaceMesh; name A3b2; } A3b3.stl { type triSurfaceMesh; name A3b3; } refinementBox //USER DEFINED REGION NAME { type searchableBox; //REGION DEFINED BY BOUNDING BOX min (5.6 0 0); //parameters max ( 7.5 1.5 0.5 ); } } castellatedMeshControls { maxLocalCells 10000000; maxGlobalCells 10000000; minRefinementCells 10; maxLoadUnbalance 0.10; nCellsBetweenLevels 3; features ( ); refinementSurfaces { A3b1 { level (0 0); } A3b2 { level (0 0); } A3b3 { level (0 0); } } resolveFeatureAngle 65; refinementRegions { refinementBox { mode inside; levels ((0.001 3)); } } locationInMesh (0.005 0.005 0.005); allowFreeStandingZoneFaces true; } snapControls { nSmoothPatch 3; tolerance 4.0; nSolveIter 30; nRelaxIter 5; nFeatureSnapIter 5; } addLayersControls { relativeSizes true; layers { } expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.1; nGrow 1; featureAngle 30; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 130; nBufferCellsNoExtrude 0; nLayerIter 50; nRelaxedIter 20; } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minVol 1e-13; minTetQuality -1E30; minArea -1; minTwist 0.02; minDeterminant 0.001; minFaceWeight 0.02; minVolRatio 0.01; minTriangleTwist -1; nSmoothScale 4; errorReduction 0.75; //relaxed // { // maxNonOrtho 80; // } } debug 0; mergeTolerance 1e-6; Thanks, Shima |
Hi Shima,
Try making this change under refinementRegions: Code:
Thomas |
All times are GMT -4. The time now is 20:15. |