|
[Sponsors] |
It would be wonderful if a tool for FoamToTecplot is available |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#21 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 34 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#22 |
Senior Member
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 147
Rep Power: 18 ![]() |
Tanks Hrvoje it works !
I'm new to OpenFOAM, I build it on tru64 this morning ... so I'm not already ok with it. |
|
![]() |
![]() |
![]() |
![]() |
#23 |
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 18 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#24 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
There should be no limit on the number of time directories.
Did you try printing the names of your ioobjects? Pout<< objects.names() << endl; |
|
![]() |
![]() |
![]() |
![]() |
#25 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
Check your code very carefully.
Check your filenames very carefully. No spaces in them? Run valgrind. Put some printing in Unix.C::readDir |
|
![]() |
![]() |
![]() |
![]() |
#26 |
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#27 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#28 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 34 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#29 |
New Member
Qiang Li
Join Date: Mar 2009
Location: Shenyang, LiaoNing, P. R. China
Posts: 14
Rep Power: 18 ![]() |
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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() 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: ![]() Foam::sigSegv::sigSegvHandler(int) Segmentation fault Best regards Q. Li |
|
![]() |
![]() |
![]() |
![]() |
#30 |
Senior Member
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 18 ![]() |
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 ![]() Markus |
|
![]() |
![]() |
![]() |
![]() |
#31 |
New Member
Qiang Li
Join Date: Mar 2009
Location: Shenyang, LiaoNing, P. R. China
Posts: 14
Rep Power: 18 ![]() |
I have tested yours code and it works perfectly fine!
Thank Markus Hartinger's help. regards Q. Li |
|
![]() |
![]() |
![]() |
![]() |
#32 |
Member
anne dejoan
Join Date: Mar 2009
Location: madrid, spain
Posts: 66
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#33 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#34 |
Senior Member
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 18 ![]() |
download the foamToTecplot.tgz thing above and save it as such.
then > tar xvfz foamToTecplot.tgz > cd foamToTecplot > wmake markus |
|
![]() |
![]() |
![]() |
![]() |
#35 |
Member
anne dejoan
Join Date: Mar 2009
Location: madrid, spain
Posts: 66
Rep Power: 18 ![]() |
Thanks you very much,
I have tested it on a file and it works, Thanks again, Anne |
|
![]() |
![]() |
![]() |
![]() |
#36 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#37 |
Senior Member
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#38 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 18 ![]() |
I know this is not the place to ask that, but where do I have to type that in tecplot?
sorry |
|
![]() |
![]() |
![]() |
![]() |
#39 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 18 ![]() |
Sorry again for that question, I already got it.
Anja |
|
![]() |
![]() |
![]() |
![]() |
#40 |
Senior Member
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 19 ![]() |
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 |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem manipulating Data in Tecplot after foamToTecplot Conversion | titio | OpenFOAM Post-Processing | 2 | June 10, 2010 04:23 |
CFD science or tool? | Mateusz | Main CFD Forum | 10 | November 24, 2008 23:16 |
[mesh manipulation] ScalePoints tool | cedric_duprat | OpenFOAM Meshing & Mesh Conversion | 6 | September 19, 2008 03:15 |
Gridgeneration Tool | AndyR | Main CFD Forum | 2 | May 23, 2008 08:49 |
PDF repaire tool? | John | Main CFD Forum | 0 | February 23, 2008 07:32 |