snappyHexMeshDict画二维网格出现锯齿状的区域
-
使用snappyHexMeshDict画二维网格在某一个壁面上由于贴合效果不好而产生锯齿状网格。
这是snappyHexMeshDict文件/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2312 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // castellatedMesh true; snap true; addLayers false; geometry { mesh1.stl { type triSurfaceMesh; name mesh1; regions { PENGUANINLET { name penguaninlet; } PENGUAN { name penguan; } LIANGBIANWALL { name liangbianwall; } QIANWALL { name qianwall; } HOUWALL { name houwall; } DIBU { name dibu; } DINGBUWALL { name dingbu; } } } refinementBox { type searchableBox; min (0.01 -0.05 -0.05); max (0.05 0.05 0.48); } }; castellatedMeshControls { maxLocalCells 20000000; maxGlobalCells 30000000; minRefinementCells 20; nCellsBetweenLevels 2; maxLoadUnbalance 0.1; allowFreeStandingZoneFaces true; resolveFeatureAngle 30; features ( {file "mesh1.eMesh";level 1;} ); refinementSurfaces { mesh1 { level (0 0); regions { PENGUANINLET { level (3 5); } PENGUAN { level (3 5); } DINGBUWALL { level (2 5); } /*GEOM { level (1 1); }*/ } } } refinementRegions { refinementBox { mode inside; levels ((3 5)); } } locationInMesh (0.001 -0.045 -0.045); } snapControls { tolerance 12; implicitFeatureSnap true; explicitFeatureSnap false; multiRegionFeatureSnap true; detectNearSurfacesSnap true; nSmoothPatch 6; nSolveIter 100; nRelaxIter 8; nFeatureSnapIter 10; nSmoothInternal 7; nFaceSplitInterval 12; } addLayersControls { PENGUAN { nSurfaceLayers 5; } relativeSizes true; expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; } meshQualityControls { minVol 1e-20; minTetQuality 1e-20; minArea 1e-20; minTwist 0.05; minDeterminant 1e-06; minFaceWeight 0.02; minVolRatio 0.01; minTriangleTwist -1; minFlatness 0.5; maxNonOrtho 70; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; nSmoothScale 4; errorReduction 0.75; relaxed { minVol 1e-30; minTetQuality 1e-30; minArea 1e-30; minTwist 0.001; minDeterminant 1e-06; minFaceWeight 1e-06; minVolRatio 0.01; minTriangleTwist -1; minFlatness 0.5; maxNonOrtho 75; maxBoundarySkewness 20; maxInternalSkewness 8; maxConcave 80; nSmoothScale 4; errorReduction 0.75; } } mergeTolerance 1e-08; debug 0; writeFlags ( scalarLevels ); // ************************************************************************* //
已经在这个壁面附近加密过并且添加了边界层。
感觉在snap文件中各项参数都已经设置到可以的范围内了,但还是贴合不上。
请各位大佬使用snappyHexMeshDict画二维网格会出现这样的问题。 -
这个是所有的文件内容,请各位大佬指导一下
floatingBody.zip