CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Issues with CGNS formatted mesh in SU2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2016, 15:15
Default Issues with CGNS formatted mesh in SU2
  #1
New Member
 
Logan Whelan
Join Date: Sep 2016
Posts: 2
Rep Power: 0
jlwhelan28 is on a distinguished road
Hi folks,

Let me preface by saying I'm not sure whether this fits better in the SU2 or Pointwise sub forum. I'll start here.

I'm having an issue with running SU2 with a CGNS formatted mesh I created in Pointwise (3D unstructured mesh for a simple blended wing body). The mesh was constructed and exported during an evaluation of the pointwise software, so I unfortunately do not currently have access to it. My config file (bwb.cfg) points to the input mesh bwb.cgns with MESH_FORMAT = CGNS. When I try to evaluate this config file with SU2_CFD I get the following terminal message:

!!! Error !!!
bwb.cgns is not a CGNS file.
Now exiting...

I am able to open the mesh file just fine in Paraview. I have SU2 compiled in the latest Ubuntu release, and was sure to use the configuration options:

--with-CGNS-lib=/path/to/CGNS/lib --with-CGNS-include=/path/to/CGNS/header

when compiling SU2. The cgns library itself is installed correctly to the best of my knowledge. When I run the program cgnscheck on my mesh (built into cgns library), this also throws an invalid file type error.


I am very new to SU2 and the cgns format in general, so any help or suggestions are welcome as I'm at a bit of a loss here on how to progress.

Thank you kindly, and I'm happy to provide more specific information if needed.
jlwhelan28 is offline   Reply With Quote

Old   September 27, 2016, 15:23
Default
  #2
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14
hlk is on a distinguished road
Quote:
Originally Posted by jlwhelan28 View Post
Hi folks,

Let me preface by saying I'm not sure whether this fits better in the SU2 or Pointwise sub forum. I'll start here.

I'm having an issue with running SU2 with a CGNS formatted mesh I created in Pointwise (3D unstructured mesh for a simple blended wing body). The mesh was constructed and exported during an evaluation of the pointwise software, so I unfortunately do not currently have access to it. My config file (bwb.cfg) points to the input mesh bwb.cgns with MESH_FORMAT = CGNS. When I try to evaluate this config file with SU2_CFD I get the following terminal message:

!!! Error !!!
bwb.cgns is not a CGNS file.
Now exiting...

I am able to open the mesh file just fine in Paraview. I have SU2 compiled in the latest Ubuntu release, and was sure to use the configuration options:

--with-CGNS-lib=/path/to/CGNS/lib --with-CGNS-include=/path/to/CGNS/header

when compiling SU2. The cgns library itself is installed correctly to the best of my knowledge. When I run the program cgnscheck on my mesh (built into cgns library), this also throws an invalid file type error.


I am very new to SU2 and the cgns format in general, so any help or suggestions are welcome as I'm at a bit of a loss here on how to progress.

Thank you kindly, and I'm happy to provide more specific information if needed.
It sounds like there is something wrong in the cgns file, either it was not output as cgns format or otherwise corrupted or missing some key information. You may be able to load the file to an open-source mesh generation software and take a closer look there. Unfortunately, you'll have to find a way to fix the mesh prior to being able to use it with SU2.
hlk is offline   Reply With Quote

Old   October 24, 2016, 16:24
Default
  #3
New Member
 
Logan Whelan
Join Date: Sep 2016
Posts: 2
Rep Power: 0
jlwhelan28 is on a distinguished road
Turns out Pointwise creates cgns meshes with the HDF5 database. Using the cgns utility cgnsconvert, I was able to switch it to the ADF database, which SU2 was able to recognize.
jlwhelan28 is offline   Reply With Quote

Old   January 10, 2017, 05:53
Default
  #4
New Member
 
C. Atkins
Join Date: Oct 2016
Posts: 6
Rep Power: 10
c.atkins is on a distinguished road
I am having the same problem, how were you able to switch from HDF5 to ADF?

Thanks,

Chay
c.atkins is offline   Reply With Quote

Old   February 13, 2017, 05:13
Default
  #5
New Member
 
Join Date: Dec 2013
Location: Italy
Posts: 29
Rep Power: 13
Jiba is on a distinguished road
Just use the command

cgnsconvert -a original_grid converted_grid
Jiba is offline   Reply With Quote

Old   February 13, 2017, 12:48
Default
  #6
New Member
 
C. Atkins
Join Date: Oct 2016
Posts: 6
Rep Power: 10
c.atkins is on a distinguished road
Thanks for your help.
c.atkins is offline   Reply With Quote

Reply

Tags
cgns, pointwise cgns msh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D) Combas SU2 45 October 16, 2024 18:26
CGNS to SU2 - Element Type Not Supported skarthik SU2 6 October 27, 2020 04:24
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
How to use ICEM-CFD to generate CGNS mesh that could be recognized by SU2 Tommy Chen SU2 10 June 11, 2016 12:49
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 00:48.