|
[Sponsors] |
April 15, 2019, 10:34 |
Problem with sHM addLayer
|
#1 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
In sMH, I have the addLayersControls part shown as follow:
Code:
addLayersControls { relativeSizes false; layers { "figure.*" { nSurfaceLayers 5; } } expansionRatio 1.2; firstLayerThickness 0.055; minThickness 0.055; nGrow 0; featureAngle 10; slipFeatureAngle 30; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 90; nBufferCellsNoExtrude 0; nLayerIter 15; } First, it seems that it does not generate 5 layers as I defined in the above code. Second, in the chest and the back areas of the cyclist body, it seems that the layer does not generate properly. What could be the cause of this issue? Is my setting inappropriate? Thanks. BTW, are those "ropes" near the middle of the bike frame normal? Or does that indicates a bad quality of meshing? Thanks again |
|
April 17, 2019, 05:03 |
|
#2 |
Member
Join Date: Nov 2014
Posts: 92
Rep Power: 12 |
First of all, SHM does not usually generate 100% boundary layer mesh because it is depending on the mesh quality that it generates. If the SHM finds that the layer mesh is poor in quality, it will stop the extrusion. The most important parameter is the firstLayerThickenss. The value in your setting is obviously too high, 0.055m. I would suggest you start from 0.005 to see if it generate more layers.
|
|
April 17, 2019, 08:45 |
|
#3 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
Another thing I would like to ask is that you said the mesh quality is one of the dependent factor where boundary layer mesh could be generated, does that mean my mesh refinement before generating the boundary layer has to be good? For example, instead of having my refinementSurfaces level of 4, I should change it to 8? Thanks. |
||
April 17, 2019, 12:51 |
|
#4 |
Member
Join Date: Nov 2014
Posts: 92
Rep Power: 12 |
Yes, the mesh quality must be good before boundary layer mesh generated. The size of the surface mesh and the boundary layer mesh has a "magic" ratio, you need to try and error. Let's say your surface mesh size is 0.1m, your boundary layer mesh size cannot be 0.001m. My usual settings have background mesh of 0.1m, surfaceRefinement is 7 level and firstLayer at 1e-4 and i only do 6 layers. You need to try out the parameters. I have many times to achieve more than 10 layers but no success.
|
|
April 18, 2019, 03:27 |
|
#5 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
|
||
April 18, 2019, 07:47 |
|
#6 |
Member
Join Date: Nov 2014
Posts: 92
Rep Power: 12 |
It's a complicated question, it is not hard to generate the mesh but it is hard to generate boundary layer on the whole surface, basically it is impossible. Usually i look for 80% surface converage with layer mesh. I just spend half day tuning the settings today and i am using a 32 cores server and my case has just 4 millions cells.
I think level 8 is too much. How many cells are you generating with these settings? It really cannot do much with 4 cores CPU. 10 hours on meshing is too much |
|
April 18, 2019, 10:28 |
|
#7 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
|
||
April 18, 2019, 13:35 |
|
#8 | |
Member
Join Date: Nov 2014
Posts: 92
Rep Power: 12 |
Quote:
|
||
April 18, 2019, 14:55 |
|
#9 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
I am now doing a new simulation with all refinement settings of level 6. It tooks 5257.93s to complete the mesh. Yet I could not take a look into the mesh now, since simpleFoam is still in progress. I will update it after the simulation completed. Thanks a lot for your help. |
||
Tags |
addlayercontrols, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat Transfert, mixing problem | Wazdq | CFX | 8 | November 7, 2016 06:44 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
[snappyHexMesh] SHM add layers problem | doubtsincfd | OpenFOAM Meshing & Mesh Conversion | 0 | June 6, 2011 13:01 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |