CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Allocate a specific region to a specific processor in a parallel run

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bloerb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2017, 10:35
Default 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
Saideep is on a distinguished road
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
Attached Images
File Type: png DecomposePar.png (12.8 KB, 49 views)
Saideep is offline   Reply With Quote

Old   April 10, 2017, 13:58
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
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.
melabbassi likes this.
Bloerb is offline   Reply With Quote

Old   April 12, 2017, 07:13
Default
  #3
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
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.
Saideep is offline   Reply With Quote

Old   October 3, 2017, 08:17
Default
  #4
New Member
 
Mohamed el Abbassi
Join Date: Oct 2016
Location: Delft, the Netherlands
Posts: 9
Rep Power: 9
melabbassi is on a distinguished road
Quote:
Originally Posted by Bloerb View Post
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.
Thanks a lot! This worked for me. I did not create an additional field, but copied the case folder and used one of the existing scalar fields (e.g. T) for setFields to modify.
melabbassi is offline   Reply With Quote

Old   October 5, 2017, 06:04
Default
  #5
New Member
 
Lennart Steffen
Join Date: Mar 2017
Location: Braunschweig, Germany
Posts: 17
Rep Power: 9
RL-S is on a distinguished road
Any block shape decomposition works great with setFields. I described how to do that in this thread recently:
Manual decomposition using setFields
RL-S is offline   Reply With Quote

Reply

Tags
decomposepar, mpi


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
Error running simpleFoam in parallel Yuby OpenFOAM Running, Solving & CFD 14 October 7, 2021 04:38
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 15:25
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 16:49
error message cuteapathy CFX 14 March 20, 2012 06:45


All times are GMT -4. The time now is 02:14.