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 :-)

Tagged with:
 

4 Responses to Installing OpenFOAM 1.5.x on OpenSUSE 11.1

  1. David Schmidt says:

    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

  2. [...] I suggest you have a look at Alberto Passalacqua’s tips and tricks for OpenFOAM on OpenSUSE on his website. There are also some threads on this forum on installation on (open)SUSE. Best regards, [...]

  3. carlos says:

    “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 says:

      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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>