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

The preservePatches Option in decomposePar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2012, 05:01
Default The preservePatches Option in decomposePar
  #1
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17
Hisham is on a distinguished road
Dear Foamers,

It seems that the preservePatches option of the decomposePar utility actually means that for all faces of a preserved patch have the owner and neighbor on the same processor (as commented in code)?

What if I want to preserve a complete patch (or two identical patches) in one processor using the scotch method, is it doable?

I can do it with the simple method but I thought there maybe a lazier way to do it and to somehow preserve processor weights?

Best regards
Hisham
Hisham is offline   Reply With Quote

Old   November 18, 2012, 04:39
Default
  #2
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Dear Hisham,

I'm also trying to get a certain patch preserved. PreservePatches doesn't seem to work right now so I'm looking forward to the result of your 'experiment'. Did you also try to use manual instead of scotch?

Regards,

Ralph
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   November 18, 2012, 19:22
Default
  #3
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 to both!

There was a bug report on this that hasn't been closed yet: http://www.openfoam.org/mantisbt/view.php?id=387

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 19, 2012, 05:14
Default
  #4
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Dear Bruno, thanks for your reply.

I tried to test this option yesterday (OF2.1) but unfortunately I don't have cyclic patches so this option doesn't seem to work for me or am I wrong?

Would there be another way to preserve non-cyclic patches? Maybe a manual decomposition?

Ralph
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   November 19, 2012, 17:45
Default
  #5
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
Hi Ralph,

I don't have much time to go into details, so here is the summary:
  1. Use the decomposition method you wish to use and add to the decomposePar command the argument described in the help:
    Code:
    $ decomposePar -help
    
    Usage: decomposePar [OPTIONS]
    options:
    #...
      -cellDist         write cell distribution as a labelList - for use with
                        'manual' decomposition method or as a volScalarField for
                        post-processing.
    #...
  2. Look into the main example file for the dictionary at "applications/utilities/parallelProcessing/decomposePar/decomposeParDict".
  3. Test if the manual decomposition actually works.
  4. Manipulate the "weights" as if you manipulating a field, namely by using setSet or topoSet, along with setFields. For drawing ideas, run the following commands for tracking down examples:
    Code:
    find $FOAM_TUTORIALS -name topoSetDict
    find $FOAM_TUTORIALS -name setFieldsDict
Looks like you were already half-way there already:
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
decomposepar, preservepatches


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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


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