|
[Sponsors] |
Number of Subdomains not equals in number of processors |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 6, 2022, 03:59 |
Number of Subdomains not equals in number of processors
|
#1 |
New Member
Join Date: Aug 2022
Location: Netherlands
Posts: 3
Rep Power: 4 |
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. |
|
September 6, 2022, 04:31 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
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); } Code:
mpirun -np 3 yourSolver -parallel Yann |
|
September 6, 2022, 04:52 |
Number of Subdomains not equals in number of processors
|
#3 |
New Member
Join Date: Aug 2022
Location: Netherlands
Posts: 3
Rep Power: 4 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition problem (Freestream) | KAYANO | OpenFOAM Running, Solving & CFD | 5 | June 1, 2021 06:57 |
Different flow structures obtained due to the number of processors and time-steps | turbu | OpenFOAM | 0 | January 9, 2021 23:05 |
[mesh manipulation] mergeMeshes for more than two fluid domains | Vishsel | OpenFOAM Meshing & Mesh Conversion | 17 | May 20, 2019 08:05 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 16:03 |