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:
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