{"id":646,"date":"2010-06-27T09:12:36","date_gmt":"2010-06-27T07:12:36","guid":{"rendered":"http:\/\/142.93.241.207\/?p=646"},"modified":"2010-12-23T14:11:59","modified_gmt":"2010-12-23T12:11:59","slug":"installing-openfoam-1-7-on-opensuse-11-2-and-vtk-reader","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=646","title":{"rendered":"Installing OpenFOAM 1.7 on openSUSE 11.2"},"content":{"rendered":"<p style=\"text-align: justify;\">Installing  <a href=\"http:\/\/www.opencfd.co.uk\/openfoam\/\" target=\"_blank\">OpenFOAM<sup>\u00ae<\/sup><\/a> 1.7 on openSUSE 11.2 is very similar to installing OpenFOAM 1.6.x, however some differences deserve to be noticed. The steps of  the procedure are the following:<\/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>flex<\/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 both the OpenFOAM and ThirdParty packages from <a href=\"http:\/\/openfoam.com\/download\/source.php\" target=\"_blank\">here<\/a> and save them in your ~\/OpenFOAM directory<\/li>\n<li>Extract the\u00a0OpenFOAM-1.7.0.gtgz package with the command: tar xzf OpenFOAM-1.7.0.gtgz<\/li>\n<li>Extract the ThirdParty-1.7.0.gtgz package with the command: tar xzf ThirdParty-1.7.0.gtgz<\/li>\n<li>Open your ~\/.bashrc file in a text editor and add the line:\n<ul>\n<li>. $HOME\/OpenFOAM\/OpenFOAM-1.7.0\/etc\/bashrc<\/li>\n<\/ul>\n<p>and source your ~\/.bashrc file with the command: source ~\/.bashrc<\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>Enter the OpenFOAM-1.7.0 directory with the command: cd $FOAM_INST_DIR\/OpenFOAM-1.7.0<\/li>\n<li>Compile OpenFOAM with the command: .\/Allwmake<\/li>\n<li>Rebuild Paraview with the following commands:\n<ul>\n<li>cd $WM_THIRD_PARTY_DIR<\/li>\n<li>.\/Allclean<\/li>\n<li>.\/makeParaView<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>Rebuild the PV3FoamReader as follows:\n<ul>\n<li>cd $FOAM_UTILITIES\/postProcessing\/graphicsPV3FoamReader<\/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;\">This  will rebuild the whole OpenFOAM and paraview, and provide you a fully  working installation. However, the paraFoam does not work properly on my installation, so I compiled once again the very powerful and more flexible native reader available on the OpenFOAM wiki, which also allows easy post-processing of decomposed cases.<\/p>\n<p style=\"text-align: justify;\">The instructions to compile the reader are as follows:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Download the SVN version of the reader, required for Paraview 3.8 (you need the svn package installed):\n<ul>\n<li>svn co https:\/\/of-interfaces.svn.sourceforge.net\/svnroot\/of-interfaces\/trunk\/vtkPOpenFOAMReader<\/li>\n<\/ul>\n<\/li>\n<li>I will assume you saved it in  ~\/vtkPOpenFOAMReader<\/li>\n<li>Create a directory where to build the reader. For convenience I will  call it ~\/vtkReader.<\/li>\n<li>Open a terminal and enter that directory\n<ul>\n<li>cd vtkReader.<\/li>\n<\/ul>\n<\/li>\n<li>Type the command:\n<ul>\n<li>ccmake ~\/vtkPOpenFOAMReader<\/li>\n<\/ul>\n<\/li>\n<li>If OpenFOAM is properly configured, the build configuration will be written.<\/li>\n<li>In the same terminal execute the commands\n<ul>\n<li>make<\/li>\n<li>make install<\/li>\n<\/ul>\n<\/li>\n<li>Copy the file pvFoam in ~\/vtkPOpenFOAMReader\/BSD\/ into  your ~\/OpenFOAM\/OpenFOAM-1.7.0\/bin directory, to be able to run paraview with pvFoam, exactly as done with paraFoam.<\/li>\n<li>Refer to ~\/vtkPOpenFOAMReader\/readerPanel.pdf for  details on the reader interface.<\/li>\n<li>Note that both the temporary directories vtkReader and vtkPOpenFOAMReader can be removed.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Enjoy   \ud83d\ude42<\/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.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing OpenFOAM\u00ae 1.7 on openSUSE 11.2 is very similar to installing OpenFOAM 1.6.x, however some differences deserve to be noticed. The steps of the procedure are the following: Use YaST to install the C\/C++ development pattern in YaST cmake libqt4-devel (required to build paraview) flex Create a directory called OpenFOAM in your home directory mkdir ~\/OpenFOAM Enter the OpenFOAM directory cd ~\/OpenFOAM Download both the OpenFOAM and ThirdParty packages from here and save them in your ~\/OpenFOAM directory Extract the\u00a0OpenFOAM-1.7.0.gtgz package with the command: tar xzf OpenFOAM-1.7.0.gtgz Extract the ThirdParty-1.7.0.gtgz package with the command: tar xzf ThirdParty-1.7.0.gtgz Open your ~\/.bashrc file in a text editor and add the line: . $HOME\/OpenFOAM\/OpenFOAM-1.7.0\/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.0 Compile OpenFOAM with the command: .\/Allwmake Rebuild Paraview with the following commands: cd $WM_THIRD_PARTY_DIR .\/Allclean .\/makeParaView Rebuild the PV3FoamReader as follows: cd $FOAM_UTILITIES\/postProcessing\/graphicsPV3FoamReader .\/Allwclean .\/Allwmake This will rebuild the whole OpenFOAM and paraview, and provide you a fully working installation. However, the paraFoam does not work properly on my installation, so I compiled once again the very powerful and more flexible native reader available on the OpenFOAM wiki, which also allows easy post-processing of decomposed cases. The instructions to compile the reader are as follows: Download the SVN version of the reader, required for Paraview 3.8 (you need the svn package installed): svn co https:\/\/of-interfaces.svn.sourceforge.net\/svnroot\/of-interfaces\/trunk\/vtkPOpenFOAMReader I will assume you saved it in ~\/vtkPOpenFOAMReader Create a directory where to build the reader. For convenience I will call it ~\/vtkReader. Open a terminal and enter that directory cd vtkReader. Type the command: ccmake ~\/vtkPOpenFOAMReader If OpenFOAM is properly configured, the build configuration will be written. In the same terminal execute the commands make make install Copy the file pvFoam in ~\/vtkPOpenFOAMReader\/BSD\/ into your ~\/OpenFOAM\/OpenFOAM-1.7.0\/bin directory, to be able to run paraview with pvFoam, exactly as done with paraFoam. Refer to ~\/vtkPOpenFOAMReader\/readerPanel.pdf for details on the reader interface. Note that both the temporary directories vtkReader and vtkPOpenFOAMReader can be removed. 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-646","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\/646","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=646"}],"version-history":[{"count":8,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/646\/revisions"}],"predecessor-version":[{"id":651,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/646\/revisions\/651"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}