Go Back   TechArena Community > Software > Tips & Tweaks
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to install OpenFOAM on SUSE 11.4

Tips & Tweaks


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-06-2012
Member
 
Join Date: Apr 2008
Posts: 395
How to install OpenFOAM on SUSE 11.4
  

Hey friends I am starting this thread for sharing installation of OpenFOAM on SUSE 11.4. The installation is quite easy if you follow the below steps properly. The below steps are for openSUSE 11.4 – 64 bit:
  • First you will have to install cmake, libqt4-devel, libQtWebKit-devel, libQtAssistantClient4, flex, git using C/C++ development pattern in YaST. So when you are ready with the same then you can proceed further.
  • Create OpenFOAM naming directory in your home directory using the below command:
    mkdir ~/OpenFOAM
  • Now enter the OpenFOAM directory using the below command:
    cd ~/OpenFOAM
  • After that download the source code using the below command:
    git clone http://github.com/OpenCFD/OpenFOAM-1.7.x.git
  • Now you can download OpenFOAM along with the ThirdParty packages from here after downloading the same you have to save it to your ~/OpenFOAM directory.
  • You can extract ThirdParty-1.7.1.gtgz package using below command:
    tar xzf ThirdParty-1.7.1.gtgz
  • Now change the name of the ThirdParty-1.7.1 directory to ThirdParty-1.7.x using below command:
    mv ThirdParty-1.7.1 ThirdParty-1.7.x
  • Once you are done with the same you will have to Enter ThirdParty-1.7.x directory and Remove paraview-3.8.0 directory but before that you need to download ParaView 3.10.0 and save it in ThirdParty-1.7.x directory.
  • Now after saving it just Extract paraview .zip file in same directory and change its name to paraview-3.10.0. You might wonder what has been changes in that case I will like to inform you only the case of the letter has been changed, I mean ParaView 3.10.0 directory has been changed to paraview-3.10.0.
  • When you are done till here then Open ~/OpenFOAM/OpenFOAM-1.7.x/etc/apps/paraview3/bashrc in text editor and check out for “ParaView_VERSION. When you spot it then just change it to ParaView_VERSION=3.10.0, make sure that you are saving the changes before exiting the editor.
  • After that Open ~/.bashrc in text editor and add the below line and also source your ~/.bashrc file using “source ~/.bashrc” command.
    . $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc
  • You can now enter OpenFOAM-1.7.0 directory using the below command:
    cd $FOAM_INST_DIR/OpenFOAM-1.7.x
  • And compile it using the below command:
    ./Allwmake
  • Now you just have to Build Paraview using the below commands:
    cd $WM_THIRD_PARTY_DIR
    ./Allclean
    ./makeParaView
  • If at all you get an error message saying “The build will fail at the Install stage because ParaViewLibraryDepends.cmake is not found” then use the below commands:
    cd ~/OpenFOAM/ThirdParty-1.7.x/platforms/build-linux64Gcc/paraview-3.10.0/
    Edit cmake_install.cmake
    ( you should Comment ParaViewLibraryDepends.cmake inserting #)
  • After making the above changes just Save it and enter the below commands:
    Execute: cd $WM_THIRD_PARTY_DIR
    Execute: ./makeParaView -no-config -no-make –install

    Now the paraview will get installed for OpenFOAM.

You can Rebuild PV3FoamReader using the below command:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
./Allwclean
./Allwmake


So after all this OpenFOAM will get installed successfully along with paraview as well as paraFoam. If anyone faces any further issues with the above solution then they can feel free to ask.

Reply With Quote
  #2  
Old 22-06-2012
Member
 
Join Date: May 2012
Posts: 89
Re: How to install OpenFOAM on SUSE 11.4

That was quite good and I have followed the same and have installed openSUSE 11.4 along with KDE but now If I am not commenting “set foamInstall = $HOME/$WM_PROJECT” of .cshrc file then I am not able to log in. I am not having any issues when I am not commenting the same, I don’t think I have missed out anything from the above steps. Are you aware of this issue?? Further help regarding the same will be appreciative.
Reply With Quote
  #3  
Old 22-06-2012
Member
 
Join Date: Nov 2011
Posts: 342
Re: How to install OpenFOAM on SUSE 11.4

I have tried out the same and I have not faced any issue like that, since you have mentioned that you have installed openSUSE 11.4 along with KDE, I thinks that’s what might be causing the issue. I will suggest you to try and install openSUSE 11.4. Along with OpenFOAM-1.7.x and ThirdParty-1.7.x and let me know if that is working out good for you.
Reply With Quote
Reply

  TechArena Community > Software > Tips & Tweaks
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to install OpenFOAM on SUSE 11.4"
Thread Thread Starter Forum Replies Last Post
How to Install SuSE Linux 9.0 Professional RedZot Guides & Tutorials 6 04-08-2010 04:05 AM
Is there any need to install LAN driver of MFSYS25 for SUSE 11? Amuda Networking & Security 6 26-06-2010 10:42 PM
Install SuSE from USB drive SusE-SoNi Operating Systems 1 07-11-2009 07:43 AM
How to install yahoo messenger on SUSE juugal Windows Software 2 22-04-2009 07:09 PM
Unable to install Firefox 2 on SUSE Linux 10 Santanio Operating Systems 1 09-01-2009 08:17 AM


All times are GMT +5.5. The time now is 03:03 PM.