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

The preservePatches Option in decomposePar

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 12, 2012, 06:01
Default The preservePatches Option in decomposePar
  #1
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
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, 05:39
Default
  #2
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 6
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, 20:22
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 06:14
Default
  #4
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 6
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, 18:45
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 8 December 3, 2013 17:51
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Simulation of a single bubble with a VOF-method Suzzn CFX 18 October 2, 2009 04:18
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07


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