PLOT3D files with Tecplot 2012
1 Attachment(s)
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 |
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. |
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 |
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? |
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 |
All times are GMT -4. The time now is 21:56. |