CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] pyFoamPlotWatcher Graphics do not work

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2013, 11:53
Default pyFoamPlotWatcher Graphics do not work
  #1
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 16
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,208
Rep Power: 27
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: 16
Rep Power: 16
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: 4,225
Rep Power: 51
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: 4,225
Rep Power: 51
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,208
Rep Power: 27
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: 4,225
Rep Power: 51
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


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
Companies that lease software & hardware for cloud-based work? Catthan ANSYS 0 June 18, 2014 11:53
Do all CFD analysts have to do some hands-on work except PhDs? e13drd Main CFD Forum 2 March 17, 2014 15:56
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 13:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 22:03
Problem: graphics display in prostar main window Jiaying Xu Siemens 8 February 14, 2002 09:08


All times are GMT -4. The time now is 21:30.