CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

It would be wonderful if a tool for FoamToTecplot is available

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2006, 12:22
Default Hey Frank, at the moment fo
  #41
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
Hey Frank,

at the moment foamToTecplot is limited to hex, wedge, prism, pyramid and tet due to the limitations in tecplot. If you want to handle polyhedrals you could make tets out of them. Check one of the other converters to have a look how it could work.

regards
markus
hartinger is offline   Reply With Quote

Old   September 17, 2006, 12:29
Default FYI, tecplot is currently addi
  #42
New Member
 
Daniel Einstein
Join Date: Mar 2009
Posts: 22
Rep Power: 17
deinstein is on a distinguished road
FYI, tecplot is currently adding polyhedral support so stay tuned.
deinstein is offline   Reply With Quote

Old   September 18, 2006, 10:08
Default HI, Is foamToTecplot tool wo
  #43
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
HI,
Is foamToTecplot tool working for OpenFOAM1.3? I mean, if I have a cyclic patch, it does not work. I guess I have to include the right library in Make/options file...could anyone please tell me which is the one?
Cheers,
radu
r2d2 is offline   Reply With Quote

Old   September 19, 2006, 05:14
Default Just in case anyone is interes
  #44
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
Just in case anyone is interested...
the options file should contain

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lfoamUtil

rather than whatever reference to "cfdtools" in versions1.1 and 1.2 of Foam. Afterwards the tool will compile OK.
Radu
r2d2 is offline   Reply With Quote

Old   September 27, 2006, 05:55
Default Hi, When I convert the Open
  #45
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Hi,

When I convert the OpenFOAM data using the foamToTecplot utility, all my mesh and flow data is put into one zone: "Zone 001".

I really like to be able to switch different boundaries/surfaces on/off, but using only one zone this is not possible.

How do I store the the OpenFOAM data of different patches to different Tecplot Zones???

Regards, Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   February 5, 2007, 11:11
Default Hi, Has someone a working f
  #46
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Hi,

Has someone a working foamToTecplot utility which also writes the boundary fields. The current foamToTecplot utility only writes the internal field. Otherwise I will try to write that piece myself.

Thanks, Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   July 8, 2007, 07:31
Default I wonder if it is possible to
  #47
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
I wonder if it is possible to use foamToTecplot in such a way, that instead of creating ASCII file it would create BINARY input file?

That would be more compact and save plenty of space.

Right now, I tested ASCII format for simple damBreak case running on the cluster. So, approximatelly for one time step, the output from OpenFOAM takes 0.5MB, whereas the same time step converted to TecPlot ASCII format takes 1.3MB.
Such thing will make a huge difference for all output data >10GB.

Any input would be appreciated

Thanks,
Krystian
paka is offline   Reply With Quote

Old   July 8, 2007, 12:39
Default Hello, If asked, Tecplot wi
  #48
New Member
 
Daniel Einstein
Join Date: Mar 2009
Posts: 22
Rep Power: 17
deinstein is on a distinguished road
Hello,

If asked, Tecplot will supply a library and wrappers for outputting binary Tecplot. I have used these before to output binary Tecplot from our codes. They are very robust and easy to use.

Dan
deinstein is offline   Reply With Quote

Old   July 9, 2007, 05:23
Default Hi Dan, What do you mean?
  #49
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Hi Dan,

What do you mean? Is the company Tecplot able to provide a binary foamToTecplot converter? Ifso, I think that could be very useful.

Regards, Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   July 9, 2007, 05:36
Default I understood, that IF requeste
  #50
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
I understood, that IF requested, TecPlot is going to provide necessary libraries, so one could create easy to use TecPlot binary data converter.

So, let's somebody willing to help, write to TecPlot and we might start some coding. I might help if needed and if coding not overgrows me.

Regards,
Krystian
paka is offline   Reply With Quote

Old   July 9, 2007, 05:53
Default That would be really nice. Rig
  #51
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
That would be really nice. Right now, there are two things not well incorporated in the foamToTecplot:

1) Field values on boundaries are not working, right now, you only get 1 ZONE (the internal field).
2) All values are written as ASCII, making files very big for large cases.

Hopefully, we could use the existing foamToTecplot as a starting point to make a 'complete' converter. I am also willing to help, but not that good in coding.

Regards, Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   July 9, 2007, 07:17
Default Hey Krystian, tecplot provi
  #52
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
Hey Krystian,

tecplot provides functions to create your own binary data writer. For Tecplot 9.2 that is described in the reference manual, chapter 11, including some examples.

regards
markus
hartinger is offline   Reply With Quote

