Skip to content


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

Posted in OpenFOAM.

Tagged with .


4 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

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

  3. 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

Continuing the Discussion

  1. Problem in Installation of Open Foam -- CFD Online Discussion Forums linked to this post on May 28, 2009

    [...] 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, [...]



Some HTML is OK

or, reply to this post via trackback.