variables in snappyHexMeshDict
Hello all,
I am creating the mesh and having some trouble getting the layers added to a wall patch (base cell size = 2 mm, level of refinement = 4). The funny thing is, the layers were added correctly on a refinement level of 3, but not when the refinement level = 4. I am wondering what the problem is. If you can let me know the significance of a few variables in the sHMD, that would be great. Here is the snippet of the concerned section of sHMD: addLayersControls { relativeSizes true; //false means thickness values are absolute.True means values are relative to surface mesh dimension. //list patch names inside "layers" to add cell layers to those patches layers { wall_imported { nSurfaceLayers 3; } } expansionRatio 1; finalLayerThickness 0.33; minThickness 0.05; nGrow 0; //WHAT DOES THIS VARIABLE DO?? // Advanced settings featureAngle 180; //WHAT DOES THIS VARIABLE DO?? nRelaxIter 20; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; //WHAT DOES THIS VARIABLE DO?? maxThicknessToMedialRatio 0.3; //WHAT DOES THIS VARIABLE DO?? minMedianAxisAngle 80; //WHAT DOES THIS VARIABLE DO?? nBufferCellsNoExtrude 0; nLayerIter 50; } |
Some help:
Quote:
http://noc.ac.uk/f/content/science-t..._2_meshing.pdf anyway, if you look to default dictionary you can find more variables. By now I haven't clearly undestarnd what all they do; the only way to figure it out is to read the code, but for that, you have to master C++. Bye |
I have read the presentation. It is amazing indeed, although, when I actually try out the code, something bizarre keeps happening (like what I mentioned in my initial post).
|
layer addition is one of the most painful task in snappy Hex Mesh; I think you already firgured it out by googling "layer addition".
Anyway; here's a link to a pdf about a conversation I had on the OpenFOAM group in Linkedin. https://www.dropbox.com/s/u4ct0lau94...kedin.pdf?dl=0 Maybe it could help. One more hint is to check the quality of the stl surfaces. http://www.cfd-online.com/Forums/ope...pyhexmesh.html By posting a picture of your geometry and mesh, you could get more help from the rest of the cfd-online community. Regards |
Thank you so much, but my office connection in blocking the dropbox link. Can you provide the link to the Linked-In conversation or PM me the PDF please? Thank you again.
|
https://www.linkedin.com/grp/post/19...s-post-b-title
you're welcome. here it follows a template of mine I generally use to prepare the mesh. As posted before, I'm not mastering all variables. Code:
FoamFile |
student666, thank you for posting the sHMD. It is extremely helpful looking at the settings of another user. I am now playing around with my sHMD values as well.
|
Layers in Complex geometry
Hi !
I'm having problems as well with the Add Layers function in snappyHexMesh. I'm trying to put just 1 layer around a complex geometry in 3d and as the addlayers application iterates the layers that I had at the beginning get all removed, aparently because they didn't comply with the meshquality controls.. I tried changing several parameters imitating M.C.'s setting but I got no improvement. Is this a problem of my geometry or could I change a parameter to improve the layer addition? I'm ataching a pic of my layers around a slice of my geometry and both sHMD and log.sHM. thanks in advance, Werner |
All times are GMT -4. The time now is 21:24. |