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

pyFoam: pyFoamPlotWatcher Graphics do not work

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 26, 2013, 11:53
Default pyFoam: pyFoamPlotWatcher Graphics do not work
  #1
sda
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 7
sda is on a distinguished road
Dear OpenFOAMers,

I am trying to use pyFoamPlotWatcher on a case that was created by Thorsten Grahs. This is an external aerodynamics example of the Ahmed Body using the pisoFoam solver.

When I start pyFoam withe the command pyFoamPlotWatcher piso.log, no windows appear showing a live update of the solution residuals. instead I get the text from the .log file in the window.

I am running this case in OpenFoam V 2.1.1 on a 64 bit Ubuntu 12.10 virtual machine using the Parallels 8 on my Apple MAcBook Pro.

It seems that i might have aprobem with gnuplot but no error messages appear and I have not yet discovered the problem,hence my post.

Any help would be appreciated.
sda is offline   Reply With Quote

Old   February 26, 2013, 16:18
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
whats the duty of plot watcher?why don't you use plotrunner command instead?
immortality is offline   Reply With Quote

Old   February 26, 2013, 16:42
Default
  #3
sda
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 7
sda is on a distinguished road
I am new to pyFoam. I thought plotWatcher allowed you to view the residuals. I wasn't aware that plotRunner incorporated any features that allowed you to monitor a solution that was underway. Does it? If so then I will try but I suspect that I have an issue of gnuplot and the graphics drivers in Ubuntu 12.10.
sda is offline   Reply With Quote

Old   February 26, 2013, 17:07
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
whats the duty of plot watcher?why don't you use plotrunner command instead?
PlotWatcher is if you already have a log (for instance from a run on the cluster) and want to analyze that log.

PlotRunner is only of use for small runs were you plan to have the terminal open all the time
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 26, 2013, 18:33
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sda View Post
Dear OpenFOAMers,

I am trying to use pyFoamPlotWatcher on a case that was created by Thorsten Grahs. This is an external aerodynamics example of the Ahmed Body using the pisoFoam solver.

When I start pyFoam withe the command pyFoamPlotWatcher piso.log, no windows appear showing a live update of the solution residuals. instead I get the text from the .log file in the window.

I am running this case in OpenFoam V 2.1.1 on a 64 bit Ubuntu 12.10 virtual machine using the Parallels 8 on my Apple MAcBook Pro.

It seems that i might have aprobem with gnuplot but no error messages appear and I have not yet discovered the problem,hence my post.

Any help would be appreciated.
Gnuplot works on its own?

Some other things that could be the case:
- the Watcher needs at least two timesteps before he starts plotting. You've had that many yet?
- To find out that a new timestep ist "there" the Watcher scans the output for the "typical" output "Time = 3.4". Some solvers say it different and the Watcher then has a hard time finding the next time (but this can be configured). Anyway. If this is an unmodified pisoFoam then this probably isn't a problem

Some things you could try to make it clearer where the problem is:

- does the pyFoamPlotRunner.py not plot too?
- does this problem occur with tutorial cases too (Plotter and Watcher)
- in gnuplot does for instance "plot sin(x)" work?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 26, 2013, 18:47
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
then after ending the run we can plot residuals by pyFoamPlotRunner.did i grasp it correctly?
immortality is offline   Reply With Quote

Old   February 27, 2013, 06:20
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
then after ending the run we can plot residuals by pyFoamPlotRunner.did i grasp it correctly?
No. you run the case with pyFoamPlotRunner.py, pyFoamRunner.py or any other command that generates a logfile.

Then you can plot the stuff from the logfile with the watcher. Even while the case is still running on another machine (that's why its called Watcher)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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 PyFoam Christoph_84 OpenFOAM 30 May 8, 2014 04:35
writeFile problem with PyFoam ganeshv OpenFOAM Running, Solving & CFD 3 August 20, 2012 17:07
PyFoam installation question CaroVandame OpenFOAM 2 June 19, 2012 11:02
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
cfx+Fortran cannot work with 2 CPUs on windows PC lee CFX 1 May 8, 2006 10:36


All times are GMT -4. The time now is 12:07.