Exporting meshes from Gmsh for use with PyFR

Hello all,

I am creating meshes using Gmsh and trying to get them into PyFR, but am running into the following errors.

File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/gmsh.py", line 162, in _read_phys_names
ValueError: No fluid elements in mesh

If I write out the mesh using Gmsh in NASTRAN format, FLUENT can read and display it correctly so it seems the mesh itself is OK. Is there some specific setting that PyFR expects to be set when writing out from Gmsh?

Cheers,
Frank

b.msh (20.4 KB)

Hi Frank,

Just rename your PhysicalName “internal” to “fluid” and it should work.

$PhysicalNames
7
2 2 “xy1”
2 3 “xy2”
2 4 “yz1”
2 5 “yz2”
2 6 “bottom wall”
2 7 “top wall”
3 1 “fluid”
$EndPhysicalNames

Cheers,

Niki

That was a simple fix!

Thanks,
Frank