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

pyFoam problems

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

Like Tree4Likes
  • 1 Post By Tobi
  • 1 Post By alexeym
  • 2 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Display Modes
Old   May 19, 2014, 17:56
Default pyFoam problems
  #1
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,089
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hello everybody,

today I rebuild pyFoam and now I get the following error on my new machine:
Code:
shorty@shorty:~/OpenFOAM/shorty-2.3.x/run/2014/p_rgh$ pyFoamPlotWatcher.py log --with-courant

gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
 PyFoam WARNING on line 138 of file /home/shorty/software/pyFoam-0.6.2/lib/python2.7/site-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  

gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list
Why is there a converting problem? Do anyone know that kind of error message?

Regards Tobi
davibarreira likes this.
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
Tobi is offline   Reply With Quote

Old   May 20, 2014, 01:35
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,114
Rep Power: 19
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

I guess it's not a problem with pyFoam but a problem with installed version of gnuplot. Do as it suggests: execute gnuplot, issue "set terminal" command, and look for the terminal name (if it really has x11 terminal type). Maybe you'll need to install gnuplot-X11 package or something similar.
rudolf.hellmuth likes this.
alexeym is offline   Reply With Quote

Old   May 20, 2014, 08:47
Default
  #3
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,089
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi, I looked into the Gnuplot installation guide and found that what you mentioned.

Have to investigate to gnuplot-x11 package ...

Thanks
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
Tobi is offline   Reply With Quote

Old   July 27, 2014, 16:29
Thumbs up Solved in Debian
  #4
New Member
 
Rudolf Hellmuth
Join Date: Sep 2012
Location: Galway, Ireland
Posts: 13
Rep Power: 4
rudolf.hellmuth is on a distinguished road
I solved this problem in Debian 7 (Wheezy) by installing gnuplot-x11 package.

Code:
#apt-get install gnuplot-x11
It removed gnuplot-nox, which was previously installed.
rudolf.hellmuth is offline   Reply With Quote

Old   August 19, 2014, 11:38
Default
  #5
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 166
Rep Power: 14
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
The same worked also for Ubuntu 14.04.

I had the plain gnuplot package installed and I got the same error messages as Tobi. After installing gnuplot-x11, which removed gnuplot-nox, everything worked.

Quote:
Originally Posted by rudolf.hellmuth View Post
I solved this problem in Debian 7 (Wheezy) by installing gnuplot-x11 package.

Code:
#apt-get install gnuplot-x11
It removed gnuplot-nox, which was previously installed.
Tobi and rudolf.hellmuth like this.
GerhardHolzinger is offline   Reply With Quote

Old   December 2, 2014, 09:13
Default
  #6
New Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 10
Rep Power: 3
davibarreira is on a distinguished road
I faced the same problem with PlotRunner and after installing gnuplot-x11 the problem was solved. Now Im trying to do some plotting using regular expressions and the problem reappeared. Im following this tutorial http://openfoamwiki.net/images/7/7a/...icTraining.pdf.

After I run the command pyFoamPlotWatcher.py PyFoamRunner.reactingFoam.logfile --with-all,I get all the graphs, but not the one specified in the regular expression file.

Any ideas?

Sorry, I figured out the problem. It was my regular expression that was not being found in the output file.

Thanks
Code:
Reading regular expression from customRegexp
PyFoam WARNING on line 138 of file /usr/local/lib/python2.7/dist-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float: 
PyFoam WARNING on line 138 of file /usr/local/lib/python2.7/dist-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float: 
PyFoam WARNING on line 138 of file /usr/local/lib/python2.7/dist-packages/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:

Last edited by davibarreira; December 2, 2014 at 10:22. Reason: I figured out the problem
davibarreira 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
Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 03:45
Problems with PyFoam Christoph_84 OpenFOAM 30 May 8, 2014 04:35
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 0 August 5, 2011 16:02
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 06:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00


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