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

how to interrupt pyFoamPlotWatcher.py

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2013, 04:18
Default how to interrupt pyFoamPlotWatcher.py
  #1
New Member
 
peter fox
Join Date: Jul 2011
Posts: 4
Rep Power: 5
peettter is on a distinguished road
What is the most suitable way to interrupt the excellent pyFoam tool pyFoamPlotWatcher.py?

I do not want to interrupt the simulation, I just want to stop the watcher such that I again have access to the command line. When press CTRL+C, i do get the message "Watcher: keyboard interrupt", but nothing else happens afterwards.

thanks in advance
peettter is offline   Reply With Quote

Old   May 28, 2013, 06:57
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by peettter View Post
What is the most suitable way to interrupt the excellent pyFoam tool pyFoamPlotWatcher.py?

I do not want to interrupt the simulation, I just want to stop the watcher such that I again have access to the command line. When press CTRL+C, i do get the message "Watcher: keyboard interrupt", but nothing else happens afterwards.

thanks in advance
Does this happen all the time or just at some times? The problem is that it happens only some times (for me) and is thus awkward to debug. The problem is that in order to do the plotting and other stuff smoothly the utility uses some multithreading and sometimes not all threads are terminated correctly.

The workaround is to suspend the watcher with CTRL-Z and then kill it with "kill %3" (or whatever is the number that was written by the shell). Alternatively you can of course kill with the PID you get with ps
__________________
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   May 28, 2013, 07:24
Default
  #3
New Member
 
peter fox
Join Date: Jul 2011
Posts: 4
Rep Power: 5
peettter is on a distinguished road
Thanks for the answer. The problem happens all the time (although I have used the tool only for one case so far)...

i will go ahead with the CTRL-Z workaround.
peettter 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
PyFoam braennstroem OpenFOAM 293 June 11, 2015 20:53
tecplot interrupt when post processing OpenFoam data kiddmax OpenFOAM Post-Processing 3 April 6, 2013 06:20
How to interrupt unsteady calculation and carry on without timestep increase? aleisia FLUENT 1 March 19, 2011 00:02
how to interrupt the process of solver with udf? endlessfree Fluent UDF and Scheme Programming 0 March 24, 2010 06:48
Problem Of Parallel / Partionning errors Hendawi Mohamed FLUENT 0 April 14, 2003 04:24


All times are GMT -4. The time now is 19:23.