CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Cannot run as parallel. please help. (https://www.cfd-online.com/Forums/openfoam-solving/125191-cannot-run-parallel-please-help.html)

TommiPLaiho October 21, 2013 07:27

Cannot run as parallel. please help.
 
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

Bernhard October 21, 2013 07:49

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.

TommiPLaiho October 21, 2013 08:05

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!

Bernhard October 21, 2013 08:07

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?


All times are GMT -4. The time now is 04:44.