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

[PyFoam] how to interrupt pyFoamPlotWatcher.py

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2013, 05:18
Default how to interrupt pyFoamPlotWatcher.py
  #1
New Member
 
peter fox
Join Date: Jul 2011
Posts: 4
Rep Power: 15
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, 07:57
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 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, 08:24
Default
  #3
New Member
 
peter fox
Join Date: Jul 2011
Posts: 4
Rep Power: 15
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


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
[PyFoam] Using pyFoamPlotWatcher.py To Plot Residuals m_ridzon OpenFOAM Community Contributions 22 January 26, 2021 19:48
Interrupt control during system coupling? khhan0543 CFX 0 November 28, 2017 02:32
Interrupt Control for a expression-based monitor kohyar CFX 2 December 1, 2016 09:53
[ICEM] ICEM CFD Interrupt function Whitebear ANSYS Meshing & Geometry 2 April 23, 2015 03:47
logical expression for cfx interrupt control wjy-c CFX 0 November 29, 2013 05:30


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