CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Manual Decomposition Method

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By mturcios777
  • 1 Post By ngj

LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2013, 19:50
Question Manual Decomposition Method
New Member
Join Date: Dec 2012
Posts: 19
Rep Power: 13
smraniaki is on a distinguished road

I am intending to decompose a large scale (cm size) domain into 5 portion but I want one of the portions to be further divided(decomposed) into another 5 part.
I am pretty sure none of the common decomposition methods(metis, scotch, simple, hierarchical) is able to do it as they do it arbitrary based on the weight of the cells at the beginning.
The reason I'm doing this is I am investigation the behavior of MicroFluidics at specific part of my domain which usually falls into one portion of the decomposed domain and this portion has to carry most of the computation. I guess using manual decomposition I should be able to specify where and how the domain to be decomposed. Does anybody have any clue how to handle this?

smraniaki is offline   Reply With Quote

Old   November 21, 2013, 07:27
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings smraniaki,

I know there is a post somewhere that explains how to use manual decomposition... but I can't find it right now.

As for decomposing in parts, check the option "multiLevel", as mentioned in this post: post #8

Best regards,
wyldckat is offline   Reply With Quote

Old   November 21, 2013, 12:08
Senior Member
mturcios777's Avatar
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
I don't know if this is the method used by the post you mentioned, but the following worked for me in 2.2.x.

First, I created volumes in STL format whose intersection with my domain subdivided it into the required subdomains.

Then, I created a volScalarField called procDist that is intially 0, and used setFields to set the value of procDist in each subdomain to be the number of the processor. The source you can use is surfaceToCell. Note that you can use any of the cell sources listed in topoSetDict, so you don't have to use STL volumes unless your decomposition can't be made by the default sources (box, rotated box, sphere, cylinder, plane, etc).

Finally, once procDist has the required values written in it, all you need is the internal field by itself (the scalarField) so trim the unneeded portions of the file and copy it to constant/$fileName, where $fileName is the file sepecified as the dataFile in manualCoeffs.

Hope this helps.
wyldckat likes this.
mturcios777 is offline   Reply With Quote

Old   November 24, 2013, 16:53
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough

The following contains more information on manual decomposition approaches:

Good luck,

wyldckat likes this.
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
interFoam & decomposition method: scotch MacGyver OpenFOAM Running, Solving & CFD 2 May 23, 2012 07:00
Manual decomposition of domain pss OpenFOAM Pre-Processing 0 April 26, 2012 01:33
About flowfield-dependent variation(FDV) method? Jinwon Main CFD Forum 1 December 4, 2007 21:13
Info on method of lines approach charlie ryan Main CFD Forum 2 August 9, 2007 11:06
tidal flow simulation using finite volume method Jason Qiu Main CFD Forum 0 October 20, 2002 02:34

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