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

PLOT3D files with Tecplot 2012

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By straton

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2013, 17:37
Default PLOT3D files with Tecplot 2012
  #1
New Member
 
Nikolaos Beratlis
Join Date: Jan 2010
Posts: 16
Rep Power: 16
nikosb is on a distinguished road
I am having problems reading solution files of PLOT3D format into Tecplot 2012. Here are two small test files I am using, one is the grid:

1
3 2 2
0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0
0.0 0.0 0.0 1.0 1.0 1.0 0.0 0.0 0.0 1.0 1.0 1.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

and the other one is the solution:

1
3 2 2
0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0

The domain is basically one block of size 3x2x2 and the files are ASCII formatted. I can read the grid file into Tecplot (see attached image) but when I try to read to solution file I get the following error:

File "sol.xyz" is not a solution file.

I was able to read PLOT3D files into Tecplot 2008, so I am very puzzled why I can't read them into Tecplot 2012. Is there something wrong with the solution file itself or a problem with Tecplot 2012.

Thank you,

Nikos
Attached Images
File Type: jpg grid.jpg (15.5 KB, 28 views)
nikosb is offline   Reply With Quote

Old   March 13, 2013, 23:08
Default
  #2
New Member
 
Nikolaos Beratlis
Join Date: Jan 2010
Posts: 16
Rep Power: 16
nikosb is on a distinguished road
When I add an extra line to solution file containing values for the Mach number, angle of attack, Reynolds number and time:

1
3 2 2
1.0 0.0 100.0 0.0
0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0

I don't get the previous error message but when it tries to load the file Tecplot crashes.
nikosb is offline   Reply With Quote

Old   March 18, 2013, 14:36
Default
  #3
New Member
 
Straton Spyropoulos
Join Date: May 2012
Location: United States
Posts: 11
Rep Power: 14
straton is on a distinguished road
In previous versions of Tecplot we read function and solution files in the same place. Now we have split this into 2 distinct categories for function and for solution. If you open your file in the function section (instead of solution) it will work.


What you are calling a solution file is actually a function file. A solution file always has the variables, RHO, RHO-U, RHO-V, RHO-W, and E.



Regards, Straton at Tecplot
xianburg likes this.
straton is offline   Reply With Quote

Old   April 20, 2018, 15:35
Default
  #4
New Member
 
Nikolaos Beratlis
Join Date: Jan 2010
Posts: 16
Rep Power: 16
nikosb is on a distinguished road
I am having trouble reading binary files in Tecplot. I have the following Fortran code to create PLOT3D test files

PROGRAM MAIN
c
IMPLICIT NONE
c
integer nx,ny,nz

integer i,j,k,m,n,nblocks
real, dimension(, allocatable :: x,y,z
real, dimension(:,:,, allocatable :: var

nx = 3
ny = 2
nz = 2

ALLOCATE(x(nx),y(ny),z(nz),var(nx,ny,nz))

do i=1,nx
do j=1,ny
do k=1,nz
x(i) = i
y(j) = j
z(k) = k
var(i,j,k) = i*j*k
enddo
enddo
enddo

open (unit=7, form='unformatted', file='3Dbin.x' )
write(7) 1
write(7) nx,ny,nz
write(7)
& (((x(i), i=1,nx), j=1,ny), k=1,nz),
& (((y(j), i=1,nx), j=1,ny), k=1,nz),
& (((z(k), i=1,nx), j=1,ny), k=1,nz)
close(7)

open(120,form='formatted', file='3Dascii.x')
write(120,*) 1
write(120,*) nx,ny,nz
write(120,*) (((x(i),i=1,nx),j=1,ny),k=1,nz)
& , (((y(j),i=1,nx),j=1,ny),k=1,nz)
& , (((z(k),i=1,nx),j=1,ny),k=1,nz)
close(120)

OPEN(19,form='unformatted', file='3Dbin.f')
WRITE(19) NX,NY,NZ,1
DO K=1,NZ
WRITE(19) ((VAR(I,J,K),I=1,NX),J=1,NY)
ENDDO
CLOSE(19)

OPEN(19,form='formatted', file='3Dascii.f')
WRITE(19,*) NX,NY,NZ,1
DO K=1,NZ
WRITE(19,*) ((VAR(I,J,K),I=1,NX),J=1,NY)
ENDDO
CLOSE(19)

DEALLOCATE(x,y,z,var)

END


It creates grid and function files and it writes them to a file. One set of files are ASCII formatted and the other set is BINARY formatted. I can read the ASCII formatted files but I can't read the BINARY formatted files. Tecplot crashes. I am using TECPLOT 2015 R2. What is the problem?
nikosb is offline   Reply With Quote

Old   April 24, 2018, 15:12
Default
  #5
New Member
 
John Connell
Join Date: Apr 2017
Posts: 7
Rep Power: 9
JohnConnell is on a distinguished road
Hello Nikos,

I was able to load your binary files for Tecplot 360 EX 2017 R2 and later. It looks like there was a bug in the Plot3D loader that has now been fixed. Please let us know if you have any more issues.

Regards, John C. at Tecplot
JohnConnell is offline   Reply With Quote

Reply

Tags
ascii, file, plot3d, read, tecplot


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
problem in importing fluent case nad data files to tecplot ganeshranakoti Tecplot 1 March 5, 2013 17:59
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


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