CGNS format meshes import failure

Hello all,

I am trying to get PyFR running using CGNS format meshes, but have am having no luck. Would anyone have a CGNS file that they have successfully used in PyFR? I am getting failures in PyFR that suggest that there is a somewhat limited subset of CGNS format meshes that PYFR can read.

Cheers,
Frank

[[fmuldoo@localhost](mailto:fmuldoo@localhost) periodic-hills]# pyfr import d*.cgns mesh.pyfrm

Traceback (most recent call last):
File "/home/fmuldoo/programs/PyFR-1.6.0/pyfr/pyfr", line 257, in <module>
main()
File "/home/fmuldoo/programs/PyFR-1.6.0/pyfr/pyfr", line 110, in main
args.process(args)
File "/home/fmuldoo/programs/PyFR-1.6.0/pyfr/pyfr", line 121, in process_import
reader = get_reader_by_extn(extn, args.inmesh)
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/__init__.py", line 19, in get_reader_by_extn
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 384, in __init__
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 266, in __init__
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 153, in zone_read
RuntimeError: ReadCGNS_read: Incorrect zone type for file
Segmentation fault (core dumped)

[[fmuldoo@localhost](mailto:fmuldoo@localhost) periodic-hills]# pyfr import a.cgns mesh.pyfrm

Traceback (most recent call last):
File "/home/fmuldoo/programs/PyFR-1.6.0/pyfr/pyfr", line 257, in <module>
main()
File "/home/fmuldoo/programs/PyFR-1.6.0/pyfr/pyfr", line 110, in main
args.process(args)
File "/home/fmuldoo/programs/PyFR-1.6.0/pyfr/pyfr", line 121, in process_import
reader = get_reader_by_extn(extn, args.inmesh)
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/__init__.py", line 19, in get_reader_by_extn
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 384, in __init__
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 272, in __init__
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 308, in _read_bc
File "/home/fmuldoo/programs/python/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/cgns.py", line 206, in boco_read
RuntimeError: Only element range BC is supported

Hi Frank,

Yes, currently, PyFR can read the single zone unstructured grid CGNS file.

In addition, the CGNS reader of PyFR can deal with boundary condition associated with element, not node.

Please try the CGNS example from CGNS web page (https://cgns.github.io/CGNSFiles/Bruce/yf17.cgns.gz). I confirmed that it works well.

Regards,

It is planned that in future versions of PyFR, CGNS mesh formats will not be supported.