CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   remote computing (https://www.cfd-online.com/Forums/openfoam/87894-remote-computing.html)

lyna May 2, 2011 04:21

remote computing
 
Hi
what is the procedure used to launch a remote computing using OF?
Thank you

Lyna

benk May 2, 2011 08:55

If you're talking about running openfoam solvers on your own computer remotely, this is what I've done:

1. Configure an ssh server on your linux box (quite easy if you are running a distribution like ubuntu). If you don't have a static IP to connect to, checkout services like dyndns.org
2. ssh into your server (on windows you can use a program like putty, otherwise just use ssh)
3. I highly recommend that you use the linux terminal app called screen, otherwise as soon as you end your ssh session, you'll have trouble checking up on your simulation (and possibly the solver will also quit when you get disconnected...not sure about that though).
4. For postprocessing, I think the easiest thing is probably to set up an ftp server and download the relevant data.

lyna May 2, 2011 10:33

Thank you
I have to launch calculations on another machine (it is not mine), indeed on from my PC; because they have me create user's account in their machine, even the OF is installed(settled) in my account? is-It the similar with your case?

romant May 2, 2011 10:54

In order to not have a simulation crash when you disconnect you ssh session, use one of the following options:

1. Start you simulation with foamJob:
Code:

foamJob simpleFoam
or for parallel
Code:

foamJob -p simpleFoam
where simpleFoam stands for the solver you are using. This starts the solver and diverts the screen output into a log file

2. Start you simulation in the background
Code:

simpleFoam > log &
where the "> log" send the output into a file called log, you can therefore also put the output in any file you like. The ampersand puts the whole thing into the background, which you can then see by calling up "top" or "htop" (htop is more convenient to use)

To see what the output looks like in both options, use
Code:

tail -f /path/to/log/file
this will output the logfile into the command line.

lyna May 18, 2011 05:15

Hi
when I have results I can not trace them, paraFoam does not open the window ParaView.
is what I can get my results and how?, so I can draw them in my PC.

thank you


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