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

foamToTecplot360

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree29Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 19, 2013, 11:49
Default
  #61
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
Dear Bruno,

let us know when the tool will be ready for the OpenFOAM v2.2.x release.

Best regards,
Stephane.
openfoam_user is offline   Reply With Quote

Old   March 24, 2013, 13:06
Default
  #62
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Stephane,

I can only estimate that maybe I'll be able to look into this next weekend, namely over the Easter weekend, i.e. somewhere between 29th to 31st of March 2013 . I'll be über busy until then

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 29, 2013, 19:09
Default
  #63
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Stephane,

I've added the branch for OpenFOAM 2.2 in the https://github.com/wyldckat/localFoamToTecplot360 repository.

I've only tested with OpenFOAM 2.2.x, I have not yet tested with 2.2.0. And I didn't need to change anything, because the code for 2.1.x works fine with 2.2.x...

Disclaimer: Keep in mind that this repository merely makes it easier to install foamToTecplot360 on existing OpenFOAM installations. It does not add any new features to the one originally provided... well, with the exception of also building on Mac OS X

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 19, 2013, 11:44
Default Problem with Using Git for of21
  #64
New Member
 
realM
Join Date: Jan 2013
Posts: 3
Rep Power: 4
sanysaly is on a distinguished road
Hi Bruno,
When I tried to install the code after "git checkout of21 " I got:
Code:
Branch of21 set up to track remote branch of21 from origin.
Switched to a new branch 'of21'
and after "./Allwmake" I got:
Code:
+ ./getTecIO
./getTecIO: line 27: wget: command not found
no 'tecio2009.zip' to unpack

For more information about the TecIO library, visit:
   http://www.tecplot.com/Downloads/TecIOLibrary.aspx

Press Enter to continue...

+ wmake libso tecio/tecsrc/ ../../tecioMake/
wmake error: could not change to directory 'tecio/tecsrc/'
+ wmake foamToTecplot360
Making dependency list for source file tecplotWriter.C
could not open file TECIO.h for source file tecplotWriter.C
could not open file MASTER.h for source file tecplotWriter.C
could not open file GLOBAL.h for source file tecplotWriter.C
Making dependency list for source file vtkMesh.C
Making dependency list for source file foamToTecplot360.C
could not open file TECIO.h for source file foamToTecplot360.C
could not open file MASTER.h for source file foamToTecplot360.C
could not open file GLOBAL.h for source file foamToTecplot360.C
SOURCE=tecplotWriter.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I -I/opt/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/opt/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tecplotWriter.o
In file included from tecplotWriter.C:26:0:
tecplotWriter.H:39:19: fatal error: TECIO.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/tecplotWriter.o] Error 1
any help would be appreciated.
Thanks
sanysaly is offline   Reply With Quote

Old   April 19, 2013, 13:08
Default
  #65
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Quote:
wget: command not found
I think it's pretty clear you have to install 'wget'. Are you familiar with installing software on Linux?
sanysaly likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   April 28, 2013, 11:17
Default
  #66
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Rodrigo,

The library for Tecplot file handling isn't licensed as GPL, the one used by OpenFOAM. Therefore, OpenCFD has set things right in OpenFOAM 2.0 and has moved this library outside of OpenFOAM's code.

Unfortunately, they left only a little information around for people to figure out for themselves what to do. They wrote on the files README.html and README.org at ThirdParty-2.0.0/x where one can find the tecio library. The idea is to download the given link and unpack it into the folder ThirdParty-2.0.0/x.

Then go back to the main OpenFOAM folder and run Allwmake again and things will get themselves straight.

On the other hand, if you are using the Debian packages of OpenFOAM for Ubuntu/Debian, then things get a bit more complicated. If this is the case, I can write instructions for building the tecio library and foamToTecplot360.

Now, if you built OpenFOAM yourself and if you are feeling a bit lazy, you can use the getter script from here... or better yet, here's what you can run:
Code:
foam3rdParty
wget "http://www.openfoam.com/mantisbt/file_download.php?file_id=108&type=bug" -O getTecIO
chmod +x getTecIO
./getTecIO
foam
./Allwmake
Best regards,
Bruno
HI wyldckat
when i run the ""wget "http://www.openfoam.com/mantisbt/file_download.php?file_id=108&type=bug" -O getTecIO"" command on (opt/OpenFOAM/ThirdParty-2.1.x) it doesn't run and it tell "getTecIO: Permission denied"
what should i do?
Regards.
s.m is offline   Reply With Quote

Old   April 28, 2013, 11:33
Default
  #67
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Saeideh Mohamadi,

