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

Cannot run as parallel. please help.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2013, 08:27
Default Cannot run as parallel. please help.
  #1
New Member
 
Tommi P. Laiho
Join Date: Oct 2013
Posts: 18
Rep Power: 13
TommiPLaiho is on a distinguished road
Hi,

I am making car simulation and I would like to use 2 cores. I have 8 cores at use, four cores in each Intel Xeon processor.

However when I try to run the simulation as parallel I will get this kind of error:
Quote:
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /home/tommi2/OpenFOAM/tommi2-2.1.1/run/processor0/0/p at line 0.
[0]
[0] From function regIOobject::readStream()
[0] in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting
[0]
Reading field p

[1]
[1]
[1] --> FOAM FATAL IO ERROR:
[1] cannot find file
[1]
[1] file: /home/tommi2/OpenFOAM/tommi2-2.1.1/run/processor1/0/p at line 0.
[1]
[1] From function regIOobject::readStream()
[1] in file db/regIOobject/regIOobjectRead.C at line 73.
[1]
FOAM parallel run exiting
[1]
--------------------------------------------------------------------------
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 0 with PID 20669 on
node caelinux exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[caelinux:20668] 1 more process has sent help message help-mpi-api.txt / mpi-abort
[caelinux:20668] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
Please let me know what to do. Thank you!

PS. I use this code to run the simulation:

Quote:
mpirun -np 2 pisoFoam -parallel
TommiPLaiho is offline   Reply With Quote

Old   October 21, 2013, 08:49
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Are you sure it works serial? i.e, does pisoFoam give you any errors? In any case, the 0/p file is missing or your decomposition went wrong. You can read this from the error message.
Bernhard is offline   Reply With Quote

Old   October 21, 2013, 09:05
Default
  #3
New Member
 
Tommi P. Laiho
Join Date: Oct 2013
Posts: 18
Rep Power: 13
TommiPLaiho is on a distinguished road
Hi,

No I am not sure whether or not it works as serial. Furthermore I do not understand a lot what the OpenFOAM says. I am a newbie in this business.

I think that "p" in 0 folder is not missing. So something went wrong with the decomposition?

Here is the result when I run only:

Code:
pisoFoam
And it produces:

Quote:
Reading field p



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/tommi2/OpenFOAM/tommi2-2.1.1/run/0/p at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
and here is my "p" file:

Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include "initialConditions"

dimensions [0 2 -2 0 0 0 0];

internalField uniform $pressure;

boundaryField
{
"inlet|ground|ahmed_.*"
{ type zeroGradient;}

outlet
{type fixedValue;value $internalField;}

"sides|top"
{ type symmetryPlane;}
}

// ************************************************** *********************** //
Please let me know how to fix "p"-file. Many thanks!
TommiPLaiho is offline   Reply With Quote

Old   October 21, 2013, 09:07
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
You are running from .../run/, and there is no .../run/0/p. That is certain by the errormessage. You don't want to cd into a specific case directory?
Bernhard 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
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 18 March 26, 2016 13:40
Parallel Run on dynamically mounted partition braennstroem OpenFOAM Running, Solving & CFD 14 October 5, 2010 15:43
Unable to run OF in parallel on a multiple-node cluster quartzian OpenFOAM 3 November 24, 2009 14:37
serial run fine, but parallel run diverged phsieh2005 OpenFOAM Running, Solving & CFD 2 October 6, 2009 09:33
Run in parallel a 2mesh case cosimobianchini OpenFOAM Running, Solving & CFD 2 January 11, 2007 07:33


All times are GMT -4. The time now is 08:33.