|
[Sponsors] |
[snappyHexMesh] Snappyhexmesh parallel using all RAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 26, 2014, 18:52 |
Snappyhexmesh parallel using all RAM
|
#1 |
New Member
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 13 |
I just reinstalled OpenFOAM 2.3 on a fresh install of Ubuntu 12.04
Everything works UNTIL, I run a case with snappy making the mesh in parallel. Then on an identical case to that which I have run before, the memory usage just goes up by about 1Gb a SECOND - until all 32GB are used and it starts using swap. This is crazy as its a 1.2 million cell mesh - which on my Laptop (same OS, same OF) uses about 3Gb or something to mesh. I copied the case directory over - its identical. Im guessing something in MPI is off...(installed is openMPI ver 1.4.3)...? Other than re-installing everything anyone got an idea whats happening ? |
|
May 26, 2014, 19:09 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Calum,
There are a few hypothesis:
Bruno
__________________
|
|
May 29, 2014, 17:57 |
Solved !!!!
|
#3 |
New Member
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 13 |
The solution is - dont be a moron.
when I was doing the parallel meshing I accidentally added a "-" before the number of cores to use.... I was lazy and to repeat the command was just cycling back through the terminal entries - without realising it was wrong. On my laptop of course I typed it correctly the first time and so by repeating the "last command" it always worked ! BAD CODE mpirun -np -4 snappyHexMesh -overwrite -parallel GOOD CODE mpirun -np 4 snappyHexMesh -overwrite -parallel Here is my confirmed working procedure for SHM in parallel ----------------------------------------------------------------------- Procedure for Meshing and Running in Parallel with SnappyHexMesh 1 Rename 0 folder 0.org This prevents SHMesh interfering with it 2 <blockMesh> Creates background mesh for SHMesh 3 <surfaceFeatureExtract> So the mesher knows where to snap to 4 <decomposePar> Divides mesh into one section per CPU core 5 <mpirun –np 8 snappyHexMesh –overwrite –parallel> Runs in parallel 6 <reconstructParMesh –constant> Puts the mesh back together again 7 delete all processor folders Clear old mesh data 8 delete folder 0 This was a dummy folder for SHMesh 9 rename folder 0.org to 0 Reactivate the folder for the solver to use 10 edit the constant/polymesh/boundary file and remove all the references to patches created by blockMesh in Step2. Leave only the patches desired for the simulation to run. Edit the number at the top of the text file which shows how many patches are to be setup. 11 <decomposePar> Puts the solution setup into a folder per CPU core 12 <mpirun –n 8 renumberMesh –overwrite –parallel> Optimises mesh 13 <mpirun –np 8 pisoFoam –parallel> Run the solver in parallel 14 <reconstructPar> Puts the CPU results back together into one 15 <paraFoam> Launches ParaVIEW to see the results <type text inside the arrows into the command line but don’t type the arrows !> |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Running snappyHexMesh in parallel creates new time directories | hconel | OpenFOAM Meshing & Mesh Conversion | 5 | September 27, 2022 16:20 |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 08:49 |
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? | klausb | OpenFOAM Meshing & Mesh Conversion | 1 | March 7, 2015 12:55 |
snappyHexMesh in parallel | Dadou | OpenFOAM Pre-Processing | 0 | June 28, 2013 07:46 |
motorBike running snappyHexMesh in parallel? | klausb | OpenFOAM Running, Solving & CFD | 0 | December 5, 2011 19:58 |