CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   Importing 1D Tecplot files to Paraview with Zones results in NA (http://www.cfd-online.com/Forums/paraview/120878-importing-1d-tecplot-files-paraview-zones-results-na.html)

weirdtunguska July 16, 2013 16:09

Importing 1D Tecplot files to Paraview with Zones results in NA
 
Hi all,


I'm trying to import some Tecplot files into Paraview. They are imported without any errors, but the data columns are not imported - the Statistics are NA, no spreadsheet data, etc. The files work ok on Tecplot. Here an example:

title=" 1D profiles"
variables="z","sn","c1","cs1","snmk1","EA1","M1"," HA"
zone i= 10,T="# 1 z profile 0.5000E+02 days, "
0.0000E+00 0.0000E+00 0.1001E-20 0.1000E-09 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.1000E+00 0.0000E+00 0.1005E-20 0.1000E-09 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.2000E+00 0.0000E+00 0.1028E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.3000E+00 0.0000E+00 0.1173E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.4000E+00 0.0000E+00 0.2050E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.5000E+00 0.0000E+00 0.7215E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.6000E+00 0.0000E+00 0.3697E-19 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.7000E+00 0.0000E+00 0.2043E-18 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.8000E+00 0.0000E+00 0.1122E-17 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.9000E+00 0.0000E+00 0.6028E-17 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
zone i= 10,T="# 2 z profile 0.5000E+02 days, "
0.0000E+00 0.0000E+00 0.1001E-20 0.1000E-09 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.1000E+00 0.0000E+00 0.1005E-20 0.1000E-09 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.2000E+00 0.0000E+00 0.1028E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.3000E+00 0.0000E+00 0.1173E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.4000E+00 0.0000E+00 0.2050E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.5000E+00 0.0000E+00 0.7215E-20 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.6000E+00 0.0000E+00 0.3697E-19 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.7000E+00 0.0000E+00 0.2043E-18 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.8000E+00 0.0000E+00 0.1122E-17 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00
0.9000E+00 0.0000E+00 0.6028E-17 0.0000E+00 0.0000E+00 0.2500E-02 0.3000E-04 0.0000E+00



Cheers

weirdtunguska July 18, 2013 10:22

Hi all,

After talking with someone from the Paraview mailing list I found out that Paraview can only read 3D data files, so if I want to plot these values I have to add a X, Y, Z fake coordinate points, like this:

TITLE = "Example: Simple XY Plot"
VARIABLES = "X", "Y", "Z", "Distance", "Temperature"
ZONE T="Only Zone", I=20, J=1, K=1, F=POINT
0.0 0.0 0.0 0.0 850.9
0.0 0.0 0.0 0.022 790.1
0.0 0.0 0.0 0.051 554.0
0.0 0.0 0.0 0.069 540.0
0.0 0.0 0.0 0.075 545.5
0.0 0.0 0.0 0.083 549.4
0.0 0.0 0.0 0.106 590.2
0.0 0.0 0.0 0.1234 535.1
0.0 0.0 0.0 0.15 601.0
0.0 0.0 0.0 0.201 664.5
0.0 0.0 0.0 0.25 635.9
0.0 0.0 0.0 0.35 599.9
0.0 0.0 0.0 0.4454 600.0
0.0 0.0 0.0 0.49 513.0
0.0 0.0 0.0 0.5656 442.0
0.0 0.0 0.0 0.6423 333.5
0.0 0.0 0.0 0.6604 300.4
0.0 0.0 0.0 0.7 245.7
0.0 0.0 0.0 0.89 221.4
0.0 0.0 0.0 1.3 200.0

But this generates a new problem: the 20 values are shown plus twenty zeros after it, because of the J=2 or K=2. If I try to use J=1, K=1, Paraview can't read it again. Does anyone have an idea on how to handle this?

weirdtunguska July 18, 2013 11:01

Testing a few configurations I realized that if I change to

I=10, J=2, K=1

I get exactly the 20 values that I'm supposed to. It's a hack, but it works. If someone has a more elegant solution...


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