CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Parallel interfom trouble in execution (http://www.cfd-online.com/Forums/openfoam-solving/60461-parallel-interfom-trouble-execution.html)

mer October 14, 2005 12:44

Hi, when I start the parallel
 
Hi,
when I start the parallel execution of the damBreakFine, I receive the fellowing message:
-----------------------------------------------
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.2 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : interFoam /home/mer/OpenFOAM/mer-1.2/run/tutorials/interFoam damBreakFine -parallel
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.2 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : interFoam /home/mer/OpenFOAM/mer-1.2/run/tutorials/interFoam damBreakFine -parallel
[0] Date : Oct 14 2005
[0] Time : 09:02:10
[0] Host : merrou
[0] PID : 5702
[1] Date : Oct 14 2005
[1] Time : 13:01:56
[1] Host : merrouw
[1] PID : 3416
[0] Root : /home/mer/OpenFOAM/mer-1.2/run/tutorials/interFoam
[0] Case : damBreakFine
[0] Nprocs : 2
[0] Slaves :
[0] 1
[0] (
[0] merrouw.3416
[0] )
[0]
[1] Root : /home/mer/OpenFOAM/mer-1.2/run/tutorials/interFoam
[1] Case : damBreakFine
[1] Nprocs : 2
Create time



--> FOAM FATAL ERROR : interFoam: Cannot open case directory "/home/mer/OpenFOAM/mer-1.2/run/tutorials/interFoam/damBreakFine/processor1"


FOAM parallel run exiting

-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code. This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.

PID 5702 failed on node n0 (192.168.0.1) with exit status 1.
-----------------------------------------------------------------------------

What is the problem? for n I use (2,1,1) andmy simulation is under 2 PCs

mer October 16, 2005 11:51

Hi, Thanks I resolve my probl
 
Hi,
Thanks I resolve my problem by decompose the same case in the second Pc.
But, I can't understand a think. why should I install the case on both Pcs and is it necessary to decompose it in the 2 pcs also.

hani October 17, 2005 01:43

Do they have the same file-sys
 
Do they have the same file-system? The same case directory must be available on both machines, otherwise the second machine would not know what to do.

H.

maka October 17, 2005 04:49

As Hakan explained, if you hav
 
As Hakan explained, if you have a single file system that can be seen by all the nodes in the cluster, you will not need to do anything twice. In my case this is done by setting one of the machines as file server for the others. Don't ask me how to do that since our adminstrator did it for us :-). Good luck!

/Maka

mer October 17, 2005 06:41

Hi, Yes I used the NFS server
 
Hi,
Yes I used the NFS server and share the run FOAM directory with the other Pcs.
but, it doesn't work. Then I decide to install the OpenFOAM on the second Pc and do the same job twice.

hsieh October 17, 2005 17:17

Hi, I did the type of testi
 
Hi,

I did the type of testing, that is connecting two PCs each has Fedora Core 3 installed, about 5 months ago. I lost one PC, so unfortunately I cannot re-do it and write down all the steps. But, here are few key things I remember that are important:

1. One PC will serve as a file server. You do decomposePar on this PC to create the two folders for processor0 and processor1.
2. hostname needed to be correct. Make sure that you can ping both the IP and machine names from each other.
3. I had NFS running and setup ssh so that both PCs can logon to each other without a password (need public/private key dsa key pair generated and copied to the right place).
4. on the client PC, I believe that I have OpenFOAM installed. The case file does not reside on the client PC. I created a new folder with the same path/folder name as the server PC for the case to be run. Mount this folder to the folder on the file server.

All these steps did the trick (these are from memory, I may miss some details).

Pei

mer October 18, 2005 05:45

Hi, Thanks you all, Pei, the
 
Hi,
Thanks you all,
Pei, the ssh server should be in running state else the (LAM/MPI) doesn't work.
for the other steps that you have mentionned, I will try and if I find any problems I will be back.

By the way, I want to use the interFOAM solver in the modeling of the motion of bubbles in tube.

I started by taking the geometry of bubblefoam case bu I find problems how to impose my bubble and when (problems with gamma field).
Any help on this subject?!!!!
I need to perform some simulations with OpenFOAM in order to decide if I will decide to chose it for coupling with other codes.

thanks


All times are GMT -4. The time now is 00:59.