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

simpleFoam in parallel issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2013, 23:44
Default simpleFoam in parallel issue
  #1
Senior Member
 
plucas's Avatar
 
Anonymous
Join Date: Dec 2011
Location: USA
Posts: 108
Rep Power: 15
plucas is on a distinguished road
I am working on getting my cases to work in parallel. I use simpleFoam mostly which cannot seem to get to run in parallel. I run my cases using ./Allrun command. Can you all look to see what I am missing. snappyHexMesh runs just fine in parallel so I do not know why simpleFoam will not.

This is my Allrun file
Code:
#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions



cp -r 0.org 0 > /dev/null 2>&1

runApplication blockMesh

cp system/decomposeParDict.hierarchical system/decomposeParDict

runApplication decomposePar

cp system/decomposeParDict.ptscotch system/decomposeParDict

runParallel snappyHexMesh 8 -overwrite -parallel

find . -type f -iname "*level*" -exec rm {} \;

ls -d processor* | xargs -i cp -r 0.org/* ./{}/0/ $1

runParallel renumberMesh 8 -overwrite

runApplication potentialFoam -noFunctionObjects -writep

runParallel `getApplication` 8

runApplication reconstructParMesh -constant
runApplication reconstructPar -latestTime

# ----------------------------------------------------------------- end-of-file
My log.simpleFoam file
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.1-221db2718bbb
Exec   : simpleFoam -parallel
Date   : Jul 14 2013
Time   : 19:09:54
Host   : "hancha-desktop"
PID    : 2485
Case   : /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike
nProcs : 8
Slaves : 
7
(
"hancha-desktop.2486"
"hancha-desktop.2487"
"hancha-desktop.2488"
"hancha-desktop.2489"
"hancha-desktop.2490"
"hancha-desktop.2491"
"hancha-desktop.2492"
)

Pstream initialized with:
    floatTransfer     : 0
    nProcsSimpleSum   : 0
    commsType         : nonBlocking
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

[1] 
[1] 
[1] --> FOAM FATAL IO ERROR: 
[1] keyword procBoundary1to7 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor1/0/p::boundaryField"
[1] 
[1] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor1/0/p::boundaryField from line 27 to line 16.
[1] 
[1]     From function dictionary::subDict(const word& keyword) const
[1]     in file db/dictionary/dictionary.C at line 461.
[1] 
FOAM parallel run exiting
[1] 
[4] 
[4] 
[4] --> FOAM FATAL IO ERROR: 
[4] keyword procBoundary4to5 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor4/0/p::boundaryField"
[4] 
[4] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor4/0/p::boundaryField from line 27 to line 16.
[4] 
[4]     From function dictionary::subDict(const word& keyword) const
[4]     in file db/dictionary/dictionary.C at line 461.
[4] 
FOAM parallel run exiting
[4] 
[0] 
[0] 
[0] --> FOAM FATAL IO ERROR: 
[0] keyword procBoundary0to1 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor0/0/p::boundaryField"
[0] 
[0] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor0/0/p::boundaryField from line 27 to line 16.
[0] 
[0]     From function dictionary::subDict(const word& keyword) const
[0]     in file db/dictionary/dictionary.C at line 461.
[0] 
FOAM parallel run exiting
[0] 
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 1 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.
--------------------------------------------------------------------------
[5] 
[5] 
[5] --> FOAM FATAL IO ERROR: 
[5] keyword procBoundary5to4 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor5/0/p::boundaryField"
[5] 
[5] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor5/0/p::boundaryField from line 27 to line 16.
[5] 
[5]     From function dictionary::subDict(const word& keyword) const
[5]     in file db/dictionary/dictionary.C at line 461.
[5] 
FOAM parallel run exiting
[5] 
[7] 
[7] 
[7] --> FOAM FATAL IO ERROR: 
[7] keyword procBoundary7to1 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor7/0/p::boundaryField"
[7] 
[7] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor7/0/p::boundaryField from line 27 to line 16.
[7] 
[7] [2] 
[2] 
[2] --> FOAM FATAL IO ERROR: 
[2] keyword procBoundary2to7 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor2/0/p::boundaryField"
[2] 
[2] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor2/0/p::boundaryField from line 27 to line 16    From function dictionary::subDict(const word& keyword) const
[7]     in file db/dictionary/dictionary.C at line 461.
[7] 
FOAM parallel run exiting
[7] 
.
[2] 
[2]     From function dictionary::subDict(const word& keyword) const
[2]     in file db/dictionary/dictionary.C at line 461.
[2] 
FOAM parallel run exiting
[2] 
[3] 
[3] 
[3] --> FOAM FATAL IO ERROR: 
[3] keyword procBoundary3to7 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor3/0/p::boundaryField"
[3] 
[3] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor3/0/p::boundaryField from line 27 to line 16.
[3] 
[3]     From function dictionary::subDict(const word& keyword) const
[3]     in file db/dictionary/dictionary.C at line 461.
[3] 
FOAM parallel run exiting
[3] 
[6] 
[6] 
[6] --> FOAM FATAL IO ERROR: 
[6] keyword procBoundary6to4 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor6/0/p::boundaryField"
[6] 
[6] file: /home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor6/0/p::boundaryField from line 27 to line 16.
[6] 
[6]     From function dictionary::subDict(const word& keyword) const
[6]     in file db/dictionary/dictionary.C at line 461.
[6] 
FOAM parallel run exiting
[6] 
--------------------------------------------------------------------------
mpirun has exited due to process rank 1 with PID 2486 on
node hancha-desktop exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[hancha-desktop:02484] 7 more processes have sent help message help-mpi-api.txt / mpi-abort
[hancha-desktop:02484] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
Help would be appreciated. Let me know if you need any other files.
plucas is offline   Reply With Quote

Old   July 15, 2013, 00:49
Default
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15
ahmmedshakil is on a distinguished road
The error message says that "keyword procBoundary1to7 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor1/0/p::boundaryField"" .
Have you checked your p boundary???
ahmmedshakil is offline   Reply With Quote

Old   July 15, 2013, 11:21
Default
  #3
Senior Member
 
plucas's Avatar
 
Anonymous
Join Date: Dec 2011
Location: USA
Posts: 108
Rep Power: 15
plucas is on a distinguished road
Quote:
Originally Posted by ahmmedshakil View Post
The error message says that "keyword procBoundary1to7 is undefined in dictionary "/home/hancha/OpenFOAM/hancha-2.1.1/run/transient/motorBike/processor1/0/p::boundaryField"" .
Have you checked your p boundary???
Yes I have. My p boundary is the same as it is when running in serial.

When I check in processorX/constant/polyMesh/boundary I have a procBoundary1to7. Do I need to call all of these out in my p boundary?

boundary file
Code:
/*--------------------------------*- 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       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

15
(
    frontAndBack
    {
        type            patch;
        nFaces          0;
        startFace       1273919;
    }
    inlet
    {
        type            patch;
        nFaces          0;
        startFace       1273919;
    }
    outlet
    {
        type            patch;
        nFaces          0;
        startFace       1273919;
    }
    lowerWall
    {
        type            wall;
        nFaces          298;
        startFace       1273919;
    }
    upperWall
    {
        type            patch;
        nFaces          0;
        startFace       1274217;
    }
    body
    {
        type            wall;
        nFaces          64359;
        startFace       1274217;
    }
    fwing
    {
        type            wall;
        nFaces          55822;
        startFace       1338576;
    }
    wheel_fr
    {
        type            wall;
        nFaces          0;
        startFace       1394398;
    }
    wheel_fl
    {
        type            wall;
        nFaces          0;
        startFace       1394398;
    }
    wheel_rr
    {
        type            wall;
        nFaces          0;
        startFace       1394398;
    }
    wheel_rl
    {
        type            wall;
        nFaces          0;
        startFace       1394398;
    }
    procBoundary1to7
    {
        type            processor;
        nFaces          1182;
        startFace       1394398;
        matchTolerance  0.0001;
        myProcNo        1;
        neighbProcNo    7;
    }
    procBoundary1to0
    {
        type            processor;
        nFaces          2580;
        startFace       1395580;
        matchTolerance  0.0001;
        myProcNo        1;
        neighbProcNo    0;
    }
    procBoundary1to2
    {
        type            processor;
        nFaces          3052;
        startFace       1398160;
        matchTolerance  0.0001;
        myProcNo        1;
        neighbProcNo    2;
    }
    procBoundary1to3
    {
        type            processor;
        nFaces          481;
        startFace       1401212;
        matchTolerance  0.0001;
        myProcNo        1;
        neighbProcNo    3;
    }
)

// ************************************************************************* //
plucas is offline   Reply With Quote

Old   July 17, 2013, 12:30
Default
  #4
Senior Member
 
plucas's Avatar
 
Anonymous
Join Date: Dec 2011
Location: USA
Posts: 108
Rep Power: 15
plucas is on a distinguished road
Any other ideas? I know plenty of people run cases in parallel
plucas 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
ANSYS CFX 14 on UBUNTU 12.04 64bit: PARALLEL ISSUE david.pasquale CFX 7 July 15, 2024 14:43
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 17:49
parallel simpleFoam freezes the whole system vangelis OpenFOAM Running, Solving & CFD 14 May 16, 2012 06:12
simpleFoam serious mass balance issue fivos OpenFOAM Running, Solving & CFD 2 November 6, 2011 09:21
Issue with running in parallel on multiple nodes daveatstyacht OpenFOAM 7 August 31, 2010 18:16


All times are GMT -4. The time now is 10:51.