CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Parallel interfom trouble in execution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2005, 13:44
Default Hi, when I start the parallel
  #1
mer
Member
 
merrouche djemai
Join Date: Mar 2009
Location: ain-oussera, djelfa, algeria
Posts: 46
Rep Power: 17
mer is on a distinguished road
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 is offline   Reply With Quote

Old   October 16, 2005, 12:51
Default Hi, Thanks I resolve my probl
  #2
mer
Member
 
merrouche djemai
Join Date: Mar 2009
Location: ain-oussera, djelfa, algeria
Posts: 46
Rep Power: 17
mer is on a distinguished road
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.
mer is offline   Reply With Quote

Old   October 17, 2005, 02:43
Default Do they have the same file-sys
  #3
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18
hani is on a distinguished road
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.
hani is offline   Reply With Quote

Old   October 17, 2005, 05:49
Default As Hakan explained, if you hav
  #4
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
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
maka is offline   Reply With Quote

Old   October 17, 2005, 07:41
Default Hi, Yes I used the NFS server
  #5
mer
Member
 
merrouche djemai
Join Date: Mar 2009
Location: ain-oussera, djelfa, algeria
Posts: 46
Rep Power: 17
mer is on a distinguished road
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.
mer is offline   Reply With Quote

Old   October 17, 2005, 18:17
Default Hi, I did the type of testi
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   October 18, 2005, 06:45
Default Hi, Thanks you all, Pei, the
  #7
mer
Member
 
merrouche djemai
Join Date: Mar 2009
Location: ain-oussera, djelfa, algeria
Posts: 46
Rep Power: 17
mer is on a distinguished road
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
mer 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
Trouble with parallel runs cfdmarkus OpenFOAM Running, Solving & CFD 9 February 27, 2009 04:59
Own boundary condition modified simpleFoam erorr in parallel execution sponiar OpenFOAM Running, Solving & CFD 1 August 27, 2008 10:16
Parallel Fluent: trouble going from 2 to 4 CPUs Mario FLUENT 6 August 24, 2006 01:17
Parallel execution of customized solver otsuki OpenFOAM Running, Solving & CFD 2 March 24, 2006 08:47
Parallel startup trouble! John CFX 9 April 22, 2005 21:17


All times are GMT -4. The time now is 09:46.