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

[snappyHexMesh] Bad quality mesh at external corners

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2016, 07:40
Default Bad quality mesh at external corners
  #1
Senior Member
 
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 273
Rep Power: 15
Bollonga is on a distinguished road
Hey guys,

I'm trying to mesh a very simple case of a 2D square, using snappyHexMesh and then extrudeMesh to get a 2D slice. You can see the square cylinder STL and the final 2D mesh (Picture 1).

The issue is that even for such a simple case where the square walls are aligned with the grid, corners seem to have too skewed elements at the castellated step (picture 2), and somehow get distorted when applying the snapping (picture 3).

I don't know why this distortion appears and how to avoid it.

I've been playing with the quality parameters without success. The ones I've used to generate the mesh are the ones from the motorBike Tutorial.

How can I improve my corner mesh quality?

I attach the snappyHexMesh case with STL files, Allrun and Allclean files.

Any help will be much appreciated! Thanks!
Attached Images
File Type: png LargerSTLsquare.png (37.1 KB, 77 views)
File Type: png Castellated_mesh_corner.png (4.1 KB, 77 views)
File Type: png Snapped_mesh_corner.png (4.2 KB, 80 views)
Attached Files
File Type: zip CuadradoL05m_0deg.zip (23.5 KB, 3 views)
Bollonga is offline   Reply With Quote

Old   January 20, 2017, 01:26
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
The split cells you see are products of your paraview settings. When you load paraview select use VTKPolyhedron on the left, it will remove them.
me3840 is offline   Reply With Quote

Old   October 31, 2017, 13:42
Default
  #3
Member
 
Chris L
Join Date: Sep 2012
Posts: 53
Rep Power: 13
vbchris is on a distinguished road
castellatedMesh true;
snap true;
addLayers true;

Turn off snap and addLayers.
These will relax the mesh to try and improve its quality. In your case if the grid matches the geometry they aren't needed. I think you can also turn of a relaxation setting which should do the same.
vbchris is offline   Reply With Quote

Reply

Tags
corners, quality, shm, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[ICEM] Unexplained changes of mesh quality and blocking approach salumi ANSYS Meshing & Geometry 9 November 23, 2016 04:14
[ICEM] Bad Mesh Quality in Hexa Axlex ANSYS Meshing & Geometry 2 April 14, 2014 10:03
Mesh Quality good or bad? RealENG22 FLUENT 5 September 8, 2013 07:36
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 03:32.