CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Controlling y+ values with snappyHexMesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree46Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2015, 18:00
Default
  #61
New Member
 
James hakes
Join Date: Aug 2013
Posts: 5
Rep Power: 12
jdchakes is on a distinguished road
I see in the roadmap of cfMesh is to add anisotropic refinement so hopefully not long!!

I think for now I will try using the potentialfreesurfacefoam solver and calculate viscous drag by hand. Think this method should be sufficient for comparative studies.

Its surprising that the OpenCFD guys doing openFoam have not improved the snappyHexMesh reliability? Especially considering they make their money by customers paying for specific developments, I wonder why someone has not paid for this improvement to snappy? Perhaps they know it is fundamentally flawed and that is why they have begun developing foamyQuadMesh?
jdchakes is offline   Reply With Quote

Old   February 22, 2015, 09:11
Default
  #62
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Dear Eric, James,

Eric, thank you for your kind word regarding cfMesh.
James, I am aware that anisotropic refinement is important for marine applications. Hence, we have already done work in that respect, and we plan to release it with the next release of cfMesh.

Regards,

Franjo
franjo_j is offline   Reply With Quote

Old   February 22, 2015, 15:22
Default
  #63
New Member
 
James hakes
Join Date: Aug 2013
Posts: 5
Rep Power: 12
jdchakes is on a distinguished road
any rough ETA on when the next release will be??
jdchakes is offline   Reply With Quote

Old   February 24, 2015, 07:09
Default
  #64
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Dear James, our next release is scheduled for the 2nd half of April, we'll announce it on the forum as well.
franjo_j is offline   Reply With Quote

Old   May 2, 2015, 05:59
Question
  #65
New Member
 
zhanjunhua
Join Date: Mar 2014
Posts: 2
Rep Power: 0
zhan is on a distinguished road
deal seaspray.
I like your Bash scripts. But it says 'Insufficient permissions'. I don't konw much about ubuntu. could you give me some ideas?
thanks.
zhan is offline   Reply With Quote

Old   May 5, 2015, 14:35
Default
  #66
New Member
 
Eric Bretscher
Join Date: Apr 2014
Location: New Zealand
Posts: 23
Rep Power: 12
seaspray is on a distinguished road
It sounds like you are trying to write to a location where permissions don't allow you to do so, or execute a script that is lacking the executable attribute. Try chmod +x filename on the script to make it executable maybe.
seaspray is offline   Reply With Quote

Old   July 10, 2019, 07:40
Default
  #67
New Member
 
Ashish Tiwari
Join Date: May 2018
Posts: 3
Rep Power: 7
Ashish Tiwari is on a distinguished road
Quote:
Originally Posted by seaspray View Post
Robo,

I have never run into this error so far within this context. Is it a result of refining to an extremely thin inner layer (it almost sounds like it), i.e. near the end of the process, or does it happen at the start?

Because I have split my SHM process into a snap and then layer grow phase, when I set up a new environment (new background mesh, different size geometry) I visually inspect the snapped mesh and the grown layer before refining.
Once this has been done, I can normally substitute geometries without looking at the mesh, but keep in mind that I always mesh the "same kind of stuff" more or less. If I suddenly introduced something much more exotic and complicated, it might not go that well without at least reviewing the parameters for SHM.

I do however remember refineWallLayer failing - possibly with this error - when I tried refining meshes that had not been intended for that, i.e. bad multi-layer meshes from SHM, meshes that weren't wall parallel etc.

I would suggest going back and checking the previous stages and then also making sure you are not trying to refine down to incredibly thin layers, which happens very quickly with geometric progressions.
If you look above, in Pete's Python script, he coded 18 layers with a growth ratio of 1.25: that is a ratio of 55 between the thickest and thinnest layer... this could be a tough test.

I try to work out roughly what y+ = 1 should look like in the regions of interest and I try to approach this value with the refinement and no more. The thickness of my original SHM-grown layer is calculated to more or less contain the entire boundary layer (99% freestream velocity) where I want it solved rather than bridged by wall functions. At the moment I am using 8-9 mesh layers with a growth ratio of 1.25 to resolve the boundary layer and it seems to be behaving for the size of problems I am dealing with, but it may not be the final word.



I am trying your script on a quadcopter. The layer addition doesn't seems to work well using SHM.

I have placed the script file under home/openFOAM/bin. So, I should try to add a single layer before executing your script right?
Ashish Tiwari is offline   Reply With Quote

Old   July 10, 2019, 18:56
Default
  #68
New Member
 
Eric Bretscher
Join Date: Apr 2014
Location: New Zealand
Posts: 23
Rep Power: 12
seaspray is on a distinguished road
Ashish,

From memory, my script refined an existing single wall layer, so it needed to be created first by SHM. However, one key issue with the approach was that the OpenFOAM wall layer refinement utility didn't check/correct the mesh for quality. If you get a bad mesh, the solver crashes.

Use cfMesh instead.

Best regards,

Eric
seaspray is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
[CAD formats] Creating waterproof STL using snappyHexMesh or salome Tobi OpenFOAM Meshing & Mesh Conversion 58 May 13, 2020 06:01
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. jasv OpenFOAM Meshing & Mesh Conversion 4 May 10, 2016 02:55
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? klausb OpenFOAM Meshing & Mesh Conversion 1 March 7, 2015 11:55


All times are GMT -4. The time now is 03:53.