|
[Sponsors] |
November 11, 2013, 06:32 |
Running OpenFOAM in parallel
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Dear Foamers,
I am dealing with a pretty-big mesh and I am having some troubles. I am running it on CINECA, a super-computer center and my script is as follow: Code:
#!/bin/sh blockMesh decomposePar mpirun -np 16 snappyHexMesh reconstructParMesh -latestTime -mergeTol 1E-06 -noZero rm -r processor* cp constant/polyMesh/blockMeshDict . rm -r constant/polyMesh cp -r 1/polyMesh constant cp blockMeshDict constant/polyMesh rm -r 1 rm blockMeshDict decomposePar mpirun -np 16 topoSet -dict ./system/topoSetDict mpirun -np 16 refineMesh -dict ./system/refineMeshDict1 reconstructParMesh -latestTime -mergeTol 1E-06 -noZero rm -r processor* cp constant/polyMesh/blockMeshDict . rm -r constant/polyMesh cp -r 1/polyMesh constant cp blockMeshDict constant/polyMesh rm -r 1 rm blockMeshDict decomposePar mpirun -np 16 simpleFoam recontructPar As far as the steps are concerned, I am pretty sure they're ok, since if I run them on my laptop (with a smaller mesh, of course) everything is fine. What is this errore linked to, according to you? Thanks a lot, Samuele |
|
November 11, 2013, 06:50 |
|
#2 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Dear Samuele,
the first striking thing I saw is that you miss some parallel statements (see bold code): Code:
mpirun -np 16 snappyHexMesh -parallel you will start up 16 different processes which will cause some troubles. Let me know whether it worked regards Colin |
|
November 11, 2013, 08:26 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Thanks a lot, Colin.
Let me try. I'll get back to you asap. Samuele |
|
November 11, 2013, 08:36 |
|
#4 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Hi Colin,
I've added the option -parallel, but I am always getting the same error. Any other hints? Thanks, Samuele |
|
November 11, 2013, 09:01 |
|
#5 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Hi Samuele
well the last line says: Code:
=>> PBS: job killed: mem 31250244kb exceeded limit 12582912kb I thought this came by starting 16 times the same thread and making 16 times the same mesh, but apparently not. So my question is: How big is your mesh and how much RAM do you have available? As a guideline for me I'm using 800k cells per 1GB RAM Another question I have: why is blockMesh started up several times while you specified blockMesh to start up as a single thread and not as a mpirun? Is this because you are using CINECA? regards Colin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Large test case for running OpenFoam in parallel | fhy | OpenFOAM Running, Solving & CFD | 23 | April 6, 2019 10:55 |
parallel error with cyclic BCs for pimpleDyMFoam and trouble in resuming running | sunliming | OpenFOAM Bugs | 21 | November 22, 2013 04:38 |
Running in parallel | Djub | OpenFOAM Running, Solving & CFD | 3 | January 24, 2013 17:01 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 10:38 |
OpenFOAM 14 stock version parallel bug | msrinath80 | OpenFOAM Bugs | 2 | May 30, 2007 15:47 |