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

[ImmersedBoundary] mpirun gives error despite I can run my case serially

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By ordinary
  • 1 Post By ordinary

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2018, 17:13
Default mpirun gives error despite I can run my case serially
  #1
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Hello,

I have a 2D case which consists of 11496 cells. Unfortunately I can only run it serially. Whenever I try to type
Code:
decomposePar

mpirun -np 8 icoDyMIbFoam -parallel
it gives me error: HATA.txt

Here is my decomposeParDict file in addition: decomposeParDict.txt

I tried to find a solution and encountered a post mentions swap configuration. https://www.cfd-online.com/Forums/op...-problems.html
But I don't think my problem is related with swap memory. The laptop I use has 16 GB RAM and 7.6 GB swap size (swapon command says so). I even tried to run the case in an HPC cluster.

To summarize, I can't run the case in parallel but can run it serially.

Regards,

Emre
ordinary is offline   Reply With Quote

Old   October 7, 2018, 09:19
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
  1. Dividing so very few cells by 8 cores, gives an average of 1437 cells.
  2. The error message states the following:
    Code:
    Signal: Floating point exception (8)
    libfoam.so(_ZN4Foam17DICPreconditioner15calcReciprocalDERNS_5FieldIdEERKNS_9lduMatrixE+0x107
  3. I know it's hard to spot the detail, but there was a problem with a mathematical operation when running the method "DICPreconditioner::calcReciprocal".
  4. This is very likely to be related to the very few cells being used for each core, because it's likely missing the information that is within the other processors.
  5. The solution may be to either not run in parallel or only run in parallel with 2 cores.
  6. Furthermore, given this information:
    Code:
    [3] Number of IB cells: 0
    [7] Number of IB cells: 0
    [2] Number of IB cells: 0
    [6] Number of IB cells: 0
    [5] Number of IB cells: 32
    External flow
    [4] Number of IB cells: 29
    [0] Number of IB cells: 31
    [1] Number of IB cells: 31
    I suspect that the problem is due to having the IB surface being shared between too many processors... it may be possible that it will only work if the IB surface is only present within a single processor domain.
ordinary likes this.
__________________
wyldckat is offline   Reply With Quote

Old   October 7, 2018, 16:39
Default
  #3
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Thank you very much Mr. Santos. I decreased simpleCoeffs( ) as you suggested. Now it solves faster.

Regards,
Emre
wyldckat likes this.
ordinary is offline   Reply With Quote

Old   November 6, 2018, 09:19
Default parallel with icoDyMIbFoam
  #4
zjz
New Member
 
ZhaoJia
Join Date: Nov 2017
Posts: 8
Rep Power: 9
zjz is on a distinguished road
Quote:
Originally Posted by ordinary View Post
Hello,

I have a 2D case which consists of 11496 cells. Unfortunately I can only run it serially. Whenever I try to type
Code:
decomposePar

mpirun -np 8 icoDyMIbFoam -parallel
it gives me error: Attachment 65725

Here is my decomposeParDict file in addition: Attachment 65726

I tried to find a solution and encountered a post mentions swap configuration. https://www.cfd-online.com/Forums/op...-problems.html
But I don't think my problem is related with swap memory. The laptop I use has 16 GB RAM and 7.6 GB swap size (swapon command says so). I even tried to run the case in an HPC cluster.

To summarize, I can't run the case in parallel but can run it serially.

Regards,

Emre
Hi,
i run sample pitchingPlate in foam-extend4.0 with icoDyMIbFoam in parallel,
but it give me errorUsage: icoDyMIbFoam [-DebugSwitches key1=val1,key2=val2,...] [-DimensionedConstants key1=val1,key2=val2,...] [-InfoSwitches key1=val1,key2=val2,...] [-OptimisationSwitches key1=val1,key2=val2,...] [-Tolerances key1=val1,key2=val2,...] [-case dir] [-dumpControlSwitches] [-noFunctionObjects] [-parallel] [-help] [-doc] [-srcDoc]


Usage: icoDyMIbFoam [-DebugSwitches key1=val1,key2=val2,...] [-DimensionedConstants key1=val1,key2=val2,...] [-InfoSwitches key1=val1,key2=val2,...] [-OptimisationSwitches key1=val1,key2=val2,...] [-Tolerances key1=val1,key2=val2,...] [-case dir] [-dumpControlSwitches] [-noFunctionObjects] [-parallel] [-help] [-doc] [-srcDoc]



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 1


FOAM exiting



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 1


FOAM exiting

-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing

How do you run the sample in parallel?
thank you.
zjz is offline   Reply With Quote

Old   November 6, 2018, 09:38
Default
  #5
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Quote:
Originally Posted by zjz View Post
How do you run the sample in parallel?
thank you.
Hello. I run it via these commands:
Code:
decomposePar
potentialIbFoam
 mpirun -np 8 icoDyMIbFoam -parallel
8 in the code above means CPU cores. It needs to be same with decomposeParDict file in constant folder.

Regards,

Emre
wyldckat likes this.
ordinary is offline   Reply With Quote

Reply

Tags
foam-extend 4.0, icodymibfoam, immersed boundary method, mpirun, mpirun 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
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
looking for a cluster to run a case miles_davis Hardware 6 March 3, 2012 19:08
[OpenFOAM] Paraview in Prallel (server-client) prapanj ParaView 11 September 24, 2010 08:12
How to run and save tranisent case on Cray XD1 Leon FLUENT 0 October 3, 2006 22:59


All times are GMT -4. The time now is 03:59.