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

[snappyHexMesh] snappyHexMesh problem

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2014, 21:16
Default snappyHexMesh problem
  #1
Member
 
Sergey
Join Date: Nov 2013
Posts: 87
Rep Power: 12
skuznet is on a distinguished road
Hello!

Can any one tell me what does this message mean:

Code:
--> FOAM FATAL ERROR: 
cell 15802 of level 0 does not seem to have 8 points of equal or lower level
cellPoints:5(17411 17412 17432 17433 17640)
pointLevels:5{0}


From function hexRef8::setRefinement(const labelList&, polyTopoChange&)
in file polyTopoChange/polyTopoChange/hexRef8.C at line 3770.
I how do I fix this problem?

Thank you!
skuznet is offline   Reply With Quote

Old   April 23, 2014, 20:42
Default
  #2
New Member
 
Eric Bretscher
Join Date: Apr 2014
Location: New Zealand
Posts: 23
Rep Power: 12
seaspray is on a distinguished road
It is a mesh topology error. I would suggest looking at the mesh refinement settings used or at the way the base mesh is first obtained. Surface-based refinement in particular is prone to introducing step changes in refinement levels close to the surface that can sometimes lead to further problems. Exceeding 2:1 refinement ratios is also asking for trouble and often leads to such errors with SHM.

SHM runs with the least issues when there is a nice consistent uniform body of hexahedral cells all around the surface(s). Look into distance-based refinement before snapping, trying to further refine hexes around features is not always such a good idea, etc.

It is usually not too hard to get good snapping around geometry with the latest version (OF2.3.0), the same can't be said about growing consistent layers from the surface in the next step unfortunately!!!

Last edited by seaspray; April 23, 2014 at 20:44. Reason: More precise
seaspray is offline   Reply With Quote

Old   October 13, 2020, 18:47
Default
  #3
New Member
 
Gabriel
Join Date: Apr 2020
Posts: 3
Rep Power: 6
GabGar is on a distinguished road
Maybe you didn't erase the data from the last simulation, I mean, in 0 folder.
NITY likes this.
GabGar is offline   Reply With Quote

Old   May 14, 2021, 06:50
Default
  #4
New Member
 
mh
Join Date: May 2013
Posts: 5
Rep Power: 13
mhsadafi is on a distinguished road
That is a great point! It worked for me
GabGar likes this.
mhsadafi is offline   Reply With Quote

Old   September 16, 2021, 05:18
Default
  #5
Member
 
Muhammad Ahyar
Join Date: Mar 2020
Posts: 30
Rep Power: 6
Ahyar is on a distinguished road
Quote:
Originally Posted by mhsadafi View Post
That is a great point! It worked for me
which one do you say is a great point? i seem have a similar problem here
Ahyar is offline   Reply With Quote

Old   April 13, 2022, 06:20
Default
  #6
New Member
 
Anon
Join Date: Dec 2020
Posts: 20
Rep Power: 5
CfdUser5855 is on a distinguished road
For anyone else who finds this issue, re running block mesh and then SHM got rid of the same error
CfdUser5855 is offline   Reply With Quote

Old   May 30, 2022, 08:24
Default
  #7
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by CfdUser5855 View Post
For anyone else who finds this issue, re running block mesh and then SHM got rid of the same error
HI, I had the same problem, could you please provide more details how you resolve this?

Many thanks,
Tony
zyfsoton is offline   Reply With Quote

Old   May 30, 2022, 09:11
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Hi Tony,

This issue usually happens when trying to re-run snappyHexMesh on an existing mesh. snappy uses the previous mesh as initial mesh and throw this error because some cells are not hexahedric and it does not know how to split these cells to refine it.

In order to solve this issue you have to delete the previous mesh and recreate the initial mesh so snappy can start over on a clean initial mesh.

Regards,
Yann
Yann is offline   Reply With Quote

Old   May 30, 2022, 11:10
Default
  #9
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hi Tony,

This issue usually happens when trying to re-run snappyHexMesh on an existing mesh. snappy uses the previous mesh as initial mesh and throw this error because some cells are not hexahedric and it does not know how to split these cells to refine it.

In order to solve this issue you have to delete the previous mesh and recreate the initial mesh so snappy can start over on a clean initial mesh.

Regards,
Yann
Dear Yann,

Many thanks for your reply.

I have done some mesh refinement before executing snappyHexMesh, but I am not too sure about what you suggested about delete the previous mesh and recreate the initial mesh. Could you please provide more details about what means for previous mesh and how to create new initial mesh?

Many thanks and best regards,
Tony
zyfsoton is offline   Reply With Quote

Old   May 30, 2022, 11:17
Default
  #10
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Better doing it the other way around: can you describe all the steps you are doing before getting to the point when snappy gives your this error?

Yann
Yann is offline   Reply With Quote

Old   May 30, 2022, 11:26
Default
  #11
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by Yann View Post
Better doing it the other way around: can you describe all the steps you are doing before getting to the point when snappy gives your this error?

Yann
Sure, I am simulating the hull and the rudder. The basic step is to import hull and rudder stl files and then use blockMesh to generate the computation domain. Then refine the mesh around the hull. After mesh refinement, I use snappyhexmesh, then this error reported. I have tried to lower the nCellsBetweenLevels from 4 to 1, but it doesn't work.

Many thanks
Tony
zyfsoton is offline   Reply With Quote

Old   May 30, 2022, 11:41
Default
  #12
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
What do you mean by refine the mesh around the hull? How do you do it?

Yann
Yann is offline   Reply With Quote

Old   May 30, 2022, 11:50
Default
  #13
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by Yann View Post
What do you mean by refine the mesh around the hull? How do you do it?

Yann
Mesh refinement is the process of using refineMeshDict and topoSetDict, which you can find more details in OpenFOAM tutorial e.g. DTCHull.
zyfsoton is offline   Reply With Quote

Old   May 30, 2022, 12:00
Default
  #14
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
OK then refineMesh should not be the issue. Do you clean your case between 2 meshing attempts?

Try running an Allclean script, or manually delete the processor* directories (if running in parallel) or the constant/polyMesh directory (if running in serial). And then start over the process (blockMesh, refineMesh and then snappyHexMesh)

Regards,
Yann
Yann is offline   Reply With Quote

Old   May 30, 2022, 12:35
Default
  #15
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by Yann View Post
OK then refineMesh should not be the issue. Do you clean your case between 2 meshing attempts?

Try running an Allclean script, or manually delete the processor* directories (if running in parallel) or the constant/polyMesh directory (if running in serial). And then start over the process (blockMesh, refineMesh and then snappyHexMesh)

Regards,
Yann
Yes, every time if there is an error reported, I will delete all folders and then rerun all the processes, but there is still an error. Let me check again, I think the stl scale is not correct, which may be the source of error. I will figure it out and keep you updated.

Many thanks for your suggestion anyway!
Tony
zyfsoton is offline   Reply With Quote

Old   May 30, 2022, 12:40
Default
  #16
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Ok then let us know if proper scaling solves the issue.
If not, you can still post your case here so we can try running it and see if someone can spot where does the error come from.

Regards,
Yann
zyfsoton likes this.
Yann is offline   Reply With Quote

Old   October 8, 2022, 22:32
Default cell 226430 of level 0 uses more than 8 points of equal or lower level
  #17
New Member
 
MS
Join Date: Aug 2022
Posts: 9
Rep Power: 4
MS321@ is on a distinguished road
Hai All
I am new to openFoam
My case if to study flow around DTMB 5415
I run into an error as "cell 226430 of level 0 uses more than 8 points of equal or lower level" when i execute snappyhexmesh.
I did blockmesh then surfaceFeatureExtract then toposet(1 to 5) and refinemeshdict for each toposet then when i execute snappyHexMesh i run into same error as listed above.
I am using v2206 version 2.0
If anyone know how to solve this error please give me some suggestions
Hope i receives a positive reply soon ,Thank you,
Regards
MS321@ is offline   Reply With Quote

Old   October 9, 2022, 08:26
Default
  #18
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by MS321@ View Post
Hai All
I am new to openFoam
My case if to study flow around DTMB 5415
I run into an error as "cell 226430 of level 0 uses more than 8 points of equal or lower level" when i execute snappyhexmesh.
I did blockmesh then surfaceFeatureExtract then toposet(1 to 5) and refinemeshdict for each toposet then when i execute snappyHexMesh i run into same error as listed above.
I am using v2206 version 2.0
If anyone know how to solve this error please give me some suggestions
Hope i receives a positive reply soon ,Thank you,
Regards
HI, not sure the exact error source but from my point of view, it is better to do checkMesh after each mesh step, e.g blockMesh and refinementmesh. These two steps may have mesh problem, then if you run SHM, it will report the error for sure. But it also maybe the setting of your SHM is not sensible. Only from the information you provide, it is hard to figure it out. Also, it is necessary to do OF tutorials like DTCHull, DTCHullMoving and DTCHullWave, which would give you more insights of how mesher works in OF. I am using openfoam.org instead of your version openfoam.com, I think there is some differecne also between them, so be careful of it.

Tony
zyfsoton is offline   Reply With Quote

Old   October 9, 2022, 10:55
Default [snappyHexMesh] snappyHexMesh problem
  #19
New Member
 
MS
Join Date: Aug 2022
Posts: 9
Rep Power: 4
MS321@ is on a distinguished road
I am facing an issue -feature and surface refinement are getting stopped by saying "Stopping refining since too few cells selected".
Can someone please give me a suggestion to solve this problem.

Last edited by MS321@; October 10, 2022 at 12:36.
MS321@ is offline   Reply With Quote

Old   October 9, 2022, 11:20
Default [snappyHexMesh] snappyHexMesh problem
  #20
New Member
 
MS
Join Date: Aug 2022
Posts: 9
Rep Power: 4
MS321@ is on a distinguished road
I am attaching my snappy log file below please have a look into it , it is giving a message as meshing was done ok, but the problem is feature and surface refinement is not happening it is getting stopped.
Attached Files
File Type: txt log snappyhexmesh.txt (100.8 KB, 9 views)
MS321@ 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
[snappyHexMesh] Problem with decomposePar, snappyHexMesh luca1992 OpenFOAM Meshing & Mesh Conversion 12 August 23, 2017 20:06
[snappyHexMesh] snappyHexMesh problem cfdsolver1 OpenFOAM Meshing & Mesh Conversion 0 June 23, 2016 11:09
[snappyHexMesh] Problem handling with subdictionary in SnappyHexMesh Lorenzo92 OpenFOAM Meshing & Mesh Conversion 0 November 21, 2015 14:57
[snappyHexMesh] Problem with snappyhexMesh: modelling a pore chamber and pore throat model Saideep OpenFOAM Meshing & Mesh Conversion 5 May 10, 2015 15:46
[snappyHexMesh] Problem with snappyHexMesh giack OpenFOAM Meshing & Mesh Conversion 2 September 18, 2014 11:03


All times are GMT -4. The time now is 02:37.