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

Problem with parallel computing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2013, 05:05
Default Problem with parallel computing
  #1
Member
 
Join Date: Nov 2012
Posts: 62
Rep Power: 13
Naruto is on a distinguished road
Dear all,
I normally do my simulations in a cluster environment (Clunix). Each node is identified as hpc001, hpc002 etc and has 8 processors. For the last couple of days I have been trying to use two or more nodes parallely. I have followed this link: http://www.openfoam.org/docs/user/ru...s-parallel.php

But nothing seems to work.
I normally execute my command like this:
mpirun --hostfile machines -np 16 icoFoam -parallel

My machines file is like this:
hpc027
hpc028 cpu=8
Here is my decomposeParDict file:
*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 16;

method hierarchical;

hierarchicalCoeffs
{
n (1 1 16);
delta 0.001;
order xyz;
}


distributed yes;


roots

2

(

"/root/hpc027" // I have also tried like writing only "hpc027" "hpc028"
"/root/hpc028"

);


// ************************************************** *********************** //
Everytime I got the similar error message:
"number of entries in roots 2 is not equal to the number of slaves"
Could someone shed any light into it?
Thank you
__________________
Happy Foaming
Naruto is offline   Reply With Quote

Old   November 29, 2013, 01:47
Default
  #2
Senior Member
 
Join Date: Dec 2011
Posts: 111
Rep Power: 19
haakon will become famous soon enough
I think that you should avoid using the distributed function in decomposeParDict, and go for a centralized storage for all your data that is accessible from all your nodes. Then you don't need the contents of "roots" either. Besides that, I think you should post your error messages and describe your problem a bit more clearly.
haakon is offline   Reply With Quote

Reply

Tags
parallel computing


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
[mesh manipulation] Problem with RenumberMesh in parallel in OpenFOAM 2.1.1 srini_esi OpenFOAM Meshing & Mesh Conversion 1 November 8, 2013 02:48
Problem in using UDF in parallel computing Yogini Fluent UDF and Scheme Programming 0 January 22, 2013 08:23
Parallel Run problem shhe OpenFOAM Running, Solving & CFD 1 April 27, 2010 06:52
Problem in Parallel UDF Giacomo de Renzi FLUENT 12 June 18, 2008 12:19
problem!! FLUENT 6.2 -SUSE parallel computing khanjaved FLUENT 1 August 15, 2005 22:00


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