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

It would be wonderful if a tool for FoamToTecplot is available

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 22, 2005, 11:02
Default You are missing the fvCFD.H he
  #21
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,747
Rep Power: 20
hjasak will become famous soon enough
You are missing the fvCFD.H header - in foam-1.2 it lives in:

cfdTools/general/lnInclude


which is different from previous versions. Change Make/options file and all will be welll.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   September 22, 2005, 11:23
Default Tanks Hrvoje it works ! I'
  #22
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 126
Rep Power: 7
francois is on a distinguished road
Tanks Hrvoje it works !

I'm new to OpenFOAM, I build it on tru64 this morning ... so I'm not already ok with it.
francois is offline   Reply With Quote

Old   February 21, 2006, 15:12
Default Dear all, I am using foamTo
  #23
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 7
panara is on a distinguished road
Dear all,

I am using foamToTecplot in a multizone configuration. I modified foamToTecplot in order to process only one subzone and it works in Foam 1.1

When I am using the 1.2 version it doesn't work.

It seems it cannot find the region fields in the time directories.

I modified the following line as follows:

IOobjectList objects(mesh,runTime.timeName(),"region1")

in

IOobjectList objects(mesh,runTime.timeName()/"region1/")

and works just for the first 200 time steps then for the other 100 time steps it doesn't work anymore...!!

The timesteps directory have all the same structure:

time/region1/p T U rho time

Any suggestions?
panara is offline   Reply With Quote

Old   February 23, 2006, 06:10
Default There should be no limit on th
  #24
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
mattijs is on a distinguished road
There should be no limit on the number of time directories.

Did you try printing the names of your ioobjects?

Pout<< objects.names() << endl;
mattijs is offline   Reply With Quote

Old   February 23, 2006, 07:02
Default Check your code very carefully
  #25
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
mattijs is on a distinguished road
Check your code very carefully.
Check your filenames very carefully. No spaces in them?
Run valgrind.
Put some printing in Unix.C::readDir
mattijs is offline   Reply With Quote

Old   February 23, 2006, 13:49
Default Here you are.. this is the
  #26
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 7
panara is on a distinguished road
Here you are..

this is the first error that valgrind has found:

==12589==
==12589== Conditional jump or move depends on uninitialised value(s)
==12589== at 0x120564C1: Foam::fileName::ext() const (fileName.C:169)
==12589== by 0x120401A2: Foam::readDir(Foam::fileName const&, Foam::fileName::Type, bool) (Unix.C:499)
==12589== by 0x12089409: Foam::Time::findTimes(Foam::fileName const&) (findTimes.C:52)
==12589== by 0x12083A16: Foam::Time::Time(Foam::word const&, Foam::fileName const&, Foam::fileName const&, Foam::word const&, Foam::word const&) (Time.C:159)
==12589== by 0x420730: main (createTime.H:8)
==12589==
==12589== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
starting debugger

...
...

and this a list of the source where the error should be..

