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

[snappyHexMesh] illegal faces generated using snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2023, 06:21
Default illegal faces generated using snappyHexMesh
  #1
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
Hello all
I am using snappyHexMesh for meshing my case and everthing seems fine except that I got 185 illegal faces(please see the figure attached illegalFaces.jpg), but when I do checkMesh it seems fine(no bad face), and I also can run my simualation with laminar flow(for Turbulent flow omega blows up since cells are really small).
Now, my question is that "Is my mesh good"? please see the checkMesh.jpg.

I found these two threads from simscale where they say that small amount of illegalFaces are ok;

https://www.simscale.com/forum/t/mes...faces/82276/17

https://www.simscale.com/forum/t/ill...reatment/68691

any help will be appreciated.

Thanks,
Farzad
Attached Images
File Type: jpg illegalFaces.jpg (53.6 KB, 31 views)
File Type: jpg checkMesh.jpg (69.3 KB, 30 views)
farzadmech is offline   Reply With Quote

Old   April 12, 2023, 06:37
Default
  #2
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
One possible solution might be using castellated, snap and addLayers steps one by one as it says here;

https://develop.openfoam.com/Develop.../-/issues/2274

Again any help will be appreciated.


Thanks,
Farzad



Quote:
Originally Posted by farzadmech View Post
Hello all
I am using snappyHexMesh for meshing my case and everthing seems fine except that I got 185 illegal faces(please see the figure attached illegalFaces.jpg), but when I do checkMesh it seems fine(no bad face), and I also can run my simualation with laminar flow(for Turbulent flow omega blows up since cells are really small).
Now, my question is that "Is my mesh good"? please see the checkMesh.jpg.

I found these two threads from simscale where they say that small amount of illegalFaces are ok;

https://www.simscale.com/forum/t/mes...faces/82276/17

https://www.simscale.com/forum/t/ill...reatment/68691

any help will be appreciated.

Thanks,
Farzad
farzadmech is offline   Reply With Quote

Old   April 15, 2023, 09:46
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Mesh can be okay. If you can run its fine. The omega problem might be related to something else. However, is you mesh scaled correctly? The volumes are almost very very tiny. If the volumes are fine, you should check, if the Knudsen Number is fine for continuum mechanics.

However,

  • Running snappy in single steps might give another result as given by Mattijs in the issue you provided
  • Furthermore, if one is deleting the base-length file, you will definitely get a different mesh


For me, even though, you did not provide the mesh in a visual way, its okay.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 19, 2023, 01:53
Default
  #4
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
Dear Tobias
Thanks for your reply. I have attached my mesh and my solid inside the flow domain to this reply. I have used motorBike tutorial and I have tried to exactly follow that. My geometry is 2.4 cm and it has some attachment which has 20 micron diameter, but I do not understand why I should check knudsen number? Do you mean my geometry acts like a porous media? or what?

Thanks,
Farzad

Quote:
Originally Posted by Tobi View Post
Mesh can be okay. If you can run its fine. The omega problem might be related to something else. However, is you mesh scaled correctly? The volumes are almost very very tiny. If the volumes are fine, you should check, if the Knudsen Number is fine for continuum mechanics.

However,

  • Running snappy in single steps might give another result as given by Mattijs in the issue you provided
  • Furthermore, if one is deleting the base-length file, you will definitely get a different mesh


For me, even though, you did not provide the mesh in a visual way, its okay.
Attached Images
File Type: jpg mesh.jpg (212.1 KB, 28 views)
File Type: jpg geometry.jpg (110.9 KB, 19 views)
farzadmech is offline   Reply With Quote

Old   April 19, 2023, 03:30
Default
  #5
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
For the kOmegaSST problem(code blows up), I have calculated reference length scale based on length of the shape(2.4 cm) where I have very small diameters like 20 micron which is 1200 times smaller thank 2.4 cm, so I think Omega initial value cause the problem. I will tested it and let you know if kOmegaSST works or not.


https://www.openfoam.com/documentati...omega-sst.html

Thanks,
Farzad

Quote:
Originally Posted by Tobi View Post
Mesh can be okay. If you can run its fine. The omega problem might be related to something else. However, is you mesh scaled correctly? The volumes are almost very very tiny. If the volumes are fine, you should check, if the Knudsen Number is fine for continuum mechanics.

However,

  • Running snappy in single steps might give another result as given by Mattijs in the issue you provided
  • Furthermore, if one is deleting the base-length file, you will definitely get a different mesh


For me, even though, you did not provide the mesh in a visual way, its okay.
farzadmech is offline   Reply With Quote

Old   April 20, 2023, 04:52
Default How to remove( or at least reduce wrongFaces)
  #6
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
Dear all
Actually, I did a test and by increasing scale of the domain(1e6), I was able to mesh it without any problem and then I rescale the problem to the original shape using;
Code:
transformPoints -scale '(0.000001 0.000001 0.000001)'
Simulation wise, it seems wrong faces does not have meaningful effect on the results.


Thanks,
Farzad
farzadmech is offline   Reply With Quote

Reply

Tags
illegalfaces, openfoam, snappyhexmesh


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
[Other] Can't Shake Erros: patch type 'patch' not constraint type 'empty' BrendaEM OpenFOAM Meshing & Mesh Conversion 12 April 3, 2022 19:32
[snappyHexMesh] snappyHexMesh does not detect highly skewed faces? ptpacheco OpenFOAM Meshing & Mesh Conversion 1 January 4, 2022 13:37
decomposePar -allRegions stru OpenFOAM Pre-Processing 2 August 25, 2015 04:58
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 21:29.