{"id":387,"date":"2009-08-14T13:20:41","date_gmt":"2009-08-14T11:20:41","guid":{"rendered":"http:\/\/142.93.241.207\/?p=387"},"modified":"2009-11-26T07:25:53","modified_gmt":"2009-11-26T05:25:53","slug":"installing-openfoam-1-6-x-and-keeping-it-up-to-date","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=387","title":{"rendered":"Installing OpenFOAM 1.6.x and keeping it up to date"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.opencfd.co.uk\/index.html\" target=\"_blank\">OpenCFD<\/a><sup>TM<\/sup> regularly releases updates for OpenFOAM<sup>TM<\/sup> using a GIT repository, which can be conveniently used both for a fresh installation and to keep your current OpenFOAM installation up to date.<\/p>\n<p style=\"text-align: justify;\"><strong>First installation<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>Create a directory called OpenFOAM in your home directory: mkdir ~\/OpenFOAM<\/li>\n<li>Enter the OpenFOAM directory: cd ~\/OpenFOAM<\/li>\n<li>Download the OpenFOAM sources from the GIT repository: git clone git:\/\/repo.or.cz\/OpenFOAM-1.6.x.git<\/li>\n<li>Download the third party packages from the OpenCFD website. If you are using a 64-bit system, you need to download also the 32-bit version of the third party package, containing cmake.<\/li>\n<li>Extract the third party packages corresponding to your architecture (32 or 64 bit) in the ~\/OpenFOAM directory. If you use a 64 bit system, extract the 32-bit version of the third party packages in another directory from ~\/OpenFOAM, and move the cmake directory to the ThirdParty directory into your ~\/OpenFOAM directory.<\/li>\n<li>Create a symbolic link called ThirdParty-1.6.x pointing to ThirdParty-1.6:\u00a0 ln -s ~\/OpenFOAM\/ThirdParty-1.6\/ ~\/OpenFOAM\/ThirdParty-1.6.x<\/li>\n<li>Open your ~\/.bashrc file in a text editor and add the line:\u00a0 . $HOME\/OpenFOAM\/OpenFOAM-1.6.x\/etc\/bashrc<\/li>\n<li>Enter the ThirdParty-1.6.x directory: cd ~\/OpenFOAM\/ThirdParty-1.6.x<\/li>\n<li>Rebuild Paraview with the following commands (you need qt4 development libraries installed in your system. Check the README file coming with OpenFOAM for a list of working versions)\n<ul>\n<li>rm -rf paraview-3.6.1\/platforms<\/li>\n<li>.\/makeParaView<\/li>\n<\/ul>\n<\/li>\n<li>Enter the ~\/OpenFOAM\/OpenFOAM-1.6.x directory: cd ~\/OpenFOAM\/OpenFOAM-1.6.x<\/li>\n<li>Rebuild OpenFOAM typing .\/Allwmake<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Once OpenFOAM 1.6.x is built for the first time, you can easily keep it up to date using GIT.<\/p>\n<p style=\"text-align: justify;\"><strong>Update an existing installation of OpenFOAM 1.6.x.<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>Enter the ~\/OpenFOAM directory: cd ~\/OpenFOAM<\/li>\n<li>Check for updates: git pull<\/li>\n<li>If there are updates, rebuild OpenFOAM as follows:\n<ul>\n<li>cd ~\/OpenFOAM\/OpenFOAM-1.6.x<\/li>\n<li>.\/Allwmake<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">These operations should be repeated often, in order to keep an up to date installation of OpenFOAM and obtain the latest bug fixes.<\/p>\n<p style=\"text-align: justify;\">Enjoy \ud83d\ude42<\/p>\n<p style=\"text-align: justify;\"><span>This offering is not<\/span> <span>approved<\/span> <span>or endorsed by OpenCFD Limited, the producer of the OpenFOAM<\/span> <span>software  and  owner  of  the  OPENFOAM\u00ae<\/span><span> and<\/span> <span>OpenCFD\u00ae<\/span><span> trade marks.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCFDTM regularly releases updates for OpenFOAMTM using a GIT repository, which can be conveniently used both for a fresh installation and to keep your current OpenFOAM installation up to date. First installation Create a directory called OpenFOAM in your home directory: mkdir ~\/OpenFOAM Enter the OpenFOAM directory: cd ~\/OpenFOAM Download the OpenFOAM sources from the GIT repository: git clone git:\/\/repo.or.cz\/OpenFOAM-1.6.x.git Download the third party packages from the OpenCFD website. If you are using a 64-bit system, you need to download also the 32-bit version of the third party package, containing cmake. Extract the third party packages corresponding to your architecture (32 or 64 bit) in the ~\/OpenFOAM directory. If you use a 64 bit system, extract the 32-bit version of the third party packages in another directory from ~\/OpenFOAM, and move the cmake directory to the ThirdParty directory into your ~\/OpenFOAM directory. Create a symbolic link called ThirdParty-1.6.x pointing to ThirdParty-1.6:\u00a0 ln -s ~\/OpenFOAM\/ThirdParty-1.6\/ ~\/OpenFOAM\/ThirdParty-1.6.x Open your ~\/.bashrc file in a text editor and add the line:\u00a0 . $HOME\/OpenFOAM\/OpenFOAM-1.6.x\/etc\/bashrc Enter the ThirdParty-1.6.x directory: cd ~\/OpenFOAM\/ThirdParty-1.6.x Rebuild Paraview with the following commands (you need qt4 development libraries installed in your system. Check the README file coming with OpenFOAM for a list of working versions) rm -rf paraview-3.6.1\/platforms .\/makeParaView Enter the ~\/OpenFOAM\/OpenFOAM-1.6.x directory: cd ~\/OpenFOAM\/OpenFOAM-1.6.x Rebuild OpenFOAM typing .\/Allwmake Once OpenFOAM 1.6.x is built for the first time, you can easily keep it up to date using GIT. Update an existing installation of OpenFOAM 1.6.x. Enter the ~\/OpenFOAM directory: cd ~\/OpenFOAM Check for updates: git pull If there are updates, rebuild OpenFOAM as follows: cd ~\/OpenFOAM\/OpenFOAM-1.6.x .\/Allwmake These operations should be repeated often, in order to keep an up to date installation of OpenFOAM and obtain the latest bug fixes. Enjoy \ud83d\ude42 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.<\/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-387","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\/387","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=387"}],"version-history":[{"count":11,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions\/530"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}