0x00000000120564c1 in Foam::fileName::ext (this=0x349fb1b0)
at primitives/strings/fileName/fileName.C:169
169 if (i <= 0 || operator[](i) == '/')
(gdb) stack
Undefined command: "stack". Try "help".
(gdb) l
164 // Return file name extension
165 word fileName::ext() const
166 {
167 size_type i = find_last_of("./");
168
169 if (i <= 0 || operator[](i) == '/')
170 {
171 return word::null;
172 }
173 else

Could it be due to the bug in Debian binutils (see tread 'assembler messages when compiling on AMD64') ?

Thanks for your feed back,

Daniele
panara is offline   Reply With Quote

Old   February 23, 2006, 15:40
Default I cannot replicate this. I cre
  #27
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
mattijs is on a distinguished road
I cannot replicate this. I created a case with >300 times and U,p in each of them and ran foamToVTK (which works similar to your Dx converter I guess)

Can you repeat it with e.g. foamToVTK (with -mesh option to read region1)? If so send small testcase and I'll have a look at it.
mattijs is offline   Reply With Quote

Old   February 23, 2006, 16:04
Default Hi Daniele, Did you have a
  #28
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,747
Rep Power: 20
hjasak will become famous soon enough
Hi Daniele,

Did you have a trailing slash "/" on the root or case name by any chance? That would do it...

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 1, 2006, 04:41
Default I am tying to use foamToTecplo
  #29
New Member
 
Qiang Li
Join Date: Mar 2009
Location: Shenyang, LiaoNing, P. R. China
Posts: 14
Rep Power: 7
frank is on a distinguished road
I am tying to use foamToTecplot for twoPhaseEulerFOAM's data conversion from FOAM-1.3 to tecplot 9.0, but it doesn't work!
help me. please!


Exec : foamToTecplot . bed
Date : Apr 01 2006
Time : 16:32:05
Host : qiangl
PID : 11108
Root : /home/mingxia/OpenFOAM/mingxia-1.3/run/twoPhaseEulerFoam
Case : bed
Nprocs : 1
Create time

Create mesh for time = 10

Creating timestep 0
Creating timestep 0.1
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
/lib/i686/libpthread.so.0 [0x40b9d046]
[0xffffe420]
/home/mingxia/OpenFOAM/linux/gcc-4.1.0/lib/libgcc_s.so.1 [0x40b8bc0b]
_Unwind_Backtrace
backtrace
Foam::error::printStack(Foam:stream&)
Foam::sigSegv::sigSegvHandler(int)
Segmentation fault

Best regards
Q. Li
frank is offline   Reply With Quote

Old   April 1, 2006, 09:06
Default Hi the number of tecplot va
  #30
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 7
hartinger is on a distinguished road
Hi

the number of tecplot variables was limited to twenty. I made it dynamic and tested it on the bed-case with OpenFOAM-1.3.
The code is attached

foamToTecplot.tgz

Markus
hartinger is offline   Reply With Quote

Old   April 2, 2006, 09:45
Default I have tested yours code and i
  #31
New Member
 
Qiang Li
Join Date: Mar 2009
Location: Shenyang, LiaoNing, P. R. China
Posts: 14
Rep Power: 7
frank is on a distinguished road
I have tested yours code and it works perfectly fine!
Thank Markus Hartinger's help.

regards
Q. Li
frank is offline   Reply With Quote

Old   June 6, 2006, 08:14
Default Hello, I am also a Tecplot
  #32
Member
 
anne dejoan
Join Date: Mar 2009
Location: madrid, spain
Posts: 66
Rep Power: 7
anne is on a distinguished road
Hello,

I am also a Tecplot User and would like to have access to foamToTecplot.
Is it possible to get it ?

Thanks very much to help,

Anne
anne is offline   Reply With Quote

Old   June 6, 2006, 08:22
Default Hi Anne, you can find the f
  #33
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 7
anja is on a distinguished road
Hi Anne,

you can find the foamToTecplot utility within this thread. Just go to Markus Hartingers post from May 13, 2005 and download it. But also see:
Hrvoje Jasak on Thursday, September 22, 2005.

Anja
anja is offline   Reply With Quote

Old   June 6, 2006, 08:24
Default download the foamToTecplot.tgz
  #34
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 7
hartinger is on a distinguished road
download the foamToTecplot.tgz thing above and save it as such.
then
> tar xvfz foamToTecplot.tgz
> cd foamToTecplot
> wmake


markus
hartinger is offline   Reply With Quote

Old   June 6, 2006, 10:21
Default Thanks you very much, I hav
  #35
Member
 
anne dejoan
Join Date: Mar 2009
Location: madrid, spain
Posts: 66
Rep Power: 7
anne is on a distinguished road
Thanks you very much,

I have tested it on a file and it works,

Thanks again,

Anne
anne is offline   Reply With Quote

Old   August 15, 2006, 06:15
Default Hi all, can someone please
  #36
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 7
anja is on a distinguished road
Hi all,

can someone please help me with the FoamToTecplot tool?
I would like to get the magnitude of the velocity with it, and not only the single components.


Thanks a lot
Anja
anja is offline   Reply With Quote

Old   August 15, 2006, 06:33
Default either you create a new variab
  #37
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 7
hartinger is on a distinguished road
either you create a new variable in foam and write it out
or you calculate the magnitude directly in tecplot
{magU}=sqrt(sqr({U_X}) + sqr({U_Y}) + sqr({U_Z}))

markus
hartinger is offline   Reply With Quote

Old   August 15, 2006, 06:55
Default I know this is not the place t
  #38
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 7
anja is on a distinguished road
I know this is not the place to ask that, but where do I have to type that in tecplot?

sorry
anja is offline   Reply With Quote

Old   August 15, 2006, 07:12
Default Sorry again for that question,
  #39
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 7
anja is on a distinguished road
Sorry again for that question, I already got it.

Anja
anja is offline   Reply With Quote

Old   September 14, 2006, 07:23
Default I think that foamToTecplot cou
  #40
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 338
Rep Power: 8
lr103476 is on a distinguished road
I think that foamToTecplot could not (yet) handle polyhedrals, I mean like the cells obtained using the utility polyDualMesh. Is that right?

Frank
__________________
Frank Bos
lr103476 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


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
ScalePoints tool cedric_duprat OpenFOAM Mesh Utilities 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 06:07.