Add Mesh Layers doesnt work on the whole surface
Hello,
I just tried to make a simple mesh with snappyHexMesh, and everything worked quite well so far. But now I am at a point, where I cannot find a solution to my current problem. I got a simple "rocket" which exists of a cylinder and a cone as tip and rear. When creating the mesh it adds the layers on the surface correctly, but only on the cylindrical part. you can find a screenshot here: https://dl.dropbox.com/u/3545765/layersproblem.png as you see the layers stop at the edge, same on the tip and rear side. my snappyhexmeshdict as follows: Code:
addLayersControls Anyone any ideas? Thanks in advance! EDIT: maybe the output would also be interesting: Code:
Shrinking and layer addition phase |
For my current project, I can control that kind of proplem with the following options
resolveFeatureAngle 180; featureAngle 180; I don't know for sure if it helps because you have allready a tall number for featureAngle good luck! |
The featureAngle should be fine, though any number beyond 180 should make no difference than using 180.
but lets have a look at the output: Quote:
Code:
minTetQuality -1e30; Also I highly recommend to reduce the "nLayerIter" to a reasonable number, i.e. 10. Else SHM may get stuck in iterating if it fails to meet your quality settings. Better check the output to see if it does converge. If you want the furthest layer cell to be of equal thickness to the surrounding mesh (finalLayerThickness 1;), then use the following: Code:
... Greetings, Jan |
thanks a lot SirWombat, that did actually help :) now nearly all parts of the surface have the layer :)
Now I can start running some solvers, and see what problems that will bringt forth :P |
Hi Jan,
Could you develop a bit about the reason why you recommend those parameters? What is their actual effect on the layers? This would be great help! Regards, Eloïse Quote:
|
Hi Eloïse,
it's just what I've been experimenting with and found it to be most suitable for smooth geometries. But I'll try to give an answer anyway: the smoothing-parameters should be clear .. they smooth the "layer-surface", which consist of all faces between the added layers and the rest of the mesh. The maxFaceThicknessRatio in combination with maxThicknessToMedialRatio have a strong influence on how thick those layer-cells get in relation to surrounding layer cells, especially towards to the end/edge of the added layer region. If you would like to experiment yourself then switch off all quality controls and try some variations on those "addLayer"-parameters. Do this on a small and simple mesh so to get a fast result. You will find it to be enlightening! G Jan |
well here I am again. Its not quite fitting to the thread title, but I didnt want to open another one.
The calculation is now working fine, but now I wanted to ask, is there no adaptive mesh refinement utility in OpenFoam? I am using sonicFoam with Mach 1.6, and have compression shocks, where I would like to refine the mesh automatically where there is a high pressure gradient. But google didnt help me :( |
sorry I cannot help you with that topic but google "openfoam adaptive mesh refinement" and have a look at the first result: Chalmers compiled a new solver including AMR ... maybe there's a way to do that with sonicFoam as well ...
|
so there is no way other than coding something like that myself?
|
addLayers
I am facing issues with addLayers. Is anyone out there?
|
Quote:
Do you know what does minTetQuality mathematically mean? May turning it off produce negative volume cells? Thanks. Ali |
Hello,
You can have a nice description of the mesh quality criteria on this pdf : https://openfoamwiki.net/images/f/f0...SlidesOFW7.pdf - slide 54 for minTetQuality In my case I have got negative minTetVolume but it does not produce negative volume. I think it is related to the direction of the three vectors (slide 54) that characterized the cell. Cheers |
Quote:
Referring to the slide that you have mentioned, since cr is always positive, there is only one possibility that can cause negative minTetQuality, namely negative tv; But when it happens? Since the angle between a and b is always < 180 (this angle is one of the three angles of a triangle), there remains only one possibility for minTetQualituy to be negative, that is, Angle between axb and c > 90. Here we must know how OpenFOAM selects a and b.
Thank you, Ali |
Hello all,
Sorry for bringing up this issue again. Did anyone manage to answer how important minTetQuality is? Anyone able to answer the last remark that Ali made on this post? Best, George |
All times are GMT -4. The time now is 11:21. |