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

[snappyHexMesh] snappyHexMesh not snapping perfectly to surface and failing checkMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2010, 16:58
Default snappyHexMesh not snapping perfectly to surface and failing checkMesh
  #1
Member
 
Greg Givogue
Join Date: Aug 2010
Location: Ottawa Canada
Posts: 57
Rep Power: 16
Greg Givogue is on a distinguished road
Hi,

I've been trying to create a mesh for a pod geometry (similar to a fighter jet centerline fuel tank) using sHM. After several iterations I've got it to the point were the surface is fairly well represented. The geometry is represented by a pod.stl file (high degree of tessellation for the streamlined portion) and 66 face stl files that make up the support structure. I've also defined several edge features to optimize the refinement around the edges.

It takes about 4 GB of RAM to add and snap the mesh to the surface and then another 2GB when it moves onto the addLayers portion of sHM. In the end it produces about 440k cells. I'm using OF 1.7.1 in Ubuntu 10.04 (guest) in VMWare Fusion 3 (max 7.8 GB RAM).

I'm having 2 problems now with sHM.

The 1st is that the mesh fails checkMesh with 43 skewed faces. I've tried correcting this problem by changing the skew settings in meshQualityControls of sHM.

The 2nd problem is that there are a few spots where the mesh did not snap well to the surface. I've tried increasing both the nsmoothPatches and the nRelaxIter but that did not seem to help.

I've attached the sHMDict, checkMesh.log and mpirun.log files. If you require more information just let me know and I will post more stuff.

Thanks in advance for the help,

Greg
Attached Images
File Type: jpg CFD Model.jpg (37.0 KB, 449 views)
File Type: jpg pod with level 6 7.jpg (78.3 KB, 509 views)
File Type: jpg pod with level 6 7 bracket closeup.jpg (80.6 KB, 494 views)
Attached Files
File Type: gz pod.tar.gz (53.1 KB, 13 views)
Greg Givogue is offline   Reply With Quote

Old   September 27, 2010, 13:27
Default
  #2
Member
 
Greg Givogue
Join Date: Aug 2010
Location: Ottawa Canada
Posts: 57
Rep Power: 16
Greg Givogue is on a distinguished road
I tried snapEdge on this and it only caused the mesh to look worse and created more errors in checkMesh.
Greg Givogue is offline   Reply With Quote

Old   September 27, 2010, 19:58
Default jmf fixed something similar with maxConcave = 90
  #3
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Hey Greg, check this out http://www.cfd-online.com/Forums/ope...pyhexmesh.html

jmf seems to have solved a similar problem.

Ziad
ziad is offline   Reply With Quote

Old   September 28, 2010, 19:43
Default
  #4
Member
 
Greg Givogue
Join Date: Aug 2010
Location: Ottawa Canada
Posts: 57
Rep Power: 16
Greg Givogue is on a distinguished road
It turns out that the problems with the surface mesh and the skewed faces that are causing the meshCheck to fail are a result of addLayers. When I turn it off I get 25 skewed faces instead of 43 and the surface of my geometry looks really good. If I can't figure out why addLayers is doing this than I'll just turn it off and use other refinement tools. Any suggestions?
Greg Givogue is offline   Reply With Quote

Old   February 28, 2011, 11:45
Default Hi
  #5
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
I am also working with sHM. And I am also having the RAM problem. But I think thats because of the surface refinement and layer addition processes. And it depends on number of cells produced or the number of cells that the processor has to deal with during the process.
I have another problem. I have sharp features in my geometry and snapEdge seems to make things worse for me. But i think it worked before the layer addition process. As I added the layers it stopped working. Can you check if it works for you without layer addition.
Plus I just read a post which says that you can reduce the maxcanveness in mesh quality controls to make the mesh follow the sharp edges stringently. You can also try that.
Regards,
Awais
owayz is offline   Reply With Quote

Old   February 28, 2011, 12:43
Default
  #6
Member
 
Greg Givogue
Join Date: Aug 2010
Location: Ottawa Canada
Posts: 57
Rep Power: 16
Greg Givogue is on a distinguished road
Hi,

I understand your frustration, but I am no longer using sHM.

Instead of using snapEdge - try using edge refinement in sHM-features - edges... but first create a .eMesh file in the Trisurface folder to define the edge. A good explanation can be found if you search my other posts.

Good Luck!

Last edited by Greg Givogue; February 28, 2011 at 13:00.
Greg Givogue 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] snappyHexMesh failing to snap ("did not find surface within...") Jaworski.Mike OpenFOAM Meshing & Mesh Conversion 7 December 2, 2019 21:13
[DesignModeler] Always failing for surface from edges drercardio ANSYS Meshing & Geometry 3 August 19, 2016 16:39
Weird AMI Courant Number Vyssion OpenFOAM Running, Solving & CFD 3 April 13, 2016 03:31


All times are GMT -4. The time now is 07:54.