{"id":112,"date":"2008-08-26T11:43:24","date_gmt":"2008-08-26T09:43:24","guid":{"rendered":"http:\/\/142.93.241.207\/?p=112"},"modified":"2009-11-26T07:21:33","modified_gmt":"2009-11-26T05:21:33","slug":"opencfd-releases-patches-for-openfoam-15","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=112","title":{"rendered":"OpenCFD releases patched OpenFOAM 1.5"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.opencfd.co.uk\/\" target=\"_blank\">OpenCFD<\/a> released a patched version of OpenFOAM 1.5 today, via a git repository. You can find the official announcement <a href=\"http:\/\/openfoam.cfd-online.com\/cgi-bin\/forum\/show.cgi?4\/12\" target=\"_blank\">here<\/a>.<\/p>\n<p style=\"text-align: justify;\">The procedure to install it on openSUSE 11.0 is straightforward:<\/p>\n<ul style=\"text-align: justify;\">\n<li> Be sure to have git installed. You can check it with<\/li>\n<\/ul>\n<pre style=\"padding-left: 60px; text-align: justify;\">rpm -qa git<\/pre>\n<p style=\"padding-left: 30px;\">If it is not installed, you can easily install it with the command (as root):<\/p>\n<pre style=\"padding-left: 60px; text-align: justify;\">zypper in git<\/pre>\n<p style=\"padding-left: 30px;\">provided you have the OSS repository in your repository list (check with <em>zypper lr<\/em>, and eventually add it using <em>Yast -&gt; Software -&gt; Installation sources<\/em>).<\/p>\n<ul style=\"text-align: justify;\">\n<li>As a user, download the OpenFOAM patched source code using the command:<\/li>\n<\/ul>\n<pre style=\"padding-left: 60px; text-align: justify;\">git clone git:\/\/repo.or.cz\/OpenFOAM-1.5.x.git<\/pre>\n<p style=\"padding-left: 30px; text-align: justify;\">This will create a directory called <em>OpenFOAM-1.5.x<\/em>, containing the source code.<span style=\"font-size: x-small; font-family: Verdana,Arial,Helvetica;\"><br \/>\n<\/span><\/p>\n<ul style=\"text-align: justify;\">\n<li>Create a directory in your home called <em>OpenFOAM<\/em>, and copy the OpenFOAM-1.5.x directory into it.<span style=\"font-size: x-small;\"><span style=\"font-family: Verdana,Arial,Helvetica;\"><br \/>\n<\/span><\/span><\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>Copy the <em>ThirdParty <\/em>directory containing all the third party packages provided in the release from OpenCFD into the <em>OpenFOAM<\/em> directory in your home.<\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>Edit your <em>.bashrc<\/em> file in your home directory, so that it contains the line:<\/li>\n<\/ul>\n<pre style=\"padding-left: 60px; text-align: justify;\">. $HOME\/OpenFOAM\/OpenFOAM-1.5.x\/etc\/bashrc<\/pre>\n<\/p>\n<p style=\"text-align: justify;\">\n<p style=\"padding-left: 30px; text-align: justify;\">and remove previous OpenFOAM settings if present.<\/p>\n<ul style=\"text-align: justify;\">\n<li>Open a terminal and move to <em>~\/OpenFOAM\/OpenFOAM-1.5.x.<\/em><\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>Run the <em>.\/Allwmake<\/em> script to proceed with the compilation process.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">When future updates are released, it will be possible to download them using the command:<\/p>\n<pre style=\"padding-left: 30px; text-align: justify;\">git pull<\/pre>\n<p style=\"text-align: justify;\">and compiling the source again.<\/p>\n<p style=\"text-align: justify;\"><strong>Note <\/strong>openSUSE 11.0 comes with Qt 4.4.0. To successfully compile Paraview and paraFoam reader for Paraview, it is necessary to comment the following line out in the <em>~\/OpenFOAM\/ThirdParty\/ParaView3.3-cvs\/CMakeLists.txt<\/em> file:<\/p>\n<p style=\"text-align: justify;\">\n<p style=\"padding-left: 30px; text-align: justify;\">MESSAGE(SEND_ERROR &#8220;Qt ${QTVERSION} not supported.\u00a0 Please use Qt 4.3 (you may need to clean your dirtied cache).&#8221;)<\/p>\n<p style=\"padding-left: 30px; text-align: justify;\">\n<p style=\"text-align: justify;\">as explained in <a href=\"http:\/\/openfoam.cfd-online.com\/forum\/messages\/126\/8315.html?1219742366\" target=\"_blank\">this<\/a> discussion on the OpenFOAM discussion board.<\/p>\n<p style=\"text-align: justify;\">Enjoy \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCFD released a patched version of OpenFOAM 1.5 today, via a git repository. You can find the official announcement here. The procedure to install it on openSUSE 11.0 is straightforward: Be sure to have git installed. You can check it with rpm -qa git If it is not installed, you can easily install it with the command (as root): zypper in git provided you have the OSS repository in your repository list (check with zypper lr, and eventually add it using Yast -&gt; Software -&gt; Installation sources). As a user, download the OpenFOAM patched source code using the command: git clone git:\/\/repo.or.cz\/OpenFOAM-1.5.x.git This will create a directory called OpenFOAM-1.5.x, containing the source code. Create a directory in your home called OpenFOAM, and copy the OpenFOAM-1.5.x directory into it. Copy the ThirdParty directory containing all the third party packages provided in the release from OpenCFD into the OpenFOAM directory in your home. Edit your .bashrc file in your home directory, so that it contains the line: . $HOME\/OpenFOAM\/OpenFOAM-1.5.x\/etc\/bashrc and remove previous OpenFOAM settings if present. Open a terminal and move to ~\/OpenFOAM\/OpenFOAM-1.5.x. Run the .\/Allwmake script to proceed with the compilation process. When future updates are released, it will be possible to download them using the command: git pull and compiling the source again. Note openSUSE 11.0 comes with Qt 4.4.0. To successfully compile Paraview and paraFoam reader for Paraview, it is necessary to comment the following line out in the ~\/OpenFOAM\/ThirdParty\/ParaView3.3-cvs\/CMakeLists.txt file: MESSAGE(SEND_ERROR &#8220;Qt ${QTVERSION} not supported.\u00a0 Please use Qt 4.3 (you may need to clean your dirtied cache).&#8221;) as explained in this discussion on the OpenFOAM discussion board. Enjoy \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[54,117,55],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-openfoam","tag-opencfd","tag-openfoam","tag-patch"],"_links":{"self":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/112","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=112"}],"version-history":[{"count":23,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions\/522"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}