Distance to Medial Axis
1 Attachment(s)
Guys,
Can someone tell me what exactly are 1. minThicknessToMedialRatio 2. minMedianAxisAngle. I am trying to grow layers on a round tip so as to achieve a first cell height of around 5e-6m which gives me a y+=1. I observe that there are layers in other parts of the wing except the round tip once I decrease the minThickness of the first layer below a certain threshold. Attachment 13103 I have a feeling that the above parameters can influence the layer addition process. Thanks, Kalyan Goparaju |
maxThicknessToMedialRatio:
A first guess: the ratio of the average cell thickness at each "corner" to the maximum thickness of a cell. A seconf thought: It could also be the ratio of the thickness of a single cell to the averaged overall layer thickness (==distance from the surface to first cell of the background mesh). To see what changes in those parameter does to your layers, you might try to switch of all quality controls, i.e. like this: Code:
meshQualityControls Try a Code:
minMedianAxisAngle 90; Code:
maxThicknessToMedialRatio 1.0; Make sure that Code:
nRelaxIter 5; When you are satisfied with your mesh you will have to start on meshQualityControls, carefully increasing single parameters (start with maxNonOrtho- and the Skewness-parameters. When running SHM have a look at the output and check your LayerIteration-process and make sure that after a few iterations, the mesh meets your quality demands. Use checkMesh to create sets of problematic cells and view them in paraview! If the layer iteration process does not converge, start with changes on your layer settings (those two ratios are a good start). Use the sets checkMesh creates to view your changes. Note: Even with the tighest quality-controls you won't make a bad mesh into a good mesh. Better start with a good mesh and let SHM use the quality-controls to iterate it to a perfect mesh! |
Thanks for the reply.
Deactivating the mesh quality controls does the work and inserts the layers on the parts where it was not inserting before. But now, if I run checkMesh, there are cells where the aspect ratio is reaching around 2000 and these cells are near the tip where there were no layers before. I increased the density at that region but that just increased the aspect ratio. I am confused as to what to change to decrease this problem. My base mesh from blockMesh has an aspect ratio of 1:1 Thanks, Kalyan |
You need to play with your layer-settings! Try
Code:
maxFaceThicknessRatio 1.0; Code:
nLayerIter 5; Code:
maxNonOrtho 75; See what snappyHexMesh does when iterating those layers. Keep a sharp eye on those cells filtered by the quality controls during iterations! Hope to get you started! Good luck (which is sometimes needed with SHM)! |
All times are GMT -4. The time now is 01:07. |