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

Errors when using OpenFOAM parallel calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2020, 18:23
Question Errors when using OpenFOAM parallel calculation
  #1
New Member
 
Micheal
Join Date: Jun 2020
Posts: 6
Rep Power: 6
phyczz is on a distinguished road
I build a model using OpenFOAM and try to run the model in parallel.
When the size of the mesh is about 700M, the program goes well.
When I improve the number of cells and the size of the mesh becomes 5G some errors happen.
I tried to use 8 cores for parallel calculation, the errors are:
(1)7 more processes have sent help message help-btl-vader.txt / cma-permission-denied
(2)mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated.

Could you give me some help about how to solve this problem?

p.s. The size of the mesh which generated by blockMesh is about 5G.
The solver I used is rhoPimpleFoam.
My computer has 8 cores and 16G RAM.

Last edited by phyczz; August 8, 2020 at 08:48.
phyczz is offline   Reply With Quote

Old   August 8, 2020, 08:01
Default
  #2
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
I suggest to run a "rhoPimpleFoam" tutorial case to check, whether there's a problem with your installation or permissions.

If possible use one of the tutorial cases as the basis for your case setup.
klausb is offline   Reply With Quote

Old   August 8, 2020, 17:26
Default
  #3
New Member
 
Micheal
Join Date: Jun 2020
Posts: 6
Rep Power: 6
phyczz is on a distinguished road
Thank you klausb!

When the size of the mesh is about 700M, the program goes well.
When I improve the number of cells and the size of the mesh becomes 5G some errors happen.

Is there a limit of the mesh size during the calculation?
phyczz is offline   Reply With Quote

Old   August 9, 2020, 07:29
Default
  #4
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
A lot of cells per core but apparently it's not an OpenFoam problem but an OpenMPI "issue" see: https://github.com/conda-forge/mpi4p...tock/issues/15


With a lot of cells per core, a lot of information needs to be exchanged between cores maybe that's triggering issues on your hardware. Follow the advise suggested in the blog linked above and/or consider an OpenFoam source installation using MPICH or another MPI implementation.
klausb is offline   Reply With Quote

Old   August 10, 2020, 18:46
Default
  #5
New Member
 
Micheal
Join Date: Jun 2020
Posts: 6
Rep Power: 6
phyczz is on a distinguished road
Thank you so much for your reply.
I tried MPICH but the problem remains.
Maybe there is a limitation of the cell number for a specific computer.

In addtion, I met another problem.
When I used blockMesh to create mesh and the cell number was about 60,000,000
then the program crashed.

The error information are:
"#0 blockMesh: malloc.c:2401: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)
"


Will other mesh generation utility be better when deal with mesh than has large cell number?

Thank you very much!
phyczz is offline   Reply With Quote

Old   August 11, 2020, 00:53
Default
  #6
Member
 
Join Date: Nov 2014
Posts: 92
Rep Power: 12
hokhay is on a distinguished road
When you said "mesh size", do you mean the cell number?

If you mean cell number, 5G is huge for your 16GB RAM. I think the problem might be due to lack of RAM
hokhay is offline   Reply With Quote

Old   August 11, 2020, 03:57
Default
  #7
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Check the mesh quality with checkMesh to see whether there's a problem.

I think the limitation is your hardware considering the problem size: no. of cores, RAM, no. of memory channels (for performance)

Maybe you have some friends with similar hardware so you could build a small cluster over a weekend to compute the problem. There are also online resources but usually not for free.
klausb is offline   Reply With Quote

Old   August 11, 2020, 06:04
Default
  #8
New Member
 
Micheal
Join Date: Jun 2020
Posts: 6
Rep Power: 6
phyczz is on a distinguished road
Yes, I mean the cell size.
And also the size of the "polyMesh" directory.
phyczz is offline   Reply With Quote

Old   August 11, 2020, 06:08
Default
  #9
New Member
 
Micheal
Join Date: Jun 2020
Posts: 6
Rep Power: 6
phyczz is on a distinguished road
Quote:
Originally Posted by hokhay View Post
When you said "mesh size", do you mean the cell number?

If you mean cell number, 5G is huge for your 16GB RAM. I think the problem might be due to lack of RAM
Yes, the mesh size means the cell number. And also related to the size of "polyMesh"directory.
phyczz is offline   Reply With Quote

Old   August 11, 2020, 06:29
Default
  #10
New Member
 
Micheal
Join Date: Jun 2020
Posts: 6
Rep Power: 6
phyczz is on a distinguished road
Thank you for your suggestion.
I found that there was no "polyMesh"diretory if the blockMesh crashed.
As you said a cluster will be the right choice.

Thank you so much!
I will let you know if I have solve this problem.
phyczz is offline   Reply With Quote

Old   August 26, 2020, 12:23
Default
  #11
New Member
 
sw choi
Join Date: Aug 2020
Location: MD in USA
Posts: 20
Rep Power: 6
choist31 is on a distinguished road
Dear Physzz

I have the same error message when I try to run the parallel calculation; tutorial/incompressible/icoFoam/cavityMappingTest; I have following error message. :

Finalising parallel run
[DESKTOP-CHOIST:01362] 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied
[DESKTOP-CHOIST:01362] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

Above message is generated when I use Allrun-parallel.

However, when I type decomposePar; I have a following error message:

" cannot find file "points" in directory "polyMesh" in times "0" down to constant.

I wonder if you can give me any suggestion on this error ?

Thank you in advance.
choist31 is offline   Reply With Quote

Old   September 8, 2020, 03:55
Default
  #12
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by choist31 View Post
Dear Physzz

I have the same error message when I try to run the parallel calculation; tutorial/incompressible/icoFoam/cavityMappingTest; I have following error message. :

Finalising parallel run
[DESKTOP-CHOIST:01362] 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied
[DESKTOP-CHOIST:01362] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

Above message is generated when I use Allrun-parallel.

However, when I type decomposePar; I have a following error message:

" cannot find file "points" in directory "polyMesh" in times "0" down to constant.

I wonder if you can give me any suggestion on this error ?

Thank you in advance.
Did you have a solution? I have the same question. Maybe you can help me.
wanghongjie 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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 16:25
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58


All times are GMT -4. The time now is 14:07.