I'm going to assume that someone installed OpenFOAM for you in the "/opt" folder.
Therefore, follow the instructions provided on this page: https://github.com/wyldckat/localFoamToTecplot360

Best regards,
Bruno
s.m likes this.
wyldckat is offline   Reply With Quote

Old   May 22, 2013, 07:03
Default
  #68
Member
 
Join Date: Mar 2013
Posts: 86
Rep Power: 4
giack is on a distinguished road
HI to all,
I istalled getTecio as suggested in thi thread and foamToTecplot works fine.
But after this installation I have problem to execute paraview. moreover, when I execute paraview or parafoam appears this error message:

X Error: BadWindow (invalid Window parameter) 3
Extension: 137 (Uknown extension)
Minor opcode: 4 (Unknown request)
Resource id: 0x4c0026e

and I can't use paraview.
Someone know what is this error and how correct it?
thank to all
giack is offline   Reply With Quote

Old   May 22, 2013, 18:22
Default
  #69
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings giack,

Seems to me that Tecplot has some libraries that conflict with ParaView's own libraries.
I'm not familiar with Tecplot's installation procedures, but my guess is that it added itself to the "LD_LIBRARY_PATH" and/or "PATH" environment variables. To check, run:
Code:
echo $PATH
echo $LD_LIBRARY_PATH
If the path to Tecplot's library/binary folders are in these paths, then I suggest that you remove it from these variables and add them back only when using a dedicated script... a script similar to this:
Code:
#!/bin/sh
export PATH=/opt/tecplot/bin:$PATH
export LD_LIBRARY_PATH=/opt/tecplot/lib:$LD_LIBRARY_PATH
tecplot $*
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 10, 2013, 07:17
Default
  #70
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
astein is on a distinguished road
Dear Foamers,

since this seems to be the inofficial foamToTecplot360 help-thread, I'd like to add my question to this thread.

My situation can be summed up as follows:
I'm running OF simulations resulting in a large number of timesteps on a comprably large mesh (>5 million hexas). For each timestep, only one vector field is written. I have to have the results available in Tecplot for further postprocessing.

I see three basic options:
- Native OpenFOAM reader of Tecplot 2013
- foamToTecplot360 utility
- foamToCGNS, reading cgns with Tecplot

Up to now, I concentrated on the first two option, but neither of them worked properly. Using the native OpenFOAM support of Tecplot, Tecplot seems to freeze blocking one CPU core, nothing happens for hours. Memory is sufficient, far from being filled.
My problem with the foamToTecplot360 utility is the amount of data written to harddisk. For this mesh, a faceZoneMesh is written for every timestep with a filesize of ~500MB each. For at least hundreds of timesteps, my problems are obvious. I tried using to use the -noFaceZones option, but all information from within the domain seems to get lost. The mesh itself does not change during the simulation, only this one vector field needs to be available in Tecplot for each timestep.

Doens anybody have an idea for my problem? Are similar problems with the native Tecplot OpenFOAM reader known? Is there a chance to reduce the output of the foamToTecplot utility? I could not find much documentation for other useful option of this utility.

Thanks for your help - kind regards!
Andreas.
astein is offline   Reply With Quote

Old   June 10, 2013, 10:07
Default
  #71
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 4
Sylvar is on a distinguished road
Hi Andreas,
Maybe I haven't correctly understood your problem but I'll try to give you a piece of answer.
I also have to read results with Tecplot (2012) but I do not have memory problems (only few time steps for me). For my case, usually, I do not use the native OpenFOAM tool (I encountered some issues with free surface problems), I prefer using foamToTecplot360, foamToEnsight or foamToVTK (prefered for paraview). But I don't think it will solve your memory problem.

Some propositions :
- keep the native tool and check you do select the controlDict file
- use some tools such as sampleDict to extract the results you want to see

Good luck,
Sylvain
Sylvar is offline   Reply With Quote

Old   June 10, 2013, 11:25
Default
  #72
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
astein is on a distinguished road
Hi and thanks for your answer!

As stated, my issues with the native OpenFOAM reader are no memory issue. There's more than enough of RAM. Opening a smaller mesh with less than one million elements works without any problems, with the large mesh Tecplot freezes and keeps running on one core.

Using the foamToTecplot360, the only issue have is the lack of hard disk space, since it seems to write the full mesh for each time step. This leads to problems assuming hundreds/thousands of timesteps.

@Sylvain: Did I understand you correctly that you are using OpenFOAM->foamToEnsight->Tecplot. Does this work fine for you? I'll give it a try in that case...

Regards, Andreas.
astein is offline   Reply With Quote

