You are missing the fvCFD.H he
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 |
Tanks Hrvoje it works !
I'
Tanks Hrvoje it works !
I'm new to OpenFOAM, I build it on tru64 this morning ... so I'm not already ok with it. |
Dear all,
I am using foamTo
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? |
There should be no limit on th
There should be no limit on the number of time directories.
Did you try printing the names of your ioobjects? Pout<< objects.names() << endl; |
Check your code very carefully
Check your code very carefully.
Check your filenames very carefully. No spaces in them? Run valgrind. Put some printing in Unix.C::readDir |
Here you are..
this is the
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 |
I cannot replicate this. I cre
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. |
Hi Daniele,
Did you have a
Hi Daniele,
Did you have a trailing slash "/" on the root or case name by any chance? That would do it... Hrv |
I am tying to use foamToTecplo
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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) Foam::sigSegv::sigSegvHandler(int) Segmentation fault Best regards Q. Li |
Hi
the number of tecplot va
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 http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif foamToTecplot.tgz Markus |
I have tested yours code and i
I have tested yours code and it works perfectly fine!
Thank Markus Hartinger's help. regards Q. Li |
Hello,
I am also a Tecplot
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 |
Hi Anne,
you can find the f
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 |
download the foamToTecplot.tgz
download the foamToTecplot.tgz thing above and save it as such.
then > tar xvfz foamToTecplot.tgz > cd foamToTecplot > wmake markus |
Thanks you very much,
I hav
Thanks you very much,
I have tested it on a file and it works, Thanks again, Anne |
Hi all,
can someone please
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 |
either you create a new variab
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 |
I know this is not the place t
I know this is not the place to ask that, but where do I have to type that in tecplot?
sorry |
Sorry again for that question,
Sorry again for that question, I already got it.
Anja |
I think that foamToTecplot cou
I think that foamToTecplot could not (yet) handle polyhedrals, I mean like the cells obtained using the utility polyDualMesh. Is that right?
Frank |
All times are GMT -4. The time now is 07:26. |