CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Tecplot (https://www.cfd-online.com/Forums/tecplot/)
-   -   How to write a binary file readable by tecplot di? (https://www.cfd-online.com/Forums/tecplot/12399-how-write-binary-file-readable-tecplot-di.html)

Dong October 13, 2006 03:47

How to write a binary file readable by tecplot di?
 
Hi, all:

How to write a binary file readable by tecplot directly?The corresponding ASCII content is like this: zone i=40, j= 50


Arambatzis George October 13, 2006 05:07

Re: How to write a binary file readable by tecplot
 
I don't know how to write a binary file but you can convert your ASCII file into binary with 'preplot'. Preplot is a small program that usually comes with Tecplot.

Jose October 13, 2006 05:58

Re: How to write a binary file readable by tecplot
 
You need to link to a tecplot library (it is called something like tecutil.a) and use the utilities contained therein.

M.Lipinski October 13, 2006 07:32

Re: How to write a binary file readable by tecplot
 
Dong,

You may use tecio library.

You will find the description of the functions to write binary data files in the reference manual of Tecplot (Chapter 11 for Tecplot Rel. 10).

regards

DML


Mani October 13, 2006 10:11

Re: How to write a binary file readable by tecplot
 
... alternatively, if you don't want to depend on the library, take a look at preplot. Preplot's source code usually comes as part of the tecplot package (open source!), so you can look at it and figure out what the the binary format is that you are interested in, and then write your own subroutines to write the data in that format. You may even be able to incorporate preplot routines in your code, but before you do that you should check if it's protected by copyright! In this way you don't have to create a huge ascii file to be processed by preplot, and your code may be more independent and portable than when using the libraries. ... it all depends on the amount of effort you want to invest in this.

Adnan Maqsood October 19, 2006 11:38

Re: How to write a binary file readable by tecplot
 
VARIABLES=X,Y,Z ZONE i=4, j=2,k=1,f=point 13.2993 1.2 -0.0937 13.408 1.2005 -0.1068 13.5204 1.2003 -0.1144 13.6328 1.2 -0.122 13.2964 1.1992 -0.1451 13.4085 1.1995 -0.1372 13.5206 1.1997 -0.1296 13.6328 1.2 -0.122

This is the general format of input data in tecplot file.


All times are GMT -4. The time now is 00:03.