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

[OpenFOAM.org] Installing metis on OpenFOAM-5.x

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2018, 12:09
Default Installing metis on OpenFOAM-5.x
  #1
New Member
 
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 11
redbullah is on a distinguished road
Hi all,
To use metis, I downloaded the metis-5.1.0 version here, but not sure if this is a compatible version and how to install it. Is there a procedure to install it with full compatibility within OF-5.x?
Thanks in advance
redbullah is offline   Reply With Quote

Old   October 7, 2018, 12:52
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
I've used http://glaros.dtc.umn.edu/gkhome/fet...s-5.1.0.tar.gz with OpenFOAM-1712 and 1806. There is amakeMETIS ThirdParty script, a wmake `have_metis` detection/selection script and of course a corresponding etc/config.sh/metis file.


I did some testing comparisons between metis, scotch and kahip, trying to push them to produce bad decompositions. Eg, take the motorBike tutorial and try to decompose on a silly number of processors (512, 1024, 2048, ...). As quality metrics I then looked at the number of processor neighbours and the number of neighbour faces. For a wide range they performed quick similarly, but scotch did produce some odd decompositions too (ie, suddenly the worst processor had 65 neighbours and the rest had 30 or so). Didn't observe this for metis or kahip.


Nonetheless, one argument for scotch could be pt-scotch if you have large meshes. Otherwise you run into the problem that the indices for the adjacency lists overflow. In that case, it could also be reasonable to use a multi-level decomposition with hierarchical for the first level and metis for the subsequent levels.
wyldckat likes this.
olesen is offline   Reply With Quote

Old   October 8, 2018, 13:08
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
Quote:
Originally Posted by redbullah View Post
To use metis, I downloaded the metis-5.1.0 version here, but not sure if this is a compatible version and how to install it. Is there a procedure to install it with full compatibility within OF-5.x?
Quick answer:
  1. Unpack the "metis-5.1.0" package inside the "ThirdParty-5.x" folder.
  2. Make sure that the unpacked folder is named "metis-5.1.0" and that is does not contain only one folder inside that one (i.e. it didn't unpack into "metis-5.1.0/metis-5.1.0").
  3. Run the Allwmake script in the "OpenFOAM-5.x" folder and it should automatically build Metis along with the libraries and applications that use it.
I know this because:
  1. It's pre-configured in this file: https://github.com/OpenFOAM/OpenFOAM...onfig.sh/metis
  2. The Allwmake script in the "ThirdParty-5.x" folder is already configured to do the trick on its own: https://github.com/OpenFOAM/ThirdPar.../Allwmake#L312
The same should work with OpenFOAM 6 and OpenFOAM-dev.
__________________
wyldckat 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
metis decompose OpenFoam 2.0.0 sebastianweiper OpenFOAM Installation 11 December 29, 2020 11:59
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
[waves2Foam] A few notes about problems and solutions when installing with OpenFOAM v1712 oceanFoam OpenFOAM Community Contributions 0 June 22, 2018 08:52
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15


All times are GMT -4. The time now is 20:05.