Package Details: openfoam-org 10.20230119-1

Git Clone URL: (read-only, click to copy)
Package Base: openfoam
Description: The open source CFD toolbox (
Upstream URL:
Licenses: GPL
Conflicts: openfoam-com
Provides: openfoam
Submitter: None
Maintainer: petronny (AutoUpdateBot)
Last Packager: AutoUpdateBot
Votes: 57
Popularity: 0.57
First Submitted: 2009-07-02 09:16 (UTC)
Last Updated: 2023-01-20 07:56 (UTC)

Pinned Comments

petronny commented on 2020-08-04 08:36 (UTC)

Pre-built binaries of this package and its dependencies can be found in the arch4edu repository.

Latest Comments

1 2 3 4 5 6 .. 27 Next › Last »

travonz commented on 2022-05-29 07:57 (UTC)

You are right @carlosal1015 ! Both OpenFOAM 8 and 9 works when compiling with gcc11, and both face issues when compiled with gcc12. Problem solved, thanks a lot for the hint !

carlosal1015 commented on 2022-05-29 03:27 (UTC) (edited on 2022-05-29 03:30 (UTC) by carlosal1015)

Is right @travonz, possible related with GCC12

I tried to have the same message error with tutorials from /opt/OpenFoam/.../tutorials, but I had this message (see here) with this code example.

Side note: This is related with openfoam-com, not tested yet with openfoam-org.

travonz commented on 2022-05-29 02:41 (UTC)

Hello, I have just upgraded from 8 to 9 and face a strange issue. Running motorbike tutorial, simpleFoam crashes immediately producing the following message:

--> FOAM FATAL IO ERROR: error in IOstream "OSHA1stream.sinkFile_" for operation Ostream& operator<<(Ostream&, const char) file: OSHA1stream.sinkFile_ at line 0. From function virtual bool Foam::IOstream::check(const char*) const in file db/IOstreams/IOstreams/IOstream.C at line 96.

If I comment out functions { #include "streamlines" #include "cuttingPlane" #include "forceCoeffs"} in controlDict file, it works well.

I have installed everything properly from AUR repo. I have tryied to manually install OpenFOAM 9 and Thirdpary and get the same issue.

Has anyone experienced the same issue ?

gpettinello commented on 2021-10-09 20:48 (UTC)

@petronny Please could you update to openfoam-org 9. I have the PKGBUILD done:

# Maintainer: Jingbei Li <>
# Contributor: Xwang <>
# Contributor: George Eleftheriou <eleftg>
# Contributor: Andrew Fischer <>
# Contributor: Gianluca Pettinello <>

pkgdesc="The open source CFD toolbox ("
depends=('bzip2' 'paraview' 'parmetis' 'scotch' 'boost' 'flex' 'cgal')

prepare() {
  mv $srcdir/$_gitname-$_subver $srcdir/$_distpkgbase-$_pkgver
  # Extract the current version and major of paraview and of scotch for use in the system preferences
  #_pversion=`pacman -Q paraview | sed -e 's/.* //; s/-.*//g'`
  _pversion=$(pacman -Q $(pacman -Qqo $(which paraview)) | sed -e 's/.* //; s/-.*//g')
  _pmajor=`echo $_pversion | cut -d '.' -f1`
  _sversion=`pacman -Q scotch | sed -e 's/.* //; s/-.*//g'`

  # Generate and install the system preferences file
  echo "compilerInstall=system" > ${srcdir}/
  echo "export WM_MPLIB=SYSTEMOPENMPI" >> ${srcdir}/
  echo "export ParaView_VERSION=${_pversion}" >> ${srcdir}/
  echo "export ParaView_MAJOR=${_pmajor}" >> ${srcdir}/
  cp ${srcdir}/ ${srcdir}/${_distpkgbase}-${_pkgver}/etc

  # Generate the file for arch
  echo "export SCOTCH_VERSION=scotch_${_sversion}" > ${srcdir}/
  echo "export SCOTCH_ARCH_PATH=/usr" >> ${srcdir}/
  cp ${srcdir}/ ${srcdir}/${_distpkgbase}-${_pkgver}/etc/config

build() {
  # Setup the build environment
  export FOAM_INST_DIR=${srcdir}
  [ -f ${foamDotFile} ] || return 1

  # Enter build directory
  cd ${srcdir}/${_distpkgbase}-${_pkgver}

  # Build and clean up OpenFOAM
  bash -c "source ${foamDotFile}
  ./Allwmake || exit 1
  wclean all || exit 1
  wmakeLnIncludeAll || exit 1"

package() {
  cd ${srcdir}

  # Create destination directories
  install -d "${pkgdir}/opt/${_distpkgbase}" "${pkgdir}/etc/profile.d"

  # Copy package to pkgdir
  cp -r "${srcdir}/${_distpkgbase}-${_pkgver}" "${pkgdir}/opt/${_distpkgbase}"

  # Add source file
  echo "export FOAM_INST_DIR=/opt/${_distpkgbase}" > ${pkgdir}/etc/profile.d/openfoam-${_pkgver}.sh
  echo "alias ofoam=\"source \${FOAM_INST_DIR}/${_distpkgbase}-${_pkgver}/etc/bashrc\"" >> ${pkgdir}/etc/profile.d/openfoam-${_pkgver}.sh
  chmod 755 "${pkgdir}/etc/profile.d/openfoam-${_pkgver}.sh"

  # Add stub thirdparty directory to keep openfoam happy
  install -d "${pkgdir}/opt/${_distpkgbase}/ThirdParty-${_pkgver}"

  # Permission fixes - for system-wide install and use
  chmod -R go+r "${pkgdir}/opt"
  chmod -R 755 "${pkgdir}/opt/${_distpkgbase}/${_distpkgbase}-${_pkgver}/bin"
  chmod -R 755 "${pkgdir}/opt/${_distpkgbase}/${_distpkgbase}-${_pkgver}/etc"

# vim:set ts=2 sw=2 et:

massisenergy commented on 2021-10-01 14:29 (UTC)

Great! I actually built the oF9 from scratch a month earlier, as this was superseded. I request the maintainer to update, as @DarioP added.

DarioP commented on 2021-10-01 13:44 (UTC)

I only had to adjust the versions to build the release 20210903 without any issue. Here is the updated PKGBUILD:

petronny commented on 2021-05-12 12:36 (UTC)

So you can modify the PKGBUILD of paraview to add -DPARAVIEW_USE_VTKM=OFF and upload it to AUR as paraview-openfoam.

massisenergy commented on 2021-05-12 12:28 (UTC) (edited on 2021-05-12 12:29 (UTC) by massisenergy)

@petronny, no I mean it applies for any ParaView packages. Until I install openFoam, any of those ParaView packages work. After installing OPenFOam, they stop working. So, I just did this (I have both OpenFOAM-v2012 & OpenFOAM8 installed installed in my Arch machine).

sudo pacman -R --nodeps --nodeps paraview

Then I build Paraview Version: 5.9.1-RC1-942-g7cfe71ad8e manually, after downloading the git. With only exception of adding the -DPARAVIEW_USE_VTKM=OFF in the cmake command (described here: ArchLinux ParaView build instruction).

petronny commented on 2021-05-09 08:29 (UTC)

@massisenergy You mean a package like paraview-openfoam?

You can upload it to AUR if you get it working.

massisenergy commented on 2021-04-27 10:17 (UTC) (edited on 2021-04-27 10:27 (UTC) by massisenergy)

Looks like there is some problem in the OpenFOAM-ParaView interface. Everytime I install this, ParaView stops working (I posted the details here: This started when ParaView was updated to 5.8.1, I believe. But I could test ParaView 5.9.1 RC1 to be working (but not 5.9.0) with manual building and installation. Installing this OpenFOAM package leads to crashing of both version of ParaView.

The issue might well be just the current AUR ParaView version, which is required by OpenFOAM as a dependency. Is it possible to modify the PKGBUILD so that a particular version of ParaView (manually installed by the user) can be used as dependency for this OpenFOAM package? This happens with openfoam-com version also.