CGNS format meshes

108 views
Skip to first unread message

Frank Muldoon

unread,
May 3, 2017, 11:07:39 AM5/3/17
to pyfrmai...@googlegroups.com
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 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 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




-- 
Frank Herbert Muldoon, Ph.D. Mechanical Engineering
New Technologies and Service
27 Gzhatskaya street, room 205
Saint Petersburg
Russia, 195220
+79313075021 (cell)

Фрэнк Херберт Малдун, к.ф.-м.н.
Новые Технологии и Сервис
195220 г. Санкт-Петербург
ул. Гжатская, д. 27, комната 205
+79313075021 (мобильный)

fmuldoo (skype)
http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html

Park, Jin Seok

unread,
May 3, 2017, 6:48:20 PM5/3/17
to pyfrmai...@googlegroups.com, fmu...@me.lsu.edu

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,


Dr. Jin Seok Park PhD

From: pyfrmai...@googlegroups.com <pyfrmai...@googlegroups.com> on behalf of Frank Muldoon <fmu...@gmail.com>
Sent: 03 May 2017 15:07:36
To: pyfrmai...@googlegroups.com
Subject: [pyfrmailinglist] CGNS format meshes
 
--
You received this message because you are subscribed to the Google Groups "PyFR Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyfrmailingli...@googlegroups.com.
To post to this group, send email to pyfrmai...@googlegroups.com.
Visit this group at https://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages