CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Tecplot (http://www.cfd-online.com/Forums/tecplot/)
-   -   How to write Tecplot binary file(.plt) in CFD code on Linux 64 platform? (http://www.cfd-online.com/Forums/tecplot/68062-how-write-tecplot-binary-file-plt-cfd-code-linux-64-platform.html)

markailee September 4, 2009 09:56

How to write Tecplot binary file(.plt) in CFD code on Linux 64 platform?
 
The large data file output in CFD code often bothers me. It's very slow to open to view in tecplot. And the tecplot binary output is much smaller and fast loaded.
As instruction in help file, I realized the binary output on windows platform ( wih file tecio.lib, tecio.dll, tecio.f90).
However, I failed to do that in linux( Redhat AS 5 , 64 bit system, my compiler is intel fortran). I download the library file from (http://www.tecplot.com/support/tecio.aspx). I only get the tecio64.a (linux64.26), which is only the static library, no dynamics library as in windows? And I have no head file like tecio.f90, so I use the head file in windows instead. When I compile my code, lots of errors occur on screen:

tecio64.a(tecxxx.o):(.gnu.linkonce.d.DW.ref.__gxx_ personality_v0+0x0): undefined reference to `__gxx_personality_v0'
tecio64.a(strutil.o): In function `FormatString(std::string&, tecplot::strutil::TranslatedString, ...)':
strutil.cpp:(.text+0x35d): undefined reference to `std::string::assign(char const*)'
strutil.cpp:(.text+0x369): undefined reference to `std::string::size() const'
..........

has anyone known how to write Tecplot binary file in code?
Thanks!

johndorian September 4, 2009 10:43

Can't you just output the file in ASCII and then use the preplot executable supplied with tecplot to convert the file to tecplot binary? It's much less of a pain!

markailee September 4, 2009 11:28

Quote:

Originally Posted by johndorian (Post 228590)
Can't you just output the file in ASCII and then use the preplot executable supplied with tecplot to convert the file to tecplot binary? It's much less of a pain!

It's also painful.
First, the code is running on the school's parallel machine. Every time I need to download a very large file(3-5 G). That takes time. The binary .plt file is only 1/6 of original file.
Second, it still takes time to "preplot" the data. My machine is not fast enough to do this post process.

It's easy to realize this binary output on windows. So I think it's possible to do that on Linux, just lack of right header file(tecio.f90) and library (tecio.a).

markailee September 4, 2009 22:59

I email tecplot Inc. He told me to add flag -lstdc++ in compile option, and it works right.

bohluly September 5, 2009 06:47

I have a subroutin about that
 
1 Attachment(s)
I have a independent subroutin about that, it is easy used in windows, i think it works in other platforms too. if you can pleas check it, i sent it by attachment (it is *.for)

pradeeppandeygbpec December 16, 2010 08:03

Quote:

Originally Posted by markailee (Post 228615)
I email tecplot Inc. He told me to add flag -lstdc++ in compile option, and it works right.

hi...
can u please share the mailing address of tecplot at which they help one to short out his problems regarding various doubts in plotting.

I have to slice plains normal to surface for flow in a bend tube, at different angles.


All times are GMT -4. The time now is 15:46.