CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

pyFoamPlotWatcher is not working

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2009, 09:40
Red face pyFoamPlotWatcher is not working
  #1
New Member
 
Arvind
Join Date: Mar 2009
Posts: 13
Rep Power: 17
arvind_arya is on a distinguished road
I want to watch residuals.....so i have installed PyFoam- 0.5.2.... but...... while executing pyFoamPlotWatcher ......it says

File "/usr/local/bin/pyFoamPlotWatcher.py", line 3, in <module>
from PyFoam.Applications.PlotWatcher import PlotWatcher
File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PlotWatcher.py", line 6, in <module>
from PyFoam.Execution.GnuplotRunner import GnuplotWatcher
File "/usr/local/lib/python2.6/dist-packages/PyFoam/Execution/GnuplotRunner.py", line 86
with="steps",
^
SyntaxError: invalid syntax

I am using UBUNTU-9.0.4 AND OF-1.6.
I know for this forum this is not a major problem......please spare some time to give ur suggestions
Thanks in Advance

Last edited by arvind_arya; September 6, 2009 at 11:55.
arvind_arya is offline   Reply With Quote

Old   September 7, 2009, 13:35
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by arvind_arya View Post
I want to watch residuals.....so i have installed PyFoam- 0.5.2.... but...... while executing pyFoamPlotWatcher ......it says

File "/usr/local/bin/pyFoamPlotWatcher.py", line 3, in <module>
from PyFoam.Applications.PlotWatcher import PlotWatcher
File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PlotWatcher.py", line 6, in <module>
from PyFoam.Execution.GnuplotRunner import GnuplotWatcher
File "/usr/local/lib/python2.6/dist-packages/PyFoam/Execution/GnuplotRunner.py", line 86
with="steps",
^
SyntaxError: invalid syntax

I am using UBUNTU-9.0.4 AND OF-1.6.
I know for this forum this is not a major problem......please spare some time to give ur suggestions
Thanks in Advance
There has been a reply to this in http://www.cfd-online.com/Forums/ope...83-pyfoam.html

Please do not cross-post
gschaider is offline   Reply With Quote

Old   May 31, 2010, 20:14
Default same error!!
  #3
New Member
 
Ramnik Singh
Join Date: Jun 2009
Location: Stuttgart, Germany
Posts: 18
Rep Power: 16
Ramnik is on a distinguished road
Hey i am facing the same problem....did u find a solution to it??
Ramnik is offline   Reply With Quote

Old   June 1, 2010, 07:46
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Ramnik View Post
Hey i am facing the same problem....did u find a solution to it??
Have you read the answer to his posting? Obviously he cross-posted and got the answer elsewhere
gschaider is offline   Reply With Quote

Old   December 13, 2010, 06:09
Default
  #5
New Member
 
Jan Löhrmann
Join Date: Sep 2010
Posts: 21
Rep Power: 15
JanL is on a distinguished road
Hi,

I would like to print the plots of pyFoamPlotWatcher.py and tried the following commands.

Quote:
pyFoamPlotWatcher.py log --with-courant --hardcopy
pyFoamPlotWatcher.py log --with-courant --format-of-hardcopy=pdf
pyFoamPlotWatcher.py log --with-courant --write-files
pyFoamPlotWatcher is plotting the data (including courant number) in the X11 windows, but doesn't create any hardcopies (at least I can't find them)! Does anyone know what I'm doing wrong, or if there is another way to create pdf's (without creating screenshots)?
I'm using OF-1.7.1 on Mac OSX 10.6.5 and have the pyFoam(PlotWatcher) version 0.5.4.
JanL is offline   Reply With Quote

Old   December 13, 2010, 14:43
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by JanL View Post
Hi,

I would like to print the plots of pyFoamPlotWatcher.py and tried the following commands.

pyFoamPlotWatcher is plotting the data (including courant number) in the X11 windows, but doesn't create any hardcopies (at least I can't find them)! Does anyone know what I'm doing wrong, or if there is another way to create pdf's (without creating screenshots)?
I'm using OF-1.7.1 on Mac OSX 10.6.5 and have the pyFoam(PlotWatcher) version 0.5.4.
The first variant (of course with a logfile, guess you omitted that) should write some PNGs into the current working-directory AFTER you finished the watch wit Ctrl-C. The second variant writes nothing (but if there was a --hardcopy it would force gnuplot to write PDFs). The third variant writes the plotted data as timelines to some textfiles (see the *.analyzed-directory)

It is not a Mac-problem per se (I develop that stuff most of the time on such a thing). Is there any additional output after stopping the watcher?

Bernhard
louisgag likes this.
gschaider is offline   Reply With Quote

Old   August 16, 2016, 09:32
Default
  #7
Member
 
Charles K.
Join Date: Feb 2016
Location: Germany
Posts: 37
Rep Power: 10
McCharles is on a distinguished road
If you want the residualplot in pdf Format to be saved in the work directory, just use :
pyFoamPlotWatcher.py log --hardcopy --format-of-hardcopy=pdf
McCharles is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICEM working directory setting Bogesz CFX 2 October 8, 2008 07:45
Working Principle of Micro-Oven aero Siemens 2 January 31, 2007 05:00
Help required on working of Micro-oven aero CFX 4 January 19, 2007 08:21
Help required on working of Woven aero FLUENT 0 January 16, 2007 06:25
Team working on CFD code Spontex Main CFD Forum 5 August 11, 2006 14:51


All times are GMT -4. The time now is 02:56.