CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Tecplot (https://www.cfd-online.com/Forums/tecplot/)
-   -   Tecplot polar contour plot problem (feat. Python) (https://www.cfd-online.com/Forums/tecplot/235831-tecplot-polar-contour-plot-problem-feat-python.html)

Moonkh April 30, 2021 09:25

Tecplot polar contour plot problem (feat. Python)
 
Dear all,

I want to make Tecplot polar contour (theta, radius, temp.)
Through Python, I got this sample matrix (or DataFrame) – colored area.


Deg. Radian 0.1 0.2 0.3 0.4 0.5 <-- Radius (m)
0 0.0 10 11 12 13 14
45 0.785398 15 16 17 18 19
90 1.570796 20 21 22 23 24
135 2.356194 25 26 27 28 29
180 3.141593 30 31 32 33 34
225 3.926991 35 36 37 38 39
270 4.712389 40 41 42 43 44
315 5.497787 45 46 47 48 49
360 6.283185 10 11 12 13 14



And I am trying to make binary format file for Tecplot.

So, I made this binary file.

Variables = "theta","R","Temp(kelvin)"
zone i= 9 j= 5
0.0 0.1 10
0.7853 0.1 15
1.5707 0.1 20
...
...
5.4977 0.5 49
6.2831 0.5 14


I got a contour but, it is rectangular shape (2-D contour).

1. My binary format is wrong? If yes, which form is required?
2. Is it possible to change contour shape in Tecplot from 2-D to Polar contour?

Thanks in advance!


All times are GMT -4. The time now is 21:05.