|
[Sponsors] |
Allocate a specific region to a specific processor in a parallel run |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2017, 11:35 |
Allocate a specific region to a specific processor in a parallel run
|
#1 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi Guys;
I have a question regarding the domain decomposition for running a case on parallel using MPI. I used the simple decomposition until now and ran into no problems for simple cases. I am trying to have a domain in the shape of a "T". Please see the attached figure (the colors indicate allocation of cells to processors using another software - Gerris). Within that domain, I would like to allocate the mentioned zone (marked by red solid boundary) to a specific processor. Reason: When I inject fluid through two inlets, the main physics occurs at the junction point and I would like to allocate that region (junction) to 1 processor. Now, from my understanding this can't be done using the simple, hierarchical or scotch decomposition. The one left is the "manual" decomposition. From the users manual I see that we can assign specific cells to a specific processor. (can anyone direct me here for an example). However, I have too many cells in that region where cherry picking and allocating each individual cell within that region is rather impossible. Can anyone advice me here how to proceed please. Thanks; SaiD |
|
April 10, 2017, 14:58 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
Manual decomposition needs a file that specifies which label is on which processor. I used setFields on a field i named "processor". This quite like setting the "alpha.water" fields in multiphase simulations. I set the field value to 0 1 2 3 4 with setFields... After some minor clean up (removing the boundary values and one line in the header) used that file as the input file for manual decomposition. Should work for the case you mentioned.
|
|
April 12, 2017, 08:13 |
|
#3 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Sorry for my late reply. Thanks for the idea.
According to what I understand it is as simple as setting the boundaries within the domain to allocate for a processor. I will try the way you mentioned and post back. |
|
October 3, 2017, 09:17 |
|
#4 | |
New Member
Mohamed el Abbassi
Join Date: Oct 2016
Location: Delft, the Netherlands
Posts: 9
Rep Power: 10 |
Quote:
|
||
October 5, 2017, 07:04 |
|
#5 |
New Member
Lennart Steffen
Join Date: Mar 2017
Location: Braunschweig, Germany
Posts: 17
Rep Power: 9 |
Any block shape decomposition works great with setFields. I described how to do that in this thread recently:
Manual decomposition using setFields |
|
Tags |
decomposepar, mpi |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error running simpleFoam in parallel | Yuby | OpenFOAM Running, Solving & CFD | 14 | October 7, 2021 05:38 |
Can not run OpenFOAM in parallel in clusters, help! | ripperjack | OpenFOAM Running, Solving & CFD | 5 | May 6, 2014 16:25 |
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel | JR22 | OpenFOAM Running, Solving & CFD | 2 | April 19, 2013 17:49 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |