CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   foamToTecplot360 (https://www.cfd-online.com/Forums/openfoam-post-processing/68061-foamtotecplot360.html)

thomasduerr September 4, 2009 08:40

foamToTecplot360
 
Hi everybody,

is there already a (maybe preliminary) version of foamToTecplot360 for version 1.6(.x) available?
If one were to write such an application what were the main challenges?
( I am rel. new to OF & C++ but would like to postprocessing things with Tecplot 360 scripts as an alternative to Matlab)

Thanks a lot!

scott_rumage December 7, 2009 18:43

OpenFOAM to Tecplot 360 converter note
 
Tecplot,Inc. in conjunction with OpenCFD® is pleased to announce the availability of an OpenFOAM-to-Tecplot data converter application at the OpenFOAM® 1.6.x git repository. http://www.opencfd.co.uk/openfoam/download.html

Steps for installing the converter are:
1. Set your TEC_360_2009 environment variable to the root of your Tecplot360 folder if it isn’t already set.
2. Download the bug fix/patched version from the repository
3. Run Allwmake in the foamToTecplot360 source directory since the TecIO libraries need to be built first.

The converter will work with the following OpenFOAM® results:
- static mesh, multiple time steps
- moving mesh (geometry only changes)
- changing mesh (geometry and topology changes)
- polyhedral cell support
- point values (internal fields)
- point values (boundary fields)
- cell values (internal fields)
- cell values (boundary fields)
- multiple sets of lagrangian data ('clouds') with fields
- outputting a mesh with multiple regions

Please contact Scott Rumage (s . rumage @ tecplot . com) if you have any questions or would like more information about the converter.

OpenFOAM® is a registered trademark of OpenCFD® Ltd., who are the producers of the OpenFOAM® software and owner of the OpenFOAM® and OpenCFD® trademarks.

steve July 15, 2010 07:32

foamToTecplot360 and OpenFOAM 1.5-dev
 
Hi everybody,

I have problems compiling foamToTecplot360 on OpenFOAM 1.5-dev. Is there a way to get this compiler running with this OpenFOAM version, too?
Any hints are highly appreciated!

Thanks a lot!

Kind regards,
Steffen

vetnav August 4, 2010 19:30

Hi,

I am also running into the same problem, any help on how to read the .plt files generated by running the command foamToTecplot360

Thanks
Naveen

anfho October 14, 2010 16:35

Hi All,
does OF 1.7.1 come with a foamToTecplot360 converter or how do I need to install it? Thanks!
Andreas

scott_rumage October 14, 2010 16:50

foamToTecplot360 for 1.7
 
Andreas,

It is my understanding that the foamToTecplot 360 converter is part of the standard download of OpenFOAM 1.7

Scott

wyldckat October 14, 2010 18:10

Greetings to all!

Just in case Andreas's next question is "then where is it?" ;)
  • Where is the binary?
    Code:

    which foamToTecplot360
  • Where is the source code?
    Code:

    find $FOAM_UTILITIES -name foamToTecplot360
Best regards,
Bruno

pius May 1, 2011 00:21

Do you need foamToTecplot360 for 2008
 
Hi ! everyone

If you want to try modified "foamToTecplot360" for tec360 2008
Please let me know your email address. I will send it to you.
or you can get it at my webpage

pius

Rophys July 21, 2011 06:37

Hello,

I'm using the rhoCentralFoam in the openFoam 2.0. When a tried to use the command foamToTecplo360 it gave me the following error: "command not found". In the others versions I didn't have problems using it. Somebody knows how to solve this problem ?

Cheers.

wyldckat July 21, 2011 16:22

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

Rophys July 22, 2011 06:54

Thanks
 
Hi Bruno,

Thank you very much for your information. It was very helpful.

If somebody have the same problem, not forget to execute the command ./Allwmake in the thirdPart and in the openFoam folders.

Cheers

jignesh_thaker2007 August 20, 2011 03:39

Hi ! everyone
I m using openfoam2.0.0. so plz tel me how to install techplot for converting data of openfoam

Rophys August 21, 2011 15:26

Hi...

So, are you using the openFoam 2.0 and you wish convert your results to use the Tecplot ? I this way, use the command foamToTecplot360 after finish your simulation.

Obs.: Tecplot is not free. You need to buy or use one that is available in yoir university or campany.

Cheers.

jignesh_thaker2007 August 23, 2011 02:14

Quote:

Originally Posted by Rophys (Post 320917)
Hi...

So, are you using the openFoam 2.0 and you wish convert your results to use the Tecplot ? I this way, use the command foamToTecplot360 after finish your simulation.

Obs.: Tecplot is not free. You need to buy or use one that is available in yoir university or campany.

Cheers.

Thanks

i will try to do this

jignesh_thaker2007 August 23, 2011 02:37

Quote:

Originally Posted by jignesh_thaker2007 (Post 321124)
Thanks

i will try to do this

I tried but it cant work error like command not found
so
plz help me to solve this problem
what are the steps to convert the data of openfoam to techplot360?
right now i havent install tech plot
but i need data file of openfoam in to .dat or .plt format
so what is the procedure to write data in above format?

i m waiting for ur reply

Rophys August 23, 2011 05:15

Hi,

Now I understand your problem. So, follow the steps that Bruno sad and you will fix the problem.

----------------------------------------------------------------------------------------------------------------------------

"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

wyldckat August 23, 2011 05:48

Greetings to all!

OOooohhh... now I get it :rolleyes: @jignesh_thaker2007, you could have been more specific with your question on the other threads where you posted...

Here's what you need to do first and follow this to the letter!
Code:

mkdir -p $HOME/.OpenFOAM/2.0.1
mkdir -p $HOME/OpenFOAM
cd $HOME/OpenFOAM
#wget "http://downloads.sourceforge.net/foam/ThirdParty-2.0.1.gtgz?use_mirror=mesh" -O ThirdParty-2.0.1.gtgz #old version
#tar -xzf ThirdParty-2.0.1.gtgz #old version
mkdir ThirdParty-2.0.1
wget "https://github.com/OpenCFD/ThirdParty-2.0.x/tarball/master" -O ThirdParty-2.0.x.tar.gz
tar -xzf ThirdParty-2.0.x.tar.gz -C ThirdParty-2.0.1 --strip-components=1
echo export WM_THIRD_PARTY_DIR=$HOME/OpenFOAM/ThirdParty-2.0.1 > $HOME/.OpenFOAM/2.0.1/prefs.sh
wmSET

Now for the second part, which is what Rophys was talking about:
Code:

foam3rdParty
wget "http://www.openfoam.com/mantisbt/file_download.php?file_id=108&type=bug" -O getTecIO
chmod +x getTecIO
./getTecIO
./Allwmake

Do Allwmake here. Sorry about this... doing more than one thing at a time leads to these kinds of errors :(

Third part:
Code:

mkdir -p $FOAM_RUN
cd $FOAM_RUN/..
cp -r $WM_PROJECT_DIR/applications/utilities/postProcessing/dataConversion/foamToTecplot360 foamToTecplot360
cd foamToTecplot360
sed -i -e 's=FOAM_APPBIN=FOAM_USER_APPBIN=' Make/files
./Allwmake

OK, now it should work!

Best regards,
Bruno

jignesh_thaker2007 August 23, 2011 05:54

Quote:

Originally Posted by wyldckat (Post 321174)
Greetings to all!

OOooohhh... now I get it :rolleyes: @jignesh_thaker2007, you could have been more specific with your question on the other threads where you posted...

Here's what you need to do first and follow this to the letter!
Code:

mkdir -p $HOME/.OpenFOAM/2.0.1
mkdir -p $HOME/OpenFOAM
cd $HOME/OpenFOAM
wget "http://downloads.sourceforge.net/foam/ThirdParty-2.0.1.gtgz?use_mirror=mesh" -O ThirdParty-2.0.1.gtgz
tar -xzf ThirdParty-2.0.1.gtgz
echo export WM_THIRD_PARTY_DIR=$HOME/OpenFOAM/ThirdParty-2.0.1 > $HOME/.OpenFOAM/2.0.1/prefs.sh
wmSET

Now for the second part, which is what Rophys was talking about:
Code:

foam3rdParty
wget "http://www.openfoam.com/mantisbt/file_download.php?file_id=108&type=bug" -O getTecIO
chmod +x getTecIO
./getTecIO
foam
./Allwmake

I haven't tested this yet, but it should work as intended.

Best regards,
Bruno



yes sir,
i m doing above procedure right now
thanks sir for ur kind reply

wyldckat August 23, 2011 07:21

I forgot about a detail on the previous post, which I've edited and added now.

See the new third part, as well as the end of the second part which I've edited.

Best regards,
Bruno

jignesh_thaker2007 August 23, 2011 09:54

hiiiiiiiiii sir

sir this process takes long time may be 4 hour because downloading speed is very slow

sir i used openfoam version 2.0.0. & i think above details is for foam2.0.1
so is there any trouble arise?


All times are GMT -4. The time now is 20:26.