CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

Tecplot question (3d)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2004, 22:39
Default Tecplot question (3d)
  #1
Jane
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
  Reply With Quote

Old   May 11, 2004, 00:16
Default Re: Tecplot question (3d)
  #2
Praveen
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.
  Reply With Quote

Old   May 11, 2004, 08:02
Default Re: Tecplot question (3d)
  #3
Mike
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)
  Reply With Quote

Old   May 11, 2004, 10:57
Default Re: Tecplot question (3d)
  #4
Jane
Guest
 
Posts: n/a
Many thanks to Praveen and Mike, they work well.
  Reply With Quote

Reply


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
postprocessing Fluent Tecplot unknown FLUENT 0 October 11, 2009 06:34
Tecplot Macro - conditional - array variable pchidamb Tecplot 2 July 29, 2009 09:48
Tecplot question sunny2009 Tecplot 1 July 28, 2009 19:05
Importing contour maps into Tecplot jcostex Tecplot 1 May 20, 2009 12:48
Output data from STAR-CD to Tecplot Lee Siemens 0 June 5, 2006 12:58


All times are GMT -4. The time now is 19:34.