|
[Sponsors] |
Convert Tecplot ASCII Grid in "Point" Format to CGNS using tecplot_to_cgns utility |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 12, 2020, 13:51 |
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: 9 |
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? |
|
February 18, 2020, 19:24 |
|
#2 |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
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 |
|
February 19, 2020, 15:36 |
|
#3 |
New Member
Join Date: Feb 2017
Posts: 9
Rep Power: 9 |
No luck for the simple test file you suggested that I try.
|
|
February 19, 2020, 19:41 |
|
#4 |
New Member
Join Date: Feb 2017
Posts: 9
Rep Power: 9 |
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
|
|
February 20, 2020, 19:43 |
|
#5 |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
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.
|
|
February 20, 2020, 21:14 |
|
#6 |
New Member
Join Date: Feb 2017
Posts: 9
Rep Power: 9 |
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! |
|
February 20, 2020, 23:36 |
|
#7 |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
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 |
|
February 21, 2020, 13:24 |
|
#8 |
New Member
Join Date: Feb 2017
Posts: 9
Rep Power: 9 |
No luck with either of these approaches.
|
|
Tags |
cgns file read, cgns to tecplot |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
On grid independent solution for pulsatile flow | David | FLUENT | 5 | March 25, 2022 04:33 |
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 |
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 |