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

How to run OpenFOAM using Shared Memory method on local machine with multiple cores?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2017, 11:01
Unhappy How to run OpenFOAM using Shared Memory method on local machine with multiple cores?
  #1
New Member
 
Ronith Stanly
Join Date: Mar 2017
Location: Sweden
Posts: 24
Rep Power: 9
ronithstanly is on a distinguished road
I have a portable workstation with 8 cores (32GB) and would like to use atleast 6 cores simultaneously while running OpenFOAM V1612+. For a 2D cylinder in Crossflow problem with about 95k cells that I did using icoFoam, I tried the mpirun after decomposing the mesh using decomposeParDict. Even though it uses all the cores, it only uses one core at a time (which has been divided among the entire computational domain). I tried decomposing using different methods (simple, hierarchical and scotch), but in the end while solving, only one core will be used at a time.

As far as I have understood, this is the problem with Message Passing method and will only give an advantage (about 5-10%) in computational time when used with very larges meshes (about 50k cells per core). (Please correct me if I am wrong)

I would like to know how to implement the Shared Memory method (I guess that is what allows the simultaneous usage of all the specified cores). If it requires the creation of certain specific libraries, how should I proceed with it? Can anyone suggest some useful papers/books/links/works for the same?

Without this I am only able to use 4GB out of the 32GB that I have in my workstation and that is negatively affecting my output. So experts, please help. Feel free to correct me if any of what I have mentioned above is contrary to popular notion.

Thanks for your time,
Ronith Stanly
ronithstanly is offline   Reply With Quote

Old   August 4, 2017, 01:31
Smile Beware when you allot cores and memory to virtual machine!
  #2
New Member
 
Ronith Stanly
Join Date: Mar 2017
Location: Sweden
Posts: 24
Rep Power: 9
ronithstanly is on a distinguished road
I solved that issue and I am writing it down here so that it will help anyone else who has similar issues. The problem was caused due to fact that I was running OpenFOAM on Windows using a virtual machine and in that virtual machine, I had allotted only 1 core and 4GB. Now I increased it and all cores are being used simultaneously as what you would expect from mpi.
ronithstanly is offline   Reply With Quote

Reply

Tags
mpi parallel, multicore, openfoam 1612, parallel computing


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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 05:01
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
Run a shared memory parallel version on a network? Cheng MuLin FLUENT 1 October 23, 2001 04:58


All times are GMT -4. The time now is 06:15.