Old   June 10, 2013, 11:46
Default
  #73
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 4
Sylvar is on a distinguished road
Quote:
Originally Posted by astein View Post
Using the foamToTecplot360, the only issue have is the lack of hard disk space, since it seems to write the full mesh for each time step. This leads to problems assuming hundreds/thousands of timesteps.
I just can tell you that I use sometimes sampleDict and it's useful to reduce the amount of data created. You can extract only velocity values in a 2D mesh for example, or extract velocity profiles, or other variables... You will lose some data but it should widely reduce the amount of hard disk space required.

Quote:
Originally Posted by astein View Post
@Sylvain: Did I understand you correctly that you are using
OpenFOAM->foamToEnsight->Tecplot. Does this work fine for you? I'll give it a try in that case...
Well I've tried to use foamToEnsight when foamToTecplot360 wasn't working for me (I found this clue in another topic). You can then read your data with Tecplot by choosing Ensight data. Though, I'm not sure that it will solve your space problem.

Regards,
Sylvain
Sylvar is offline   Reply With Quote

Old   June 10, 2013, 13:25
Default
  #74
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Andreas: In the file "controlDict", are you using the "binary" option instead of "ascii"?
And are you using the "compressed" option?

I ask this because (even though I don't have access to a Tecplot application), these are usually the kind of options that can affect native readers.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 12, 2013, 06:54
Default
  #75
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 7
astein is on a distinguished road
Hi everybody,

@ Bruno: Thanks for your hint, but Tecplot keeps saying "Opening file" if using native OF support. As stated, with a smaller mesh everything seems to work fine.
@ Sylvain: foamToEnsight, opening the result in Tecplot seems to be a proper choice for me. Thanks again!

Regards, Andreas.
astein is offline   Reply With Quote

Old   June 18, 2013, 04:26
Default
  #76
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 7
nik is on a distinguished road
Hi to all,

I am using foamToTecplot360, with OpenFOAM 2.2.x on Mountain Lion. It works just fine.

Here is my problem. I am using sampleDict to extract data from a surface. Data are written in "postProssesing/surfaces/<time>/<aGivenNameInDict>". There are different formats that one can use to write out the data: foamFile,vtk,raw,... . I wont to load the data with Tecplot, so I guess the only option would be the "foamFile" format. However, the native loader with Tecplot just sees the time directories in the case folder. So I guess the only other option is to use foamToTecplot360. But, is it possible to convert this data to tecplot format, using foamToTecplot360?

Thanks,
Nicolas
nik is offline   Reply With Quote

Old   June 18, 2013, 05:33
Default
  #77
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 4
Sylvar is on a distinguished road
Hi Nicolas,
you have the foamTotecplot360 option, which should work (people face some problems sometimes). You could try it.
Otherwise, you can write a C++ code, to read your raw data from sampleDict and rewrite it into a tecplot file (with headers, columns, etc..). This is what I do and it works perfectly. The only difficulty is that you need to create this C++ code but it is quite simple (just need a loop to run the lines of your raw data, creating some variables and read them in your raw data, rewrite them in the right order)

Good luck,
Sylvain
Sylvar is offline   Reply With Quote

Old   June 18, 2013, 05:57
Default
  #78
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 7
nik is on a distinguished road
Thanks Sylvain,

I have just tried with:

Code:
foamToTecplot360 -time <solutionTime> -fields '(<var1> <var2> ...)' -excludePatches '(<patchToExclude1> <patchToExclude2> ...)' -noInternal
and it works fine. I guess writting a C++ code would be much better, but that would take me some time. So I guess I will leave that for some other time in the future.

Thanks again.
Nicolas
nik is offline   Reply With Quote

Old   June 18, 2013, 12:11
Default
  #79
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
sample should be able to write Ensight files, which you can also directly open in Tecplot.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   June 19, 2013, 13:44
Default
  #80
New Member
 
Yang Liu
Join Date: May 2013
Posts: 3
Rep Power: 4
Kleiber is on a distinguished road
Hi,Bruno.
I'm new to both OF and Linux, I downloaded tecio from tecplot's official site, and put it in ThirdParty-2.2.0. then I encountered problem in run ./Allwmake in both the directory of ThirdParty-2.2.0 and openfoam220. The error was like this :

Quote:
Error: Current directory is not $WM_THIRD_PARTY_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.
Could you plz take some time and find what's wrong in my case? I echoed the $WM_THIRD_PARTY_DIR and WM_PROJECT_DIR, and both are pointed to the right directory.
Quote:
echo $WM_PROJECT_DIR
/opt/openfoam220
echo $WM_THIRD_PARTY_DIR
/opt/ThirdParty-2.2.0
Best regards,
Yang
Kleiber is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:48.