needs the https://aur.archlinux.org/packages/parmetis fix to install
Search Criteria
Package Base Details: openfoam
Package Actions
Git Clone URL: | https://aur.archlinux.org/openfoam.git (read-only, click to copy) |
---|---|
Submitter: | None |
Maintainer: | petronny (AutoUpdateBot) |
Last Packager: | AutoUpdateBot |
Votes: | 57 |
Popularity: | 0.001060 |
First Submitted: | 2009-07-02 09:16 (UTC) |
Last Updated: | 2023-09-25 09:53 (UTC) |
Packages (1)
ng0177 commented on 2023-09-30 14:08 (UTC)
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 https://develop.openfoam.com/Development/openfoam/-/issues/2481
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 <i@jingbei.li>
# Contributor: Xwang <xwaang1976@gmail.com>
# Contributor: George Eleftheriou <eleftg>
# Contributor: Andrew Fischer <andrew_at_apastron.co>
# Contributor: Gianluca Pettinello <g_pet@hotmail.com>
pkgbase=openfoam
pkgname=openfoam-org
_subver=20211007
_pkgver=9
pkgver=${_pkgver}.${_subver}
#pkgver=${_pkgver}
pkgrel=1
pkgdesc="The open source CFD toolbox (www.openfoam.org)"
_distpkgbase=OpenFOAM
_gitname=$_distpkgbase-$_pkgver
arch=('x86_64')
url="http://www.openfoam.org"
license=("GPL")
depends=('bzip2' 'paraview' 'parmetis' 'scotch' 'boost' 'flex' 'cgal')
makedepends=('bash')
provides=('openfoam')
conflicts=('openfoam-com')
source=("https://github.com/OpenFOAM/$_gitname/archive/$_subver.tar.gz")
install="${pkgbase}.install"
md5sums=('SKIP')
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}/prefs.sh
echo "export WM_MPLIB=SYSTEMOPENMPI" >> ${srcdir}/prefs.sh
echo "export ParaView_VERSION=${_pversion}" >> ${srcdir}/prefs.sh
echo "export ParaView_MAJOR=${_pmajor}" >> ${srcdir}/prefs.sh
cp ${srcdir}/prefs.sh ${srcdir}/${_distpkgbase}-${_pkgver}/etc
# Generate the scotch.sh file for arch
echo "export SCOTCH_VERSION=scotch_${_sversion}" > ${srcdir}/scotch.sh
echo "export SCOTCH_ARCH_PATH=/usr" >> ${srcdir}/scotch.sh
cp ${srcdir}/scotch.sh ${srcdir}/${_distpkgbase}-${_pkgver}/etc/config
}
build() {
# Setup the build environment
export FOAM_INST_DIR=${srcdir}
foamDotFile=${srcdir}/${_distpkgbase}-${_pkgver}/etc/bashrc
[ -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: https://pastebin.com/qkXe8LPh
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.
Pinned Comments
petronny commented on 2020-08-04 08:36 (UTC) (edited on 2023-04-14 08:48 (UTC) by petronny)
Pre-built binaries of this package and its dependencies can be found in the arch4edu repository.