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

[snappyHexMesh] meshQualityDict: minVol for snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kandelabr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2017, 04:08
Default meshQualityDict: minVol for snappyHexMesh
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Hello,

I'm calculating the minVol in system/meshQualityDict with the following formula:

minVol = a^3 / 8^lvl / x

where
a = size of a blockMesh element
lvl = maximum refinement level
x = some arbitrary number

It seems that for values of x lower than 15-20 there are too many too small cells to produce a good mesh.

So my question is:
What should i choose for x, and why?
kandelabr is offline   Reply With Quote

Old   June 20, 2017, 12:47
Default
  #2
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Another question is, why is the minimum volume so important? Can I make a mesh with a too high resolution? The intuitive thinking would be that more elements mean more precise discretisation hence more exact results. Or is my thinking wrong?

Thanks!
kandelabr is offline   Reply With Quote

Old   July 1, 2017, 17:48
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Quote:
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
-- Douglas Adams
kandelabr is offline   Reply With Quote

Old   July 2, 2017, 18:48
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
Quote:
Originally Posted by kandelabr View Post
Another question is, why is the minimum volume so important?
The simplest reason is that it can be critical for transient simulations (time-dependent), due to the Courant Number. Re-read the first tutorial on the OpenFOAM User Guide, where this is briefly explained.

Quote:
Originally Posted by kandelabr View Post
Can I make a mesh with a too high resolution?
It's possible to have "too much of a good thing"...

Quote:
Originally Posted by kandelabr View Post
The intuitive thinking would be that more elements mean more precise discretisation hence more exact results. Or is my thinking wrong?
... specifically in CFD, it's advisable to perform mesh convergence tests when ascertaining the accuracy. A mesh too refined can easily reveal the limitations of the models being used. A mesh refined in the wrong places can lead to problematic/non-physical results.

See this blog post for a few examples: OpenFOAM: Interesting cases of bad meshes and bad initial conditions

Also, look up (Google?) the difference between mesh requirements between DNS, LES and RANS (or RAS).


Quote:
Quote:
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
-- Douglas Adams
Unfortunately not enough people are available at all times here at the forum, but with luck a few people are available a few times per week/weekend
__________________
wyldckat is offline   Reply With Quote

Old   July 3, 2017, 06:38
Default
  #5
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
I know you're not obliged to answer anything and I appreciate any kind of help, I just made an elaborated 'bump'. IMO it's a good quote

Thanks (for now), let me do some googling...
wyldckat likes this.
kandelabr 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



All times are GMT -4. The time now is 23:11.