{"id":273,"date":"2019-07-12T21:30:26","date_gmt":"2019-07-12T20:30:26","guid":{"rendered":"http:\/\/www.science-now.org\/giampaolo\/?p=273"},"modified":"2019-07-12T13:34:53","modified_gmt":"2019-07-12T12:34:53","slug":"su2-6-2-0-for-raspbian-buster","status":"publish","type":"post","link":"https:\/\/www.science-now.org\/giampaolo\/2019\/07\/12\/su2-6-2-0-for-raspbian-buster\/","title":{"rendered":"SU2 6.2.0 for Raspbian Buster"},"content":{"rendered":"<p>Fancy doing some cool CFD with your Raspberry? Then, you must try the SU2 solver! Download here the pre-compiled version for Raspbian.<\/p>\n<p><!--more--><\/p>\n<p>This is version 6.2.0 of SU2 and it was compiled with GCC 8.3 using a Raspberry Pi 3. The binaries are distributed using self-extracting archives which were created using <a href=\"https:\/\/makeself.io\/\">makeself.sh<\/a>. They can be downloaded from this page directly or using <code>wget<\/code>.<\/p>\n<h2>Instructions for the static version<\/h2>\n<p>This version of SU2 does not require any external library, you can just download and run it on your Raspberry. However, support for parallel computing and the Python interface are both disabled. To download, extract and run this version, you can run these commands in your shell:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# Download the static version\r\nwget &quot;http:\/\/www.science-now.org\/giampaolo\/wp-content\/uploads\/2019\/07\/SU2-6.2.0_serial_static.run&quot;\r\n\r\n# Run the self-extracting archive\r\nsh SU2-6.2.0_serial_static.run\r\n\r\n# Go to the new directory\r\ncd SU2-6.2.0_serial_static\r\n\r\n# Run SU2\r\n.\/SU2_CFD \r\n<\/pre>\n<p>Remember, you can add this folder to your PATH by following the instructions given by the self-extracting archive. You&#8217;ll be able to run SU2 from any directory.<\/p>\n<h2>Instructions for the parallel version<\/h2>\n<p>This version of SU2 does require some external libraries, specifically Python 2.7 (installed by default on Raspbian Buster) and OpenMPI. These are needed to enable support for parallel computing and the Python interface. To download, extract and run this version, you can run these commands in your shell:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# Download the parallel version\r\nwget &quot;http:\/\/www.science-now.org\/giampaolo\/wp-content\/uploads\/2019\/07\/SU2-6.2.0_parallel.run&quot;\r\n\r\n# Run the self-extracting archive\r\nsh SU2-6.2.0_parallel.run\r\n\r\n# Go to the new directory\r\ncd SU2-6.2.0_parallel\r\n\r\n# Run SU2 with 2 processes\r\nmpirun -n 2 SU2_CFD \r\n<\/pre>\n<p>Remember, you can add this folder to your PATH by following the instructions given by the self-extracting archive. You&#8217;ll be able to run SU2 from any directory.<\/p>\n<h2>A simple test case: NACA 0012<\/h2>\n<p>Running a simple test-case is the best way to check if SU2 is providing accurate results. The attachment Naca0012.zip contains a mesh for a NACA 0012 and the corresponding configuration files for steady-state, Euler flow. These files are taken from the official SU2 6.2.0 source package. To run the testcase using<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# Download the NACA 0012 test case\r\nwget &quot;http:\/\/www.science-now.org\/giampaolo\/wp-content\/uploads\/2019\/07\/naca0012.tgz&quot;\r\n\r\n# Extract the file\r\ntar xfv naca0012.tgz\r\n\r\n# Go to the new directory\r\ncd naca0012\r\n\r\n# Run SU2 w\r\nPATH_TO_SU2\/SU2_CFD inv_NACA0012.cfg\r\n\r\n# Run SU2 with 2 processes - parallel version\r\nmpirun -n 2 PATH_TO_SU2\/SU2_CFD inv_NACA0012.cfg\r\n<\/pre>\n<p>Remember to replace PATH_TO_SU2 with the actual path to SU2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fancy doing some cool CFD with your Raspberry? Then, you must try the SU2 solver! Download here the pre-compiled version for Raspbian.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[37,38,39,36],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-aeronautical-engineering","tag-cfd","tag-raspberry-pi","tag-raspbian","tag-su2"],"_links":{"self":[{"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":20,"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/posts\/273\/revisions\/299"}],"wp:attachment":[{"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.science-now.org\/giampaolo\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}