{"id":973,"date":"2011-06-17T15:00:58","date_gmt":"2011-06-17T13:00:58","guid":{"rendered":"http:\/\/142.93.241.207\/?p=973"},"modified":"2011-10-03T17:11:24","modified_gmt":"2011-10-03T15:11:24","slug":"openfoam-2-0-x-and-opensuse-11-4","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=973","title":{"rendered":"OpenFOAM 2.0.x and openSUSE 11.4"},"content":{"rendered":"<p style=\"text-align: justify;\">OpenCFD<sup>\u00ae<\/sup> released OpenFOAM<sup>\u00ae<\/sup> 2.0.0, which brings many <a href=\"http:\/\/www.openfoam.com\/version2.0.0\/\">developments and improvements<\/a>. In parallel to the release of OpenFOAM 2.0.0, the git repository was updated to 2.0.x. Usually I write a detailed procedure to explain the installation of OpenFOAM on openSUSE, however with OpenFOAM 2.0.0 this is not necessary anymore. Only a few minor operations have to be made to be able to use gcc 4.5 and the version of openMPI provided by openSUSE 11.4 (openmpi-1.2.8).<\/p>\n<p style=\"text-align: justify;\">Assuming that OpenFOAM will be installed in the user&#8217;s home directory, the procedure to install OpenFOAM 2.0.x (git version) on openSUSE 11.4 is then as follows:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Install the C\/C++ development pattern:\n<ul>\n<li>\n<pre>zypper\u00a0install\u00a0-t\u00a0pattern\u00a0devel_C_C++<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Install other dependencies:\n<ul>\n<li>\n<pre>zypper\u00a0install\u00a0cmake\u00a0libqt4-devel\u00a0gnuplot openmpi openmpi-devel<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Check that openmpi 1.2.8 is selected as default with:\n<ul>\n<li>\n<pre>mpi-selector --list<\/pre>\n<\/li>\n<li>The output should read: &#8220;openmpi-1.2.8&#8221;. If not, use mpi-selector to configure the default version of openmpi (this can be done for the individual user or system-wide, acquiring administrative rights)<\/li>\n<\/ul>\n<\/li>\n<li>Create the OpenFOAM directory in your home directory:\n<ul>\n<li>\n<pre>mkdir ~\/OpenFOAM<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Move to the OpenFOAM directory:\n<ul>\n<li>\n<pre>cd ~\/OpenFOAM<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Download the source code from the git repository:\n<ul>\n<li>\n<pre>git clone http:\/\/github.com\/OpenFOAM\/OpenFOAM-2.0.x.git<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Download the ThirdParty package from <a href=\"http:\/\/downloads.sourceforge.net\/foam\/ThirdParty-2.0.0.gtgz?use_mirror=mesh\">here<\/a>(command on a single line) :\n<ul>\n<li style=\"text-align: left;\">wget -c http:\/\/downloads.sourceforge.net\/foam\/ThirdParty-2.0.1.gtgz?use_mirror=mesh -O ThirdParty-2.0.1.gtgz<\/li>\n<\/ul>\n<\/li>\n<li>Extract the ThirdParty package and rename it as follows:\n<ul>\n<li>\n<pre>tar xzf ThirdParty-2.0.1.gtgz<\/pre>\n<\/li>\n<li>\n<pre>mv ThirdParty-2.0.1 ThirdParty-2.0.x<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Add <a href=\"http:\/\/dl.dropbox.com\/u\/659842\/Blog\/OF\/OF_2_0_0\/prefs.sh\">this <\/a>prefs.sh file to the directory:\n<ul>\n<li>\n<pre>~\/OpenFOAM\/OpenFOAM-2.0.x\/etc\/<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Add the following line to your ~\/.bashrc file:\n<ul>\n<li>[Optional for multi-core compilation]: export WM_NCOMPPROCS=4<\/li>\n<li>\n<pre>source $HOME\/OpenFOAM\/OpenFOAM-2.0.x\/etc\/bashrc<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>Open a new terminal and execute this sequence of commands to compile the whole OpenFOAM suite\n<ul>\n<li>\n<pre>source ~\/.bashrc<\/pre>\n<\/li>\n<li>\n<pre>cd ~\/OpenFOAM\/OpenFOAM-2.0.x<\/pre>\n<\/li>\n<li>\n<pre>.\/Allwmake<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>To build paraview and its reader:\n<ul>\n<li>\n<pre>cd ~\/OpenFOAM\/ThirdParty-2.0.x<\/pre>\n<\/li>\n<li>\n<pre>.\/makeParaView<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<pre>cd $FOAM_UTILITIES\/postProcessing\/graphics\/PV3Readers\/<\/pre>\n<\/li>\n<li>\n<pre>.\/Allwclean<\/pre>\n<\/li>\n<li>\n<pre>.\/Allwmake<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">At this point OpenFOAM 2.0.x should be fully functional on your openSUSE 11.4. The installation can be updated, as usual, with:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<pre>cd ~\/OpenFOAM\/OpenFOAM-2.0.x<\/pre>\n<\/li>\n<li>\n<pre>git pull<\/pre>\n<\/li>\n<li>\n<pre>wcleanLnIncludeAll<\/pre>\n<\/li>\n<li>\n<pre>.\/Allwmake<\/pre>\n<\/li>\n<\/ul>\n<p>Note: If you have an accelerated video card, like <a href=\"http:\/\/en.opensuse.org\/SDB:NVIDIA_drivers\">nVidia<\/a> or <a href=\"http:\/\/en.opensuse.org\/SDB:ATI_drivers\">ATI<\/a>, it is strongly recommended to install the corresponding proprietary driver.<\/p>\n<p>Enjoy \ud83d\ude42<\/p>\n<p>P.S. Thanks Bruno for the suggestion on multi-core compilation!<\/p>\n<p style=\"text-align: justify;\"><em>This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM\u00ae and OpenCFD\u00ae trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCFD\u00ae released OpenFOAM\u00ae 2.0.0, which brings many developments and improvements. In parallel to the release of OpenFOAM 2.0.0, the git repository was updated to 2.0.x. Usually I write a detailed procedure to explain the installation of OpenFOAM on openSUSE, however with OpenFOAM 2.0.0 this is not necessary anymore. Only a few minor operations have to be made to be able to use gcc 4.5 and the version of openMPI provided by openSUSE 11.4 (openmpi-1.2.8). Assuming that OpenFOAM will be installed in the user&#8217;s home directory, the procedure to install OpenFOAM 2.0.x (git version) on openSUSE 11.4 is then as follows: Install the C\/C++ development pattern: zypper\u00a0install\u00a0-t\u00a0pattern\u00a0devel_C_C++ Install other dependencies: zypper\u00a0install\u00a0cmake\u00a0libqt4-devel\u00a0gnuplot openmpi openmpi-devel Check that openmpi 1.2.8 is selected as default with: mpi-selector &#8211;list The output should read: &#8220;openmpi-1.2.8&#8221;. If not, use mpi-selector to configure the default version of openmpi (this can be done for the individual user or system-wide, acquiring administrative rights) Create the OpenFOAM directory in your home directory: mkdir ~\/OpenFOAM Move to the OpenFOAM directory: cd ~\/OpenFOAM Download the source code from the git repository: git clone http:\/\/github.com\/OpenFOAM\/OpenFOAM-2.0.x.git Download the ThirdParty package from here(command on a single line) : wget -c http:\/\/downloads.sourceforge.net\/foam\/ThirdParty-2.0.1.gtgz?use_mirror=mesh -O ThirdParty-2.0.1.gtgz Extract the ThirdParty package and rename it as follows: tar xzf ThirdParty-2.0.1.gtgz mv ThirdParty-2.0.1 ThirdParty-2.0.x Add this prefs.sh file to the directory: ~\/OpenFOAM\/OpenFOAM-2.0.x\/etc\/ Add the following line to your ~\/.bashrc file: [Optional for multi-core compilation]: export WM_NCOMPPROCS=4 source $HOME\/OpenFOAM\/OpenFOAM-2.0.x\/etc\/bashrc Open a new terminal and execute this sequence of commands to compile the whole OpenFOAM suite source ~\/.bashrc cd ~\/OpenFOAM\/OpenFOAM-2.0.x .\/Allwmake To build paraview and its reader: cd ~\/OpenFOAM\/ThirdParty-2.0.x .\/makeParaView cd $FOAM_UTILITIES\/postProcessing\/graphics\/PV3Readers\/ .\/Allwclean .\/Allwmake At this point OpenFOAM 2.0.x should be fully functional on your openSUSE 11.4. The installation can be updated, as usual, with: cd ~\/OpenFOAM\/OpenFOAM-2.0.x git pull wcleanLnIncludeAll .\/Allwmake Note: If you have an accelerated video card, like nVidia or ATI, it is strongly recommended to install the corresponding proprietary driver. Enjoy \ud83d\ude42 P.S. Thanks Bruno for the suggestion on multi-core compilation! This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM\u00ae and OpenCFD\u00ae trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"class_list":["post-973","post","type-post","status-publish","format-standard","hentry","category-cfd","category-openfoam"],"_links":{"self":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=973"}],"version-history":[{"count":46,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions"}],"predecessor-version":[{"id":1077,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions\/1077"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}