OpenFOAM

Installing OpenFOAM 1.5.x on OpenSUSE 11.1

I have recently installed OpenFOAM 1.5.x following the procedure I explained in this post some time ago. With OpenSUSE 11.1, paraview and paraFOAM work properly after being recompiled following these simple instructions:

  • Install OpenSUSE 11.1, which can be downloaded from here.
  • Install qt4-devel: as root, type zypper in libqt4-devel
  • Download OpenFOAM 1.5 from git repository (See here)
  • Download the third-party packages from OpenCFD site
  • Source the bash configuration file for OpenFOAM, as usual.
  • Edit ~/OpenFOAM/ThirdParty/ParaView3.3-cvs/CMakeLists.txt and comment out the line:

MESSAGE(SEND_ERROR “Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).”)

  • Compile paraview and its reader following the instructions provided in OpenFOAM 1.5.x README file:
    • cd $FOAM_INST_DIR/ThirdParty
    • rm -rf ParaView3.3-cvs/platforms
    • buildParaView3.3-cvs
    • cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
    • ./Allwclean
    • ./Allwmake
  • Compile OpenFOAM 1.5 with ./Allwmake in its main directory

Enjoy 🙂

4 Comments

  • David Schmidt

    Thanks for the help! I’ll give it a try. I have one small correction to your post. The path to CMakeLists.txt is: (notice the /)

    ~/OpenFOAM/ThirdParty/ParaView3.3-cvs/CMakeLists.txt

    -DPS

  • carlos

    “Install qt4-devel: as root, type zypper in libqt4-devel”

    it gives error in every package:

    Failed to mount cd:///?devices=/dev/sr0 on /var/adm/mount/AP_0x00000001: No medium found (mount: No medium found on /dev/sr0)

    • Alberto

      Hi,

      that’s because you have the installation DVD among the installation sources in YaST. If the DVD is present in the list and not inserted in the drive, that error is generated due to its higher priority with respect to other installation sources.

      You can insert the DVD or disable it in YaST -> Software -> Installation sources.

      Best,
      Alberto