Different results with meshes generated by Gmsh and Genbox

125 views
Skip to first unread message

Jundi He

unread,
Aug 17, 2021, 1:36:37 PM8/17/21
to Nek5000
Hi Neks,

I am trying to simulate a simple flow in a rectangle duct, the inlet velocity is 10m/s. At the beginning, I generated the mesh using Gmsh & gmsh2nek, and the simulation diverged quickly after starting. Then I used Genbox to generate the mesh and imposed the same boundary conditions. However, the simulation ran successfully without diverging, and the result seems reasonable. Does anyone know what is causing this difference? The geometry sizes and mesh resolutions built by Gmsh and Genbox are exactly the same.

The simple duct flow is described in this figure:
IMG_0579.jpg


I have attached the two files for the mesh generation (ch.geo for Gmsh and ch.box for Genbox), and I've attached the case setup files, including the .usr, .par & SIZE file. It should be noted that, the .usr files for the Genbox case and the Gmsh case are different: For the Gmsh case, the boundary condition type for each face are specified in subroutine "usrdat2", for the Genbox case, the boundary conditions are already defined in the .box file. I've named them ch_Genbox.usr and ch_Gmsh.usr separately.

Many thanks for your kind help! 

Jundi


ch.box
ch.geo
ch_Gmsh.usr
ch_Genbox.usr
SIZE
ch.par

hy...@anl.gov

unread,
Aug 17, 2021, 2:14:34 PM8/17/21
to Nek5000
Hi, Jundi,

Why you initialize  uy = 0 ? can you initialize to also 10 ?

Jundi He

unread,
Aug 18, 2021, 6:40:33 AM8/18/21
to Nek5000
Hi Hyuan,

Many thanks for the useful suggestion, I initialized the flow to 10m/s and the flow develops faster rather than starting from 0m/s. 

This is an update on my previous problem, it seems that I made a mistake in the mesh, in the Genbox mesh, I used 160 nodes in y (streamwise) direction, and in the Gmsh mesh, I only used 80. This might be the reason for the divergence in the Gmsh case, after changing the Gmsh mesh to 160, the simulation can run successfully. And the result obtained using meshes from Gmsh and Genbox are exactly the same, the below figure shows the streamwise velocity distributions in the Gmsh case (upper) and the Genbox case (lower):
Nek5000_u10_Genbox_Gmsh.png

Regards!
Jundi

Reply all
Reply to author
Forward
0 new messages