Problem plotting binary file in tecplot

Creating Tecplot binary data files

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

Vighnesh
Newbie
Posts: 7
Joined: Sat Jul 18, 2009 1:20 am
Location: Aerospace Engineering Department, Indian Institue of Technology Bombay, Powai.
Contact:

Problem plotting binary file in tecplot

Postby Vighnesh » Thu Jul 08, 2010 10:46 pm

Hi,
I am using tecplot360 2006 version for post processing my CFD data. Since
my simulations are getting bigger, so as my data set. Therefore i am trying to switch
towards ploting directly a binary output data file. Earlier i used to plot ascii format
data files, following a preplot comand. I have posted some of the lines of my post
processong fortran code that converts my simulation output data to tecplot
binary-block format data. (I am dealing with ordered data set and linux os)


*********************************************************************
Include 'mpif.h'
Include 'tecio.inc'
*********************************************************************



*********************************************************************
Double Precision qt(mx,mx,mx,nvar)


character*1 NULLCHR
Integer*4 Debug,III,NPts,NElm

Real*8 SolTime
Integer*4 VIsDouble
Integer*4 ZoneType,StrandID,ParentZn,IsBlock
Integer*4 ICellMax,JCellMax,KCellMax,NFConns,FNMode,ShrConn
POINTER (NullPtr,Null)
Integer*4 Null(*)
*********************************************************************

*********************************************************************
NULLCHR = CHAR(0)
NullPtr = 0
Debug = 1
VIsDouble = 0
ZoneType = 0
SolTime = 360.0
StrandID = 0
ParentZn = 0
IsBlock = 1
ICellMax = 0
JCellMax = 0
KCellMax = 0
NFConns = 0
FNMode = 0
ShrConn = 0
*********************************************************************


*********************************************************************
I = TecIni110('SIMPLE DATASET'//NULLCHR,
& 'x y z r u v w t nu'//NULLCHR,
& 'test.plt'//NULLCHR,
& '.'//NULLCHR,
& Debug,
& VIsDouble)
*********************************************************************




*********************************************************************
I = TecZne110('Ramp'//NULLCHR,
& ZoneType,
& mx,
& my,
& mz,
& ICellMax,
& JCellMax,
& KCellMax,
& SolTime,
& StrandID,
& ParentZn,
& IsBlock,
& NFConns,
& FNMode,
& Null,
& Null,
& Null,
& ShrConn)


III = mx*my*mz*9
I = TecDat110(III,qt,1)
*********************************************************************




Where mx, my and mz are max. values of i, j and k cordinates respectively.
nvar = no. of variables and qt is the four dimensional array containing values
of varables, with i,j,k and variable no. as its four dimensions.
The problem is whenever i run my code it plots the binary data file without
any error. But when i load this data file in tecplot all the geometry gets messed up. All the varables show different values. I am not sure whether its variale qt definition problem
or something else is getting messed up while writing the variable values in the file.



My code compilation and execution steps:
*********************************************************************
$ /opt/mpich/pgi/bin/mpif90 post.f /usr/local/tec360/lib/tecio64.a -lm -lstdc++ -o post.exe
$ ./post.exe
Scratch File #1: ./tp1gtPHqR
Dest File #1: test.plt
NumVars=9
Writing Zone 1:
Title = Ramp
Type = ORDERED
IMax = 202
JMax = 202
KMax = 202
Writing 74181672 values to file 1.
File 1 closed.
*********************************************************************


Please, can any one help me sort out this problem. :(


Thank you,

Regards,
Vighnesh

juaneco2710
Newbie
Posts: 1
Joined: Sat Jun 30, 2012 3:27 pm
Location: Colombia

Re: Problem plotting binary file in tecplot

Postby juaneco2710 » Fri Aug 03, 2012 6:48 pm

I supuse you have already solved this problem because this post is so old.

Anyways, I think the problem is that you are trying to introduce all variables at once. I am not an expert but I think you have to call the tecdat112 function for each variable and the value of III has to be mx*my*mz.
Juan D. Colmenares
Mechanical Engineer


Return to “TecIO Library”

Who is online

Users browsing this forum: No registered users and 1 guest

cron