CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

CGNS problematic import in Pointwise

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2014, 17:13
Default CGNS problematic import in Pointwise
  #1
New Member
 
Spyros
Join Date: Mar 2014
Posts: 20
Rep Power: 12
S.Kontogiannis is on a distinguished road
Hello,

I would like to ask about 2 issues regarding Pointwise .cgns import.

1. I have a 2D map-structured mesh around an Eppler airfoil that I want to simulate using SU2 code. I need to create the .su2 format, therefore I will use Pointwise to transform a .cgns file into .su2. The .cgns file is exported from FLUENT (see pic 1).
When I import the .cgns file into Pointwise, the mesh is automatically diagonlised (triangular cells),(see pic 1). The diagonilize option is not enabled. Why is this happening? I verified that the mesh is been altered (and it is not just an optical problem) by exporting a .cgns by Pointwise and importing it on Tecplot (see pic 3).

2. When I try importing a 3D .cgns mesh (again exported by FLUENT), I receive an error "Detected 1 unsupported entity. Unable to continue".

Do you know how can I solve these issues?

Thanks,
Spyros
Attached Images
File Type: jpg 1. e387_cgns_fluent.jpg (96.3 KB, 66 views)
File Type: png 2. e387_cgns_pointwise.PNG (47.8 KB, 48 views)
File Type: png 3. e387_tecplot.png (30.5 KB, 52 views)
S.Kontogiannis is offline   Reply With Quote

Old   March 30, 2014, 20:26
Default
  #2
Senior Member
 
John Chawner
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 275
Rep Power: 18
jchawner is on a distinguished road
Hello Spyros:

Pointwise only currently understands hex cells in the context of a structured grid. If the CGNS file from Fluent has unstructured hexes, Pointwise can't parse it and gives that error message.

In 2D, Pointwise sees the quads and triangulates them before import because it does understand unstructured triangles (not unstructured quads).

See if you can export the grid in a structured grid format like PLOT3D.
__________________
John Chawner / jrc@pointwise.com / www.pointwise.com
Blog: http://blog.pointwise.com/
on Twitter: @jchawner
jchawner is offline   Reply With Quote

Old   April 1, 2014, 09:16
Default
  #3
New Member
 
Spyros
Join Date: Mar 2014
Posts: 20
Rep Power: 12
S.Kontogiannis is on a distinguished road
Hello jchawner,

Thank you for the reply. Unfortunately, nothing of these worked. I do not have a way for exporting in a structured grid format like PLOT3D and my attempts in using various forms failed: "Invalid file - no data imported".

Regarding the 3D CGNS file, this is a structured hex cell mesh. Therefore, based on what you suggested it should have been imported, if i understand your reply correctly. Furthermore, in the future i will need importing cgns files of hybrid meshes. Does this mean that i will not be able to import such cgns meshes in Pointwise? Is there another format that can be easily read in Pointwise?

Thank you very much,
Spyros
S.Kontogiannis is offline   Reply With Quote

Old   April 1, 2014, 09:30
Default
  #4
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by S.Kontogiannis View Post
Hello jchawner,
Regarding the 3D CGNS file, this is a structured hex cell mesh. Therefore, based on what you suggested it should have been imported, if i understand your reply correctly.
Spyros
If you exported the CGNS file with Fluent, the mesh will be unstructured. While you may have originally created a structured mesh and it still looks like a structured mesh, when it's imported into Fluent it loses the topology information that make it truly a structured mesh.

The best way I see this working is to either a) build SU2 with CGNS import support b) use the CGNS-to-PLOT3D converter from the CGNS web site (http://cgns.sourceforge.net/Utilities.html) and then import the PLOT3D into Pointwise.

-Chris
cnsidero is offline   Reply With Quote

Old   April 2, 2014, 14:10
Default
  #5
New Member
 
Spyros
Join Date: Mar 2014
Posts: 20
Rep Power: 12
S.Kontogiannis is on a distinguished road
Unfortunately, I don't see another solution. I cannot export in a structured format with PLOT3D and I will also need hyburd meshes anyway.

I wanted to avoid that though since it is recomended by the developers of SU2 in Stanford to prefer the native .su2 format.
S.Kontogiannis is offline   Reply With Quote

Old   April 2, 2014, 14:14
Default
  #6
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
I don't know how or where you're generating your meshes initially but you do know that Pointwise can export SU2 meshes directly. So if you create your mesh in Pointwise, none of this will be an issue for you.
cnsidero is offline   Reply With Quote

Old   April 2, 2014, 16:43
Default
  #7
New Member
 
Spyros
Join Date: Mar 2014
Posts: 20
Rep Power: 12
S.Kontogiannis is on a distinguished road
Yes you are right in that.. But I will do my master thesis using SU2 among others and unfortunately I do not have time to learn new software.. This is the last choice for me if the cgns import in SU2 does not work.

Thank you very much for your reply,
Spyros
S.Kontogiannis is offline   Reply With Quote

Old   April 17, 2014, 08:17
Default Cut out Pointwise
  #8
New Member
 
Ben
Join Date: Mar 2013
Posts: 15
Rep Power: 13
bensciens is on a distinguished road
Hello Spyros,

Are you familiar with any programming languages, i.e. Python, Fortran?

Two years ago I was using SU2 and I made a SU2 mesh writer, I didn't find the format particularly difficult to write (I used fortran). I have also used the CGNS libraries and they aren't too difficult to use.

I would recommend Python and you can use PyCGNS module to read the mesh then just write it out using the inbuilt python write functions.

http://pycgns.sourceforge.net/

Sadly I don't have the file I created any more but if I can help some other way let me know.

As a final comment, when I was using SU2 I think I read in the guide that if you do compile with CGNS support then there is a way to get the mesh to be written to .su2 format at preprocessing.

Hope this helps,
Ben
bensciens is offline   Reply With Quote

Old   April 17, 2014, 08:28
Default
  #9
New Member
 
Spyros
Join Date: Mar 2014
Posts: 20
Rep Power: 12
S.Kontogiannis is on a distinguished road
Hi Ben,

Thanks for your suggestions.. I solved the problem by reinstalling the new edition of SU2 with CGNS support. In my initial installaiton, there was a problem with the cgns libraries and the -DNO CGNS directive. Now it can import CGNS files correctly so i just have to export my meshes into CGNS format. After the import, the serial SU2 code can transform the mesh into the native (.su2) format that can be used in later parallel computations.

But Thank very much for your suggestions anyway,
Spyros
S.Kontogiannis is offline   Reply With Quote

Reply

Tags
cgns, pointwise

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
How to import .curve format file into Pointwise hui Pointwise & Gridgen 13 November 30, 2015 11:41
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
Import point into pointwise Joke Pointwise & Gridgen 3 April 3, 2013 01:16
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
CGNS import Anton FLUENT 1 November 23, 2002 08:58


All times are GMT -4. The time now is 12:54.