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

foamToTecplot360

Register Blogs Community New Posts Updated Threads Search

Like Tree36Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2013, 11:49
Default
  #61
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 12:44
Default Problem with Using Git for of21
  #64
New Member
 
realM
Join Date: Jan 2013
Posts: 3
Rep Power: 13
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, 14:08
Default
  #65
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
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.
akidess is offline   Reply With Quote

Old   April 28, 2013, 12:17
Default
  #66
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
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, 12:33
Default
  #67
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 08:03
Default
  #68
Member
 
Join Date: Mar 2013
Posts: 98
Rep Power: 13
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, 19:22
Default
  #69
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 08:17
Default
  #70
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
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, 11:07
Default
  #71
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 14
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, 12:25
Default
  #72
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
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, 12:46
Default
  #73
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 14
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, 14:25
Default
  #74
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 07:54
Default
  #75
New Member
 
Join Date: Mar 2010
Posts: 27
Rep Power: 16
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, 05:26
Default
  #76
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 17
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, 06:33
Default
  #77
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 14
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, 06:57
Default
  #78
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 17
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, 13:11
Default
  #79
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
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.
akidess is offline   Reply With Quote

Old   June 19, 2013, 14:44
Default
  #80
New Member
 
Yang Liu
Join Date: May 2013
Posts: 3
Rep Power: 13
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


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



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