CGNS mesh import failure

Hi,

I would like a test a small test case with 3D model using PyFR.
I am basically extending the cylinder model with 3D dimension.
And also instead of the cylinder I have put the sphere.

I have now with me .cgns tet mesh, but when I try to convert it,
I am getting following error.

(root) tegner-login-1$ pyfr import inc_cylinder_3d.cgns inc_cylinder_3d.pyfrm

Traceback (most recent call last):
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/ctypesutil.py", line 32, in load_library
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libcgns.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/bin/pyfr", line 11, in <module>
load_entry_point('pyfr==1.7.0', 'console_scripts', 'pyfr')()
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/__main__.py", line 110, in main
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/__main__.py", line 121, in process_import
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/__init__.py", line 19, in get_reader_by_extn
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/cgns.py", line 374, in __init__
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/cgns.py", line 34, in __init__
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/ctypesutil.py", line 41, in load_library
OSError: Unable to load cgns

Could you please tell me what I am doing wrong.

Kind regards,
Mathi

Hi Mathi,

export PYFR_LIBRARY_PATH=(your CGNS library path)

Here is a thread about CGNS

Cheers,

Niki

Hi Niki,

Thanks!

Still I am getting some error.

(root) tegner-login-1$ pyfr import inc_cylinder_3d.cgns inc_cylinder_3d.pyfrm

Traceback (most recent call last):
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/bin/pyfr", line 11, in <module>
load_entry_point('pyfr==1.7.0', 'console_scripts', 'pyfr')()
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/__main__.py", line 110, in main
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/__main__.py", line 121, in process_import
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/__init__.py", line 19, in get_reader_by_extn
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/cgns.py", line 384, in __init__
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/cgns.py", line 272, in __init__
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/cgns.py", line 308, in _read_bc
File "/cfs/klemming/nobackup/g/gongjing/tegner/anacond3/4.4.0/lib/python3.6/site-packages/pyfr-1.7.0-py3.6.egg/pyfr/readers/cgns.py", line 206, in boco_read
RuntimeError: Only element range BC is supported

Could you please let me solve this issue.

Thanks,
Mathi

Hi Mathi,

I know very little about the CGNS format. However, this error has already been discussed on the mailing list

.

Jin Seok wrote:

“The CGNS reader of PyFR can deal with boundary condition associated with element, not node”.

Cheers,
Niki

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