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

[snappyHexMesh] help to troubleshooting snappy mesh errors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2020, 11:10
Default help to troubleshooting snappy mesh errors
  #1
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6
otaolafr is on a distinguished road
hello,
I am trying to use snappyHexMesh with a complex geometry,
it has really small volumes, in some parts (see figures attached).
the surface mesh i prepeared with salome from the STEP file.
the background mesh i am creating it with blockMesh function,
my issue is that when doing snappy, it gets a lot of illegal faces in the morphing phase (only faces with face pyramid volume < 1e-13: 30842824 ), so snappy keeps trying to solve this problem and the morphing phase iterations begins, until the morph iteration 10 the illegal faces stay the same, and after, the face with face pyramid volume < 1e-13 begins to decrease, other errors begins to appear .... ( first non-orthogonality > 65 degrees that increas in number until morph 22 then faces with face-decomposition tet quality < 1e-15 and faces with face twist < 0.02 appears). after this i beging getting foam warnings:
Code:
From function static Foam::vectorField Foam::snappySnapDriver::calcNearestSurface(const Foam::meshRefinement&, const scalarField&, const indirectPrimitivePatch&, Foam::pointField&, Foam::vectorField&)
    in file snappyHexMeshDriver/snappySnapDriver.C at line 1638
several times each morph iteration and at the end i finish with:
Code:
    non-orthogonality > 65  degrees                        : 8904
    faces with face pyramid volume < 1e-13                 : 30833798
    faces with face-decomposition tet quality < 1e-15      : 41
    faces with concavity > 80  degrees                     : 3
    faces with skewness > 4   (internal) or 20  (boundary) : 1
    faces with interpolation weights (0..1)  < 0.05        : 1
    faces with volume ratio of neighbour cells < 0.01      : 0
    faces with face twist < 0.02                           : 5
    faces on cells with determinant < 0.001                : 4
Finished meshing with 30842757 illegal faces (concave, zero area or negative cell pyramid volume)
I was looking any guideline or troubleshooting to read so i can improve my snappydict or my background mesh, as i have found several tutorials for snappy but where this problem does not show.
I do not know where to beging as there is so much features in snappy, and as it takes some time to run (17000secs) I can not change easyly the parameters and re run it...
I am attaching the blockMeshDict and also the snnapy and the log.snappy if it helps.
i also attach the photos of the surface mesh , how it looks inside, and also the edges i capture from the surfaceFeatureExtract (i can say that it is extracting the correct edges....)

best regards,
franco
Attached Images
File Type: jpg image51.jpg (26.7 KB, 57 views)
Attached Files
File Type: txt blockMeshDict.txt (3.4 KB, 6 views)
File Type: txt snappyHexMeshDict.txt (9.5 KB, 10 views)
File Type: txt log.snappyHexMesh.txt (135.7 KB, 5 views)
otaolafr is offline   Reply With Quote

Old   June 9, 2020, 23:30
Default
  #2
Member
 
Ardalan
Join Date: Jul 2012
Location: Atlanta, USA
Posts: 77
Rep Power: 14
Ardali is on a distinguished road
Hi,
Snappy is not a perfect tool for automesh generation.

As you extracted acceptable edges from your surface, I only recommend to play with the global and local number of cells. Decrease the number refinement and see what happens. Try to find a star good coarse mesh and then refine the mesh.
Snappy does not give y plus 1 so do not refine close to the wall to much.
Try too deal with it.
Good luck
Ardalan
Ardali is offline   Reply With Quote

Old   June 10, 2020, 03:05
Default
  #3
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6
otaolafr is on a distinguished road
Quote:
Originally Posted by Ardali View Post
Hi,
Snappy is not a perfect tool for automesh generation.

As you extracted acceptable edges from your surface, I only recommend to play with the global and local number of cells. Decrease the number refinement and see what happens. Try to find a star good coarse mesh and then refine the mesh.
Snappy does not give y plus 1 so do not refine close to the wall to much.
Try too deal with it.
Good luck
Ardalan
hello Ardalan,
thanks for your advice, yeah I am quiet happy that I can recover the "real" edges with such precision.
global and local numbers of cells is up to the sky already :/ I am at 12 000 000 of cells for the global and 2 000 000 for the locals (but I will give a try!)
decrease the number of refinement? i though that it will be better the higher the number is...
star mesh you refear to the background mesh dont you? it was I was trying to modify now.
Snappy does not give y plus,Snappy is not a perfect tool for automesh generation , please allow me to ask you, what you would recommend? i have several geometries with the same boundaries and the same bounding bock with more or less the same internal dimensions so i thought that if I find the correct parameters for snappy it would be a good option, but I am really open to suggestions ! I thought about cfMesh but as the development stop it i thought it would not be a good idea... I don't know. any recommendation is appreciated it!
and thanks again for the help !
franco
otaolafr is offline   Reply With Quote

Old   July 16, 2023, 09:04
Default
  #4
New Member
 
Join Date: Jun 2023
Location: Brest
Posts: 21
Rep Power: 3
CFDUser29 is on a distinguished road
Hello,
I wonder if you managed in the end to reduce the number of illegal faces because I am facing the same problem, with more than 1M cells.
CFDUser29 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] Snappy Hex Mesh - issue with smoothness of the model edges olek.warc OpenFOAM Meshing & Mesh Conversion 1 August 31, 2018 12:31
Unstructrued O-type Mesh of a cylinder with icoFoam kindle OpenFOAM Running, Solving & CFD 1 December 2, 2016 12:45
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 03:34
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


All times are GMT -4. The time now is 00:47.