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

Convert Tecplot ASCII Grid in "Point" Format to CGNS using tecplot_to_cgns utility

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

Like Tree1Likes
  • 1 Post By kagoc8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2020, 13:51
Default Convert Tecplot ASCII Grid in "Point" Format to CGNS using tecplot_to_cgns utility
  #1
New Member
 
Join Date: Feb 2017
Posts: 9
Rep Power: 5
kagoc8 is on a distinguished road
I want to convert the grid that is available on NASA TMR for the periodic hill geometry to .cgns format using the tecplot_to_cgns utility available in the cgns toolset.

The grid is stored in a simple point format, with each cell identified using an x,y, and z coordinate. The first few lines of that file are shown below:

TITLE = "hill"
VARIABLES = "x", "y", "z"
ZONE I=197, J=129, K=1, F=POINT
-4.157690192E-09 1.000000000E+00 0.0
3.214285523E-02 1.000000000E+00 0.0
6.428571045E-02 1.000000000E+00 0.0
9.642857313E-02 1.000000000E+00 0.0
1.285714060E-01 9.995964170E-01 0.0

tecplot_to_cgns identifies this file as a valid tecplot ascii file, but fails to write a .cgns.
It does not throw an error, but instead fails to identify any nodes.

The output of the tecplot_to_cgns command is as follows:

./tecplot_to_cgns hill_grid_point.dat hill.cgns
reading Tecplot file from hill_grid_point.dat
writing CGNS data to hill.cgns
zone Zone1:25413 nodes... 0 elements... done

Can anyone with experience with the cgns toolset provide guidance regarding this issue?
Светлана likes this.
kagoc8 is offline   Reply With Quote

Old   February 18, 2020, 19:24
Default
  #2
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 357
Rep Power: 9
Светлана is on a distinguished road
Does it work for a tiny mesh like below?

TITLE = "test"
VARIABLES = "x", "y", "z"
ZONE I=2, J=2, K=1, F=POINT
0.0 0.0 0.0
0.0 1.0 0.0
1.0 1.0 0.0
1.0 0.0 0.0
Светлана is offline   Reply With Quote

Old   February 19, 2020, 15:36
Default
  #3
New Member
 
Join Date: Feb 2017
Posts: 9
Rep Power: 5
kagoc8 is on a distinguished road
No luck for the simple test file you suggested that I try.
Attached Images
File Type: png Screenshot from 2020-02-19 11-35-02.png (26.8 KB, 1 views)
kagoc8 is offline   Reply With Quote

Old   February 19, 2020, 19:41
Default
  #4
New Member
 
Join Date: Feb 2017
Posts: 9
Rep Power: 5
kagoc8 is on a distinguished road
It does work however, when going back and forth between .cgns and Tecplot ascii when using the "bump.dat" sample .cgns file available here: https://cgns.github.io/CGNSFiles.html
Attached Images
File Type: png Screenshot from 2020-02-19 15-36-54.png (32.0 KB, 0 views)
kagoc8 is offline   Reply With Quote

Old   February 20, 2020, 19:43
Default
  #5
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 357
Rep Power: 9
Светлана is on a distinguished road
Can you paste the bump.dat headers (first 4-5 lines of the bump.dat file)? I will be able to test this in my Tecplot in the next few days, but not today.
Светлана is offline   Reply With Quote

Old   February 20, 2020, 21:14
Default
  #6
New Member
 
Join Date: Feb 2017
Posts: 9
Rep Power: 5
kagoc8 is on a distinguished road
The header looks like this:

TITLE = "bump"
VARIABLES = "X", "Y", "Z"
ZONE T="Zone 1", N=36562, E=18000, F=FEBLOCK, ET=BRICK
-3.19885 -3.19885 -2.99627 -2.99627 -2.80402
-2.80402 -2.62157 -2.62157 -2.44842 -2.44842
-2.28410 -2.28410 -2.12816 -2.12816 -1.98017
-1.98017 -1.83972 -1.83972 -1.70644 -1.70644
-1.57995 -1.57995 -1.45991 -1.45991 -1.34599
-1.34599 -1.23787 -1.23787 -1.13527 -1.13527
-1.03791 -1.03791 -0.945502 -0.945502 -0.857809
-0.857809 -0.774587 -0.774587 -0.695608 -0.695608
-0.620656 -0.620656 -0.549525 -0.549525 -0.482022
-0.482022 -0.417960 -0.417960 -0.357164 -0.357164
-0.299467 -0.299467 -0.244713 -0.244713 -0.192750
-0.192750 -0.143437 -0.143437 -0.0966375 -0.0966375
-0.0522244 -0.0522244 -0.0100757 -0.0100757 0.0299240
0.0299240 0.0678843 0.0678843 0.103909 0.103909


the full file is on the cgns site mentioned above. Thanks for your help!
kagoc8 is offline   Reply With Quote

Old   February 20, 2020, 23:36
Default
  #7
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 357
Rep Power: 9
Светлана is on a distinguished road
Here I've modified the small file above to include the zone title:

TITLE = "test"
VARIABLES = "x", "y", "z"
ZONE T="myzone", I=2, J=2, K=1, F=POINT
0.0 0.0 0.0
0.0 1.0 0.0
1.0 1.0 0.0
1.0 0.0 0.0

Could you possibly check whether this works? The other difference is BLOCK datapacking, here is an example for it:

TITLE = "myDataSet"
VARIABLES = "X", "Y", "Z", "U"
ZONE I=5, DATAPACKING=BLOCK
2 3 5 6 7
4 9 25 36 49
0 0 0 0 0
0 1 4 1 0

Please check whether any of this works.

Thanks and regards,
Svetlana
Светлана is offline   Reply With Quote

Old   February 21, 2020, 13:24
Default
  #8
New Member
 
Join Date: Feb 2017
Posts: 9
Rep Power: 5
kagoc8 is on a distinguished road
No luck with either of these approaches.
Attached Images
File Type: png Screenshot from 2020-02-21 09-24-00.png (63.8 KB, 2 views)
kagoc8 is offline   Reply With Quote

Reply

Tags
cgns file read, cgns to tecplot

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
Tecplot output format in 2-D cartesian grid jinwon park Tecplot 5 April 7, 2008 07:28
2d CGNS grid for use with ensight zonexo Main CFD Forum 0 May 16, 2006 22:37
On grid independent solution for pulsatile flow David FLUENT 4 June 8, 2005 17:20
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 06:59
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 12:18


All times are GMT -4. The time now is 09:31.