Package Details: openfoam 5.0-2

Git Clone URL: https://aur.archlinux.org/openfoam.git (read-only)
Package Base: openfoam
Description: The open source CFD toolbox
Upstream URL: http://www.openfoam.org
Licenses: GPL
Submitter: None
Maintainer: petronny
Last Packager: petronny
Votes: 41
Popularity: 0.456376
First Submitted: 2009-07-02 09:16
Last Updated: 2017-09-15 08:26

Latest Comments

lahwaacz commented on 2018-04-08 09:59

Something does not work right:

$ ofoam
-bash: .: /opt/OpenFOAM: is a directory
-bash: /opt/OpenFOAM: Is a directory
-bash: _foamSource: command not found
-bash: _foamEval: command not found
-bash: /opt/OpenFOAM: Is a directory
-bash: /opt/OpenFOAM: Is a directory
-bash: /opt/OpenFOAM: Is a directory
-bash: _foamSource: command not found
-bash: _foamSource: command not found
-bash: /opt/OpenFOAM: Is a directory
-bash: _foamSource: command not found
-bash: /opt/OpenFOAM: Is a directory
-bash: _foamSource: command not found
-bash: /opt/OpenFOAM: Is a directory
-bash: _foamSource: command not found
-bash: /opt/OpenFOAM: Is a directory
-bash: _foamSource: command not found
-bash: /opt/OpenFOAM: Is a directory
-bash: /opt/OpenFOAM: Is a directory
-bash: /opt/OpenFOAM: Is a directory
-bash: .: /opt/OpenFOAM: is a directory
-bash: .: /opt/OpenFOAM: is a directory

The bashrc sets $FOAM_INST_DIR to something invalid:

$ echo $FOAM_INST_DIR 
/opt/OpenFOAM ~ /opt/OpenFOAM

petronny commented on 2018-03-12 08:42

@ddcampayo I find

$ pacman -Fl openfoam | grep bin snappyHexMesh
openfoam opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh
openfoam opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/lib/libsnappyHexMesh.so

in my pre-built package. Are these what you need?

PS. You can download my pre-built package from https://mirrors.tuna.tsinghua.edu.cn/arch4edu/

ddcampayo commented on 2018-03-08 21:57

Installs ok, but some of the utilities are missing. E.g. snappyHexMesh. If I got to dir /applications/utilities/mesh/generation, then run (as root) ./Allwmake , blockMesh, extrude, and extrude2DMesh, compile. But not snappyHexMesh. That one spits:

g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-5.0/src/parallel/decompose/decompositionMethods/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/mesh/snappyHexMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/fileFormats/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.o -L/opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/lib \ -lfiniteVolume -ldecompositionMethods -L/opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/lib/dummy -lscotchDecomp -lptscotchDecomp -lmeshTools -lsurfMesh -lfileFormats -ldynamicMesh -lsnappyHexMesh -lOpenFOAM -ldl \ -lm -o /opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh

/usr/lib/libscotch.so: undefined reference to `BZ2_bzReadClose'

/usr/lib/libscotch.so: undefined reference to `BZ2_bzReadOpen'

/usr/lib/libscotch.so: undefined reference to `BZ2_bzWriteOpen'

/usr/lib/libscotch.so: undefined reference to `BZ2_bzReadGetUnused'

/usr/lib/libscotch.so: undefined reference to `BZ2_bzRead'

/usr/lib/libscotch.so: undefined reference to `BZ2_bzWriteClose'

/usr/lib/libscotch.so: undefined reference to `BZ2_bzWrite'

collect2: error: ld returned 1 exit status

make: *** [/opt/OpenFOAM/OpenFOAM-5.0/wmake/makefiles/general:142: /opt/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh] Error 1

berilac commented on 2018-03-02 06:17

Install appears to run perfectly, no errors.

But the ofoam alias doesn't appear to work (it doesn't exist).

Also, if I manually run 'source /opt/OpenFOAM/OpenFOAM-5.0/etc/bashrc' it simply returns to command line. It runs something as it takes a second before it returns, but no messages, warnings or errors.

Not sure how to diagnose this.

solnce commented on 2017-09-16 18:35

The problem ist that the new tar-file is not fetched because of the file naming, which omits the pkgrel-number. Version 5.0.1 and 5.0.2 are having the same filename (version-5.0.tar.gz).

Remedy:
$ cd $HOME/.cache/pacaur/openfoam
$ mv version-5.0.tar.gz version-5.0.tar.gz.bak

solnce commented on 2017-09-15 10:36

Same problem here. The most recent git commit (Fri Sep 15 16:26:13 2017 +0800) updated the md5sum, which didn't help.

evamvid commented on 2017-09-14 18:41

My build is failing with a wrong md5 hash! Is the provided hash old, or could it be an issue with my system?

Full output:

Preparing...

Building openfoam...
Cloning into 'openfoam'...
remote: Counting objects: 65, done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 65 (delta 27), reused 49 (delta 17)
Unpacking objects: 100% (65/65), done.
==> Making package: openfoam 5.0-1 (Thu Sep 14 14:32:32 EDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading version-5.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 134 0 134 0 0 134 0 --:--:-- --:--:-- --:--:-- 827
100 39.1M 100 39.1M 0 0 891k 0 0:00:45 0:00:45 --:--:-- 1141k
==> Validating source files with md5sums...
version-5.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

davidfonseca commented on 2017-07-09 18:53

Works fine here! Thanks

petronny commented on 2017-06-18 16:21

@silvergasp, this is the openfoam package, but you are seeming to build the scilab package...
And I have just built scilab with no error.
Anyway, you can find both compiled openfoam and scilab in my https://github.com/arch4edu/arch4edu repository.

silvergasp commented on 2017-06-18 14:51

I am having issues building, it seems to be failing at the linking stage.

./modules/.libs/libscilab-cli.so: undefined reference to `sci_inspectorShowItem(std::vector<types::InternalType*, std::allocator<types::InternalType*> >&, int, std::vector<types::InternalType*, std::allocator<types::InternalType*> >&)'
/home/nathaniel/scilab/scilab/src/scilab-6.0.0/modules/graphics/.libs/libscigraphics.so: undefined reference to `startInteractiveZoom'
/home/nathaniel/scilab/scilab/src/scilab-6.0.0/modules/graphics/.libs/libscigraphics.so: undefined reference to `sciGetJava2dViewCoordFromPixel'
/home/nathaniel/scilab/scilab/src/scilab-6.0.0/modules/graphics/.libs/libscigraphics.so: undefined reference to `javaClickRubberBox'
/home/nathaniel/scilab/scilab/src/scilab-6.0.0/modules/graphics/.libs/libscigraphics.so: undefined reference to `changeFontFromFilename'

... etc ...

Would this likely be to do with the pkgbuild or would it be an upstream issue?

All comments