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

[snappyHexMesh] snappyHexMesh cell alignment

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2022, 18:12
Default snappyHexMesh cell alignment
  #1
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Hello everyone,
with the goal of simulating a free-flowing channel (using interFoam as solver ) I am trying to set up the mesh, but the results are not satisfactory.

The channel has a maximum slope around 10% and is not straight.
For the mesh setup I followed the following steps:

Created the background mesh (blockMesh), without the boundary definitions, large enough to include all the stl geometries.

Created the stl for the definition of the channel (gray stl), inlet, outlet (pink stl) atmosphere (cyan stl), right and green boundary (boundary for air outlet - green and red stl).

The stl files were also used for the definition of the boundary conditions.

Using snappyHexMesh I created the mesh, defining the mesh itself as the internal volume of stl files.


The mesh created allows the simulation for 20 seconds of the 40 sec I've estimated, then it becomes unstable.
I noticed that the cells, due to the curve, are not aligned with the direction of the flow - as seen in the attached image which correspond in the castellatedMesh phase only (is not the "final" mesh I used in my tests simulations) but I think it makes the point.

Is it possible that the instability is due to this non-alignment?
Is possible to align the cell with the flow? If yes, how?

Thanks in advance...

Schermata 2022-03-03 alle 23.57.33.jpg

Schermata 2022-03-04 alle 00.01.50.jpg
Miguel Hernandez is offline   Reply With Quote

Old   March 4, 2022, 05:50
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Have you looked at important quality metrics for the mesh? What does the skewness, non-orthogonality look like? Also cellVolumeRatio might be important for mulitphase flows.


You can create a blockMesh that follows roughly the curvature of the channel, this will align the cells and simultaneously improve performance of snappy when snapping the mesh. I would definitely recommend that here.
AtoHM is offline   Reply With Quote

Reply

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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
[blockMesh] Odd cell distortion when meshing a sphere in BlockMesh or SnappyHexMesh 37269 OpenFOAM Meshing & Mesh Conversion 3 February 20, 2020 03:35
Neighboring cells in tetrahedral mesh vishwesh OpenFOAM Programming & Development 9 November 10, 2017 07:06
[snappyHexMesh] Problem with SnappyHexMesh Cell Removal MoeCFD OpenFOAM Meshing & Mesh Conversion 0 July 7, 2017 12:55
[snappyHexMesh] SnappyHexMesh and cell orientation region-wise heksel8i OpenFOAM Meshing & Mesh Conversion 2 July 23, 2015 02:15


All times are GMT -4. The time now is 06:33.