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

[PyFoam] pyFoamPlotRunner on network

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2012, 17:25
Default pyFoamPlotRunner on network
  #1
New Member
 
anonymous
Join Date: Jan 2012
Posts: 7
Rep Power: 14
PeterX30 is on a distinguished road
I have used succesfully pyFoam on a single node multi core hardware.
Recently I extended to a small cluster with 3 nodes (8 cores + 12 cores +12 cores with in total 32 cores)
On this 3 node configuration I`m able to run succesfully a parallel job under mpi. Here is an example how I can succesfully start a parallel pimpleFoam run on all nodes:

mpirun --hostfile hosts -np 32 pimpleFoam - parallel

In order to plot on the fly residuals, I used to apply pyFoam. On one node this is working well. Example for the corresponding job (the first node has 8 cores listed in hosts):

pyFoamPlotter.py --machinefile=hosts --proc=8 --progress pimpleFoam

Unfortunately this is not working if I start it on all 3 nodes:

pyFoamPlotter.py --machinefile=hosts --proc=32 --progress pimpleFoam

The general log file in the ~/.pyfoam/log directory contains the following warning:
WARNING Not deregistering, because it seems we were not registered in the first place - in FoamServer.py:511

What is going wrong? I thouht I have defined all required paths on all nodes ... Any idea?

Thank`s a lot for your support.
PeterX30 is offline   Reply With Quote

Old   December 11, 2012, 13:39
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 PeterX30 View Post
I have used succesfully pyFoam on a single node multi core hardware.
Recently I extended to a small cluster with 3 nodes (8 cores + 12 cores +12 cores with in total 32 cores)
On this 3 node configuration I`m able to run succesfully a parallel job under mpi. Here is an example how I can succesfully start a parallel pimpleFoam run on all nodes:

mpirun --hostfile hosts -np 32 pimpleFoam - parallel

In order to plot on the fly residuals, I used to apply pyFoam. On one node this is working well. Example for the corresponding job (the first node has 8 cores listed in hosts):

pyFoamPlotter.py --machinefile=hosts --proc=8 --progress pimpleFoam

Unfortunately this is not working if I start it on all 3 nodes:

pyFoamPlotter.py --machinefile=hosts --proc=32 --progress pimpleFoam

The general log file in the ~/.pyfoam/log directory contains the following warning:
WARNING Not deregistering, because it seems we were not registered in the first place - in FoamServer.py:511

What is going wrong? I thouht I have defined all required paths on all nodes ... Any idea?

Thank`s a lot for your support.
That log entry ("not deregistering") isn't the problem. It has to do with something completely different (the Meta-Server. See the "Happy Foaming" presentation from Montreal) which you probably are not using.

@pyFoamPlotter.py: you mean pyFoamPlotRunner.py, right?

Anyway: that happens after you start the run on the cluster (as I said: the log-entry is not the problem)?

BTW: Usually if you specify a machinefile then PyFoam should calculate the -np automatically

For calculations on a cluster I usually recommend to write output to a logfile (either with pyFoamRunner.py or a simple redirect) and then using pyFoamPlotWatcher.py on that output. That way the running of the solver is detached from the display
__________________
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   December 12, 2012, 16:28
Default
  #3
New Member
 
anonymous
Join Date: Jan 2012
Posts: 7
Rep Power: 14
PeterX30 is on a distinguished road
@pyFoamPlotter.py: you mean pyFoamPlotRunner.py, right?

Off course, a typo. I mean pyFoamPlotRunner.py as stated in the title of the thread.

I checked your proposal and this works fine on the fly when I start "pyFoamPlotWatcher.py logfile"
on a second terminal accessing the corresponding logfile. Thank's a lot!!!
PeterX30 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
Reactor network pratical questions Paulo SPS FLUENT 0 October 10, 2017 04:55
How to install OpenFoam 2.3.0 without network killsecond OpenFOAM Installation 4 May 16, 2014 12:07
IcePak network objects in parallel solver Alexey FLUENT 1 December 25, 2013 09:32
48 Core Cluster - GigE Network ronaldalau Hardware 2 September 9, 2011 14:50
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 08:10


All times are GMT -4. The time now is 16:18.