{"id":920,"date":"2011-03-10T10:31:15","date_gmt":"2011-03-10T08:31:15","guid":{"rendered":"http:\/\/142.93.241.207\/?p=920"},"modified":"2011-03-15T20:36:51","modified_gmt":"2011-03-15T18:36:51","slug":"installing-openfoam-1-7-x-on-opensuse-11-4-2","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=920","title":{"rendered":"Installing OpenFOAM 1.7.x on openSUSE 11.4"},"content":{"rendered":"<p style=\"text-align: justify;\">The installation of OpenFOAM<sup>\u00ae<\/sup> 1.7.x on the freshly released <a href=\"http:\/\/www.opensuse.org\">openSUSE 11.4<\/a> is straighforward, however some care is required to have a working ParaView. The ThirdParty package provided with OpenFOAM ships ParaView 3.8.0, which does not successfully build with Qt 4.7.<\/p>\n<p style=\"text-align: justify;\">The steps for the installation on openSUSE 11.4 &#8211; 64 bit are summarized as follows:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Use YaST to install\n<ul>\n<li><a href=\"http:\/\/dl.dropbox.com\/u\/659842\/Blog\/OF\/YaSTPatterns.png\" target=\"_blank\">the C\/C++ development pattern in YaST<\/a><\/li>\n<li>cmake<\/li>\n<li>libqt4-devel (required to build paraview)<\/li>\n<li>libQtWebKit-devel (required to build paraview)<\/li>\n<li>libQtAssistantClient4<\/li>\n<li>flex<\/li>\n<li>git<\/li>\n<\/ul>\n<\/li>\n<li>Create a directory called OpenFOAM in your home directory\n<ul>\n<li>mkdir ~\/OpenFOAM<\/li>\n<\/ul>\n<\/li>\n<li>Enter the OpenFOAM directory\n<ul>\n<li>cd ~\/OpenFOAM<\/li>\n<\/ul>\n<\/li>\n<li>Download the source code: with the command:\n<ul>\n<li>git clone http:\/\/github.com\/OpenCFD\/OpenFOAM-1.7.x.git<\/li>\n<\/ul>\n<\/li>\n<li>Download both the OpenFOAM and ThirdParty packages from <a href=\"http:\/\/downloads.sourceforge.net\/foam\/ThirdParty-1.7.1.gtgz?use_mirror=mesh\">here<\/a> and save them in your ~\/OpenFOAM directory<\/li>\n<li>Extract the ThirdParty-1.7.1.gtgz package with the command\n<ul>\n<li>tar xzf  ThirdParty-1.7.1.gtgz<\/li>\n<\/ul>\n<\/li>\n<li>Rename the directory ThirdParty-1.7.1 to ThirdParty-1.7.x with:\n<ul>\n<li>mv ThirdParty-1.7.1\u00a0ThirdParty-1.7.x<\/li>\n<\/ul>\n<\/li>\n<li>Enter the directory ThirdParty-1.7.x<\/li>\n<li>Remove the directory paraview-3.8.0<\/li>\n<li>Download ParaView 3.10.0 from <a href=\"http:\/\/www.paraview.org\/files\/v3.10\/ParaView-3.10.0.zip\">here<\/a> and save it in the ThirdParty-1.7.x directory<\/li>\n<li>Extract the content of the paraview .zip file in the same directory<\/li>\n<li>Rename the directory ParaView-3.10.0 to paraview-3.10.0<\/li>\n<li>Open the file ~\/OpenFOAM\/OpenFOAM-1.7.x\/etc\/apps\/paraview3\/bashrc in a text editor<\/li>\n<li>Search for: ParaView_VERSION, and modify that line (should be line 54) so that it reads:\n<ul>\n<li>ParaView_VERSION=3.10.0<\/li>\n<\/ul>\n<\/li>\n<li>Save the file and exit the editor.<\/li>\n<li>Open your ~\/.bashrc file in a text editor and add the line:\n<ul>\n<li>. $HOME\/OpenFOAM\/OpenFOAM-1.7.x\/etc\/bashrc<\/li>\n<\/ul>\n<p>and source your ~\/.bashrc file with the command: source ~\/.bashrc<\/li>\n<li>Enter the OpenFOAM-1.7.0 directory with the command:\n<ul>\n<li>cd  $FOAM_INST_DIR\/OpenFOAM-1.7.x<\/li>\n<\/ul>\n<\/li>\n<li>Compile OpenFOAM with the command:\n<ul>\n<li>.\/Allwmake<\/li>\n<\/ul>\n<\/li>\n<li>Build Paraview with the following commands:\n<ul>\n<li>cd $WM_THIRD_PARTY_DIR<\/li>\n<li>.\/Allclean<\/li>\n<li>.\/makeParaView<\/li>\n<li>The build will fail at the Install stage because ParaViewLibraryDepends.cmake is not found. To solve this problem\n<ul>\n<li>cd ~\/OpenFOAM\/ThirdParty-1.7.x\/platforms\/build-linux64Gcc\/paraview-3.10.0\/<\/li>\n<li>Edit cmake_install.cmake<\/li>\n<li>Comment the line containing ParaViewLibraryDepends.cmake (comments are inserted with #)<\/li>\n<li>Save the file<\/li>\n<li>Execute: cd $WM_THIRD_PARTY_DIR<\/li>\n<li>Execute: .\/makeParaView -no-config -no-make -install<\/li>\n<li>This should install paraview properly for OpenFOAM<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Rebuild the PV3FoamReader as follows:\n<ul>\n<li>cd $FOAM_UTILITIES\/postProcessing\/graphics\/PV3FoamReader<\/li>\n<\/ul>\n<ul>\n<li>.\/Allwclean<\/li>\n<li>.\/Allwmake<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">At this point, OpenFOAM should be successfully built, together with paraview, and paraFoam should work properly. You can test it on the icoFoam tutorial.<\/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>The installation of OpenFOAM\u00ae 1.7.x on the freshly released openSUSE 11.4 is straighforward, however some care is required to have a working ParaView. The ThirdParty package provided with OpenFOAM ships ParaView 3.8.0, which does not successfully build with Qt 4.7. The steps for the installation on openSUSE 11.4 &#8211; 64 bit are summarized as follows: Use YaST to install the C\/C++ development pattern in YaST cmake libqt4-devel (required to build paraview) libQtWebKit-devel (required to build paraview) libQtAssistantClient4 flex git Create a directory called OpenFOAM in your home directory mkdir ~\/OpenFOAM Enter the OpenFOAM directory cd ~\/OpenFOAM Download the source code: with the command: git clone http:\/\/github.com\/OpenCFD\/OpenFOAM-1.7.x.git Download both the OpenFOAM and ThirdParty packages from here and save them in your ~\/OpenFOAM directory Extract the ThirdParty-1.7.1.gtgz package with the command tar xzf ThirdParty-1.7.1.gtgz Rename the directory ThirdParty-1.7.1 to ThirdParty-1.7.x with: mv ThirdParty-1.7.1\u00a0ThirdParty-1.7.x Enter the directory ThirdParty-1.7.x Remove the directory paraview-3.8.0 Download ParaView 3.10.0 from here and save it in the ThirdParty-1.7.x directory Extract the content of the paraview .zip file in the same directory Rename the directory ParaView-3.10.0 to paraview-3.10.0 Open the file ~\/OpenFOAM\/OpenFOAM-1.7.x\/etc\/apps\/paraview3\/bashrc in a text editor Search for: ParaView_VERSION, and modify that line (should be line 54) so that it reads: ParaView_VERSION=3.10.0 Save the file and exit the editor. Open your ~\/.bashrc file in a text editor and add the line: . $HOME\/OpenFOAM\/OpenFOAM-1.7.x\/etc\/bashrc and source your ~\/.bashrc file with the command: source ~\/.bashrc Enter the OpenFOAM-1.7.0 directory with the command: cd $FOAM_INST_DIR\/OpenFOAM-1.7.x Compile OpenFOAM with the command: .\/Allwmake Build Paraview with the following commands: cd $WM_THIRD_PARTY_DIR .\/Allclean .\/makeParaView The build will fail at the Install stage because ParaViewLibraryDepends.cmake is not found. To solve this problem cd ~\/OpenFOAM\/ThirdParty-1.7.x\/platforms\/build-linux64Gcc\/paraview-3.10.0\/ Edit cmake_install.cmake Comment the line containing ParaViewLibraryDepends.cmake (comments are inserted with #) Save the file Execute: cd $WM_THIRD_PARTY_DIR Execute: .\/makeParaView -no-config -no-make -install This should install paraview properly for OpenFOAM Rebuild the PV3FoamReader as follows: cd $FOAM_UTILITIES\/postProcessing\/graphics\/PV3FoamReader .\/Allwclean .\/Allwmake At this point, OpenFOAM should be successfully built, together with paraview, and paraFoam should work properly. You can test it on the icoFoam tutorial. 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,4,6,3],"tags":[117,114,105],"class_list":["post-920","post","type-post","status-publish","format-standard","hentry","category-cfd","category-linux","category-openfoam","category-opensuse","tag-openfoam","tag-opensuse","tag-paraview"],"_links":{"self":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/920","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=920"}],"version-history":[{"count":9,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions"}],"predecessor-version":[{"id":929,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions\/929"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}