Old   July 9, 2007, 17:04
Default Thanks Markus for the tip. I'm
  #53
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
Thanks Markus for the tip. I'm going to take a look at it.

Right now, however, I do not have a lot of spare time, so IF only I manage to do something, that would be binary data file. I'm afraid I could struggle a bit with coding.
paka is offline   Reply With Quote

Old   July 9, 2007, 17:09
Default Hello Krystian, A short ter
  #54
New Member
 
Daniel Einstein
Join Date: Mar 2009
Posts: 22
Rep Power: 17
deinstein is on a distinguished road
Hello Krystian,

A short term fix for you - without any coding - is to use the Tecplot utility PREPLOT, which will convert your Tecplot ascii file into a Tecplot binary file:

>> preplot ascii_filename binary_filename
deinstein is offline   Reply With Quote

Old   July 9, 2007, 17:21
Default Wonderful! Now, short script i
  #55
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
Wonderful! Now, short script in bash would do it.

FYI, the .dat files size was cut about 50%.

Thanks!
Krystian
paka is offline   Reply With Quote

Old   July 10, 2007, 00:19
Default OK. Here is what I use. Simpl
  #56
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
OK. Here is what I use.
Simple script in bash which converts Tecplot ASCI to binary format.
Invoke in <case> folder.

http://www2.hawaii.edu/~krystian/Ope...tBinaryData.sh
paka is offline   Reply With Quote

Old   July 10, 2007, 01:17
Default Hi Krystian, Great. One lit
  #57
New Member
 
Daniel Einstein
Join Date: Mar 2009
Posts: 22
Rep Power: 17
deinstein is on a distinguished road
Hi Krystian,

Great. One little syntactical comment. Tecplot binary files customarily are given the .plt extension, while the ascii are customarily given the .dat extension.

Thats for tbe script.
Dan
deinstein is offline   Reply With Quote

Old   July 10, 2007, 01:26
Default OK. fixed. Sorry, I didn't kno
  #58
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
OK. fixed. Sorry, I didn't know
K
paka is offline   Reply With Quote

Old   July 18, 2007, 16:17
Default OK. Here is the same script, j
  #59
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
OK. Here is the same script, just a bit cleaned up.
Now it works the same way as OpenFOAM command syntax

tec2bin.sh <root> <case>

tec2bin.sh

For anyone who just found that post, that script helps you convert ASCII Tecplot data to Binary format. Hope you find it useful.
paka is offline   Reply With Quote

Old   August 13, 2007, 18:25
Default Hello: When I compiled foam
  #60
Member
 
Ning Yang
Join Date: Mar 2009
Location: University Park, PA, USA
Posts: 84
Rep Power: 17
nzy102 is on a distinguished road
Hello:

When I compiled foamToTecplot in Foam 1.4.1, I got some errors as follows:
=================================================
[yxk172@lionxo foamToTecplot]$ wmake
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home1/yxk172/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home1/yxk172/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC Make/linux64GccDPOpt/foamToTecplot.o -L/home1/yxk172/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt \
-lfiniteVolume -lfoamUtil -lOpenFOAM -liberty -ldl -lm -o /home1/yxk172/OpenFOAM/yxk172-1.4.1/applications/bin/linux64GccDPOpt/foamToTecpl ot
/usr/bin/ld: cannot find -lfoamUtil
collect2: ld returned 1 exit status
make: *** [/home1/yxk172/OpenFOAM/yxk172-1.4.1/applications/bin/linux64GccDPOpt/foamToTecp lot] Error 1
=================================================
In my option file, it contains:
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lfoamUtil

Then I removed "-lfoamUtil", it compiles fine. So I am just wondering if foamUtil is necessary for openfoam 1.4.1.

Besides, does anyone here know how to export Reynolds stress tensor into tecplot using foamToTecplot? I tried to export using both foamDataToFluent and foamToTecplot? Neither works. However, for other turbulence variables such as kinetic energy, dissipation rate and yplus, it seems fine.

Thank you.

Ning
nzy102 is offline   Reply With Quote

Reply


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 manipulating Data in Tecplot after foamToTecplot Conversion titio OpenFOAM Post-Processing 2 June 10, 2010 05:23
CFD science or tool? Mateusz Main CFD Forum 10 November 25, 2008 00:16
[mesh manipulation] ScalePoints tool cedric_duprat OpenFOAM Meshing & Mesh Conversion 6 September 19, 2008 04:15
Gridgeneration Tool AndyR Main CFD Forum 2 May 23, 2008 09:49
PDF repaire tool? John Main CFD Forum 0 February 23, 2008 08:32


All times are GMT -4. The time now is 14:08.