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

DecomposePar and sets

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2007, 21:35
Default
  #1
New Member
 
Juan Hierro
Join Date: Mar 2009
Posts: 9
Rep Power: 17
jhierroa is on a distinguished road
I am interested in knowing whether there is any way to work with a mesh divided into different sets (for instance rings around a central cylinder with different transport coefficients) where the final computation of the equations is, moreover, divided into different processors (with divisions along the z axis).

In other words:

Let it be a cylinder with rings around it with different transport properties and each cylinder is modelled by a different set (cellSet is used in the main code to set the transport properties in each ring). Is there any chance to compute the resulting system in parallel?

NOTE: a standard use of decomposePar works fine with everything (faces, nodes, points, patches, ...) except for the definition of the different sets which are not decomposed among the different processors.

Last edited by wyldckat; April 27, 2019 at 14:54. Reason: merged posts that were identical
jhierroa is offline   Reply With Quote

Old   January 3, 2007, 05:52
Default decomposePar does decompose zo
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
decomposePar does decompose zones (cellZones, faceZones, pointZones). Run setsToZones to convert your sets to zones and use e.g. the 'zoneToCell' cellSet source to convert back.
mattijs is offline   Reply With Quote

Old   January 3, 2007, 09:23
Default Hi Juan! I have written a s
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Juan!

I have written a small modification to decomposePar that decomposes the sets as well. If you're interested, send me a mail.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 3, 2007, 16:06
Default Yes, I am interested in that s
  #4
New Member
 
Juan Hierro
Join Date: Mar 2009
Posts: 9
Rep Power: 17
jhierroa is on a distinguished road
Yes, I am interested in that small modification. I have already sent you a mail.
jhierroa is offline   Reply With Quote

Old   January 15, 2008, 07:53
Default Hi Bernhard, This post is
  #5
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Hi Bernhard,

This post is quite old, but I'm also interested in the modification of decomposePar to decompose cellSets......Could you post it here ?

Thanks and regards, Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   January 15, 2008, 14:18
Default Hi Frank! I've adapted it
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Frank!

I've adapted it to compile on 1.4.1 (due to that it won't compile on 1.4 or lower) and put it on the svn on openfoam-extend. You can get it (and a test-case) with this command:

svn checkout https://openfoam-extend.svn.sourcefo...oseParWithSets

As an alternative I'll attach a patch here that contains all the necessary changes to the original decomposePar-sources and should work on 1.3 and 1.4 too.

I havn't used the modification in a long time, but it still seems to work

Bernhard


domainDecomposition.C.patch
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 15, 2008, 17:05
Default Thanks Bernhard! It seems
  #7
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Thanks Bernhard!

It seems to work. I now have decomposed a case with two mesh subsets, but something real strange occurs:

The wing motion of the same case with 2 subsets is different in parallel compared to the serial case. Very strange, but at least I can decompose now.....thanks for that.

Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   January 25, 2008, 09:48
Default Hi I've tried setsToZone but
  #8
New Member
 
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17
cricke is on a distinguished road
Hi
I've tried setsToZone but then get problems with memory allocation?!

Where do I compile the domainDecompositiion.C.patch file? Does it affect my original decomposePar or can I switch back if it doesnt work? What command to execute the new decomposePar?

RG
Christofer Ivarsson
cricke 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
DecomposePar utility hsing OpenFOAM Running, Solving & CFD 11 January 19, 2015 04:09
DecomposePar jadavis1 OpenFOAM Running, Solving & CFD 0 January 28, 2009 15:07
DecomposePar and mergePatchPairs hannes OpenFOAM Bugs 4 June 26, 2007 12:01


All times are GMT -4. The time now is 00:32.