CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [PyFoam] Remote running with PyFoam? (https://www.cfd-online.com/Forums/openfoam-community-contributions/126848-remote-running-pyfoam.html)

Jakob1 November 27, 2013 05:10

Remote running with PyFoam?
 
I would like to code a script which sets up a series of cases, runs them and analyzes the results. This so far worked smoothly using PyFoam.

Since I will need the results on a Windows machine I was thinking of setting aside a second computer just for the simulations. Switching back and forth with a USB stick is not handy, so I was wondering if there was a (reasonable) way of remote controlling the system over the LAN.

All I could find were runners that can monitor and kill simulations, but is it possible to clone and start them as well?

That would be cool :)

gschaider November 27, 2013 13:34

Quote:

Originally Posted by Jakob1 (Post 463707)
I would like to code a script which sets up a series of cases, runs them and analyzes the results. This so far worked smoothly using PyFoam.

Since I will need the results on a Windows machine I was thinking of setting aside a second computer just for the simulations. Switching back and forth with a USB stick is not handy, so I was wondering if there was a (reasonable) way of remote controlling the system over the LAN.

All I could find were runners that can monitor and kill simulations, but is it possible to clone and start them as well?

That would be cool :)

For cloning you have pyFoamCloneCase.py (or what do you mean).

For starting simulations remotely I didn't see any need yet because I use SunGridEngine to distribute runs to computers/clusters. PyFoam supports that with the ClusterJob-class (there are some examples around). Other queuing managers (than SGE) are possible but not implemented

Concerning the general question: you should describe WHAT you actually want that couldn't be done with scp and connecting via ssh to that machine. Or do you want a pyFoamCloneCase via ssh / pyFoamRunner via ssh ?


All times are GMT -4. The time now is 13:47.