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

Number of Subdomains not equals in number of processors

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By TinusNl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2022, 02:59
Default Number of Subdomains not equals in number of processors
  #1
New Member
 
Join Date: Aug 2022
Location: Netherlands
Posts: 3
Rep Power: 3
TinusNl is on a distinguished road
I was wondering what i did wrong. Somewhere in the forum i read that number of subdomains must be equal to number of cores to be used. Even that i have a 4 core processor i would like to reserve 1 core for fast testing before starting a real simulation.
However the script below still gives me 4 processors.



numberOfSubdomains 2;

method simple;

coeffs
{
n (1 1 1);
}


Any suggestions? Also changing the n to (1 0 0 ) not changes anything.
TinusNl is offline   Reply With Quote

Old   September 6, 2022, 03:31
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,074
Rep Power: 26
Yann will become famous soon enough
Hi TinusNI,

It seems you are a bit confused about decomposeParDict, I suggest you to read the proper section of the user guide: https://www.openfoam.com/documentati...ns-in-parallel

In your decomposeParDict you are requesting 2 subdomains (ie 2 cores) but the coefficients you defined correspond to only 1 subdomain: (1 1 1) means your domain is cut by 1 in each direction => 1x1x1=1 subdomain. Another example to make it clearer: (3 2 1) will gives you 3x2x1=6 subdomains.

If you intend to run on 3 cores, your decomposeParDict should be something like this:

Code:
numberOfSubdomains 3;

method simple;

coeffs
{
	n (3 1 1);
}
Of course you also need to start the solver with the proper command, usually:

Code:
mpirun -np 3 yourSolver -parallel
Cheers,
Yann
TinusNl likes this.
Yann is offline   Reply With Quote

Old   September 6, 2022, 03:52
Default Number of Subdomains not equals in number of processors
  #3
New Member
 
Join Date: Aug 2022
Location: Netherlands
Posts: 3
Rep Power: 3
TinusNl is on a distinguished road
Thanks.


That was what i was looking for a small example.


I see that i also need to have a closer look on the other options to see if there is a way to speed up my calculations efficient as i not have that many cores available.
Yann likes this.
TinusNl 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
Boundary condition problem (Freestream) KAYANO OpenFOAM Running, Solving & CFD 5 June 1, 2021 05:57
Different flow structures obtained due to the number of processors and time-steps turbu OpenFOAM 0 January 9, 2021 22:05
[mesh manipulation] mergeMeshes for more than two fluid domains Vishsel OpenFOAM Meshing & Mesh Conversion 17 May 20, 2019 07:05
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03


All times are GMT -4. The time now is 23:24.