|
[Sponsors] |
May 10, 2004, 23:39 |
Tecplot question (3d)
|
#1 |
Guest
Posts: n/a
|
Hi, I have a 3d tecplot question, the x is 1:1:100,y=1:1:10,z=1:1:10,cc(x,y,z) is the 3d array with dimension (100,10,10). How should I organize the structure of the data so that I can plot it in tecplot? Anybody know how to plot the 3d contour in matlab? Thanks.
Jane |
|
May 11, 2004, 01:16 |
Re: Tecplot question (3d)
|
#2 |
Guest
Posts: n/a
|
Please correct me if I am wrong. This should work for tecplot.
i - along x j - along y k - along z print "Variables = x, y, z, cc" print "Zone T = xyz, i=imax, j=jmax, k=kmax" for k=1:kmax for j=1:jmax for i=1:imax print x(i,j,k) y(i,j,k) z(i,j,k) cc(i,j,k) end end end Tecplot manual is available on their website. |
|
May 11, 2004, 09:02 |
Re: Tecplot question (3d)
|
#3 |
Guest
Posts: n/a
|
Tecplot User's Manual Version 9.2, Release 1
............................. 5.2.2.2. Example of FORTRAN Code to Generate IJ-Ordered Data in POINT WRITE (*,*) īVARIABLES = "X", "Y", "Temperature", "Pressure"' WRITE (*,*) īZONE I=', IMAX, ', J=', JMAX, ', 'F=POINT' DO 1 J=1,JMAX DO 1 I=1, IMAX 1 WRITE (*,*) X(I,J), Y(I,J), T(I,J), P(I,J) 5.2.3.3. An Example of FORTRAN Code to Generate an IJK-Ordered Zone in POINT Format. WRITE (*,*) 'VARIABLES = "X", "Y", "Z", "Temp"' WRITE (*,*) 'ZONE I=',IMAX,' J=',JMAX,' K=',KMAX,' F=POINT' DO 1 K=1,KMAX DO 1 J=1,JMAX DO 1 I=1,IMAX 1 WRITE (*,*) X(I,J,K), Y(I,J,K), Z(I,J,K), Temp(I,J,K) |
|
May 11, 2004, 11:57 |
Re: Tecplot question (3d)
|
#4 |
Guest
Posts: n/a
|
Many thanks to Praveen and Mike, they work well.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
postprocessing Fluent Tecplot | unknown | FLUENT | 0 | October 11, 2009 07:34 |
Tecplot Macro - conditional - array variable | pchidamb | Tecplot | 2 | July 29, 2009 10:48 |
Tecplot question | sunny2009 | Tecplot | 1 | July 28, 2009 20:05 |
Importing contour maps into Tecplot | jcostex | Tecplot | 1 | May 20, 2009 13:48 |
Output data from STAR-CD to Tecplot | Lee | Siemens | 0 | June 5, 2006 13:58 |