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

OpenFOAM can't be run in parallel in cluster

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Antimony
  • 1 Post By babakflame

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2017, 22:26
Default OpenFOAM can't be run in parallel in cluster
  #1
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 10
sibo is on a distinguished road
Hello All,

I am trying to run an airfoil case using simpleFoam in parallel with 4 processors in cluster. I can load mpi successfully using "module load openmpi-x86_64 " and the domain is decomposed successfully. But when I type: "mpirun -np 4 simpleFoam -parallel > case.log",
I run into trouble.

Code:
[0] 
[0] 
[0] --> FOAM FATAL IO ERROR: 
[0] wrong token type - expected word, found on line 22 the punctuation token '['
[0] 
[0] file: /mnt/store1/home/sli218/try1/processor0/../constant/transportProperties::nu at line 22.
[0] 
[0]     From function operator>>(Istream&, word&)
[0]     in file primitives/strings/word/wordIO.C at line 74.
[0] 
FOAM parallel run exiting
[0] 
[1] 
[1] 
[1] --> FOAM FATAL IO ERROR: 
[1] wrong token type - expected word, found on line 0 the punctuation token '['
[1] 
[1] file: IOstream::nu at line 0.
[1] 
[1]     From function operator>>(Istream&, word&)
[1]     in file primitives/strings/word/wordIO.C at line 74.
[1] 
FOAM parallel run exiting
[1] 
[2] 
[2] 
[2] --> FOAM FATAL IO ERROR: 
[2] wrong token type - expected word, found on line 0 the punctuation token '['
[2] 
[2] file: IOstream::nu at line 0.
[2] 
[2]     From function operator>>(Istream&, word&)
[2]     in file primitives/strings/word/wordIO.C at line 74.
[2] 
FOAM parallel run exiting
[2] 
[3] 
[3] 
[3] --> FOAM FATAL IO ERROR: 
[3] wrong token type - expected word, found on line 0 the punctuation token '['
[3] 
[3] file: IOstream::nu at line 0.
[3] 
[3]     From function operator>>(Istream&, word&)
[3]     in file primitives/strings/word/wordIO.C at line 74.
[3] 
FOAM parallel run exiting
[3] 
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD 
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun has exited due to process rank 2 with PID 21185 on
node login-1.extreme.uic.edu exiting improperly. There are two reasons this could occur:

1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
for all processes to call "init". By rule, if one process calls "init",
then ALL processes must call "init" prior to termination.

2. this process called "init", but exited without calling "finalize".
By rule, all processes that call "init" MUST call "finalize" prior to
exiting or it will be considered an "abnormal termination"

This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[login-1.extreme.uic.edu:21179] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[login-1.extreme.uic.edu:21179] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
And I tried to run this case in parallel with 4 processors in my own laptop, it works fine.


Can someone suggest how I can fix this? Thanks a lot!!!
Sibo
sibo is offline   Reply With Quote

Old   February 20, 2017, 22:28
Default turbulenceProperties
  #2
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 10
sibo is on a distinguished road
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

transportModel  Newtonian;

rho             [1 -3 0 0 0 0 0] 1.2;

nu              [0 2 -1 0 0 0 0] 1.7e-05;

CrossPowerLawCoeffs
{
nu0     nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf     nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m       m [ 0 0 1 0 0 0 0 ] 1;
n       n [ 0 0 0 0 0 0 0 ] 1;
}

BirdCarreauCoeffs
{
nu0     nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf     nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k       k [ 0 0 1 0 0 0 0 ] 0;
n       n [ 0 0 0 0 0 0 0 ] 1;
}

// ************************************************************************* //
sibo is offline   Reply With Quote

Old   February 21, 2017, 03:07
Default
  #3
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

Are the two versions of OF the same (the one on your laptop and the one in cluster)?

From your error message:

Code:
wrong token type - expected word, found on line 0 the punctuation token '['
It would seem that the two versions are not the same. The quick fix would be to do what the error message expects of you. So in the transportProperties file, change this

Code:
nu [0 2 -1 0 0 0 0] 1.7E-05;
To this:

Code:
nu nu [0 2 -1 0 0 0 0] 1.7E-05;
Hope this helps.

Cheers,
Antimony
sibo likes this.
Antimony is offline   Reply With Quote

Old   February 21, 2017, 16:57
Default
  #4
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16
babakflame is on a distinguished road
Hey sibo

What Antimony said, is correct.

You need to be careful about these stuff. Are u using same versions of OpenFoam on the cluster and your laptop. It seems that you are facing a template error due to version conflicts.

Regards
sibo likes this.
babakflame is offline   Reply With Quote

Old   February 21, 2017, 17:29
Thumbs up
  #5
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 10
sibo is on a distinguished road
Hi Antimony and Babak,

Thanks for your reply!
It really enlightened me. I will see if it works now.
sibo is offline   Reply With Quote

Reply

Tags
cluster, mpi error


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
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 01:51
Unable to run the case parallel using foam-extend in the cluster farahaqilah OpenFOAM 0 July 28, 2016 00:49
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
OpenFOAM parallel running error in cluster vishal_s OpenFOAM Running, Solving & CFD 5 March 11, 2014 16:11
How to run Openfoam in a cluster after I install it xiuying OpenFOAM Installation 5 May 5, 2008 13:54


All times are GMT -4. The time now is 11:42.