Package Details: openfoam 3.0.1-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: Xwang
Last Packager: Xwang
Votes: 30
Popularity: 0.675774
First Submitted: 2009-07-02 09:16
Last Updated: 2016-01-19 20:24

Required by (0)

Sources (10)

Latest Comments

Xwang commented on 2016-04-30 10:28

@Minerva.W
First of all thank you for your help.
Then as far as the patch files I prefer to maintain them separated to be able to know how much files are modified by the PKGBUILD and in which way.
Finally I would like to ask you where and how should I add -lboost_thread and if I have to add some additional dependencies too.

Minerva.W commented on 2016-04-23 14:53

OpenFOAM repository
[home_Minerva_W_Science_Arch_Extra]
SigLevel = Never
Server = http://download.opensuse.org/repositories/home:/Minerva_W:/Science/Arch_Extra/$arch

pacman -S openfoam3.0.1

Most of them seems to be fine but -lboost_thread still not completely solved. I will try to solve it today.

Minerva.W commented on 2016-04-23 00:11

My two cents: 1) all patch for flex files can be done within one command:

find . -name '*.L' -print -exec sed -i -e 's|YY_FLEX_SUBMINOR_VERSION < 34|YY_FLEX_SUBMINOR_VERSION < 34 \&\& YY_FLEX_MINOR_VERSION < 6|g' {} \;

2) There are error for foamyQuadMesh and foamyHexMesh because libboost_thread.so is not included. Please add -lboost_thread to the corresponding options file. From my point it is a better idea to link bzip missing libraries to scotchDecomp and ptscotchDecomp to reduce the amount of patch files.

Xwang commented on 2016-01-19 20:35

After installation you have to execute etc/profile.d/openfoam-3.0.1.sh
and then (since at least on my system the alias is not added) execute command alias ofoam="source ${FOAM_INST_DIR}/OpenFOAM-3.0.1/etc/bashrc" and finally the ofoam command.
Then you should be OK (I presume until you disconnect).
If there is any way to ask for the user if he/she wants to add alias to ~/.bashrc please let me know so that maybe I can try to integrate it to the PKGBUILD.

Xwang commented on 2016-01-19 20:27

Updated to 3.0.1 and checked with foamInstallationTest.
Please let me know if it works for you (actually I'm not using openFOAM).

Xwang commented on 2016-01-17 18:42

Thank you for your help.
I'm building the package again with all the patches and for the openfoam.sh, I'va addedt the pkgver number to the name so now it should be something like openfoam-3.0.1.1.sh and I've chmodded it to 755. So multiple instances should not give problems.
Now I have to wait till tomorrow evening to check the build and relese the upgraded PKGBUILD.

panda-z commented on 2016-01-17 18:10

Regarding /etc/profile.d/openfoam.sh, I think this file should be removed. We should inform users to add alias in their own ~/.bashrc in the post-installation script.

Actually, different OpenFOAM versions can be installed side by side, i.e. we can have multiple versions of OpenFOAM installed at the same time. Just my two cents.

panda-z commented on 2016-01-17 18:05

Hi @Xwang,

It's easy to solve these errors. I'll paste the full patch for the last 4 errors, see http://pastebin.com/GxkDX6TS

For the first one, I'm not able to reproduce.


Xwang commented on 2016-01-17 17:10

Now I've managed to have a working package (namely one that pass the foamInstallationTest), but there are still some thinks that I do not like:
1) in the build there are 5 errors:
1a)
WARN: PV3 readers not building: ParaView_VERSION=4.4.0
ERROR: ParaView not found in /home/andreak/tmp/AUR/openfoam/src/ThirdParty-3.0.1/platforms/linux64Gcc/ParaView-4.4.0

but this is ok because we would like to use the AUR package instead. Can someone verify that paraview works correctly with the new package I'm going to release?

1b)
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/conversion/ansysToFoam/ansysToFoam.o:(.data.rel.ro._ZTV11yyFlexLexer[_ZTV11yyFlexLexer]+0x68): riferimento non definito a "yyFlexLexer::yywrap()"
collect2: error: ld returned 1 exit status
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/Makefile:138: set di istruzioni per l'obiettivo "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/ansysToFoam" non riuscito
make[3]: *** [/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/ansysToFoam] Errore 1
make[3]: uscita dalla directory "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/applications/utilities/mesh/conversion/ansysToFoam"
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/MakefileApps:39: set di istruzioni per l'obiettivo "ansysToFoam" non riuscito
make[2]: *** [ansysToFoam] Errore 2

should I create a patch to solve this problem too?

1c)
-lm -o /home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/renumberMesh
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzReadClose"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzReadOpen"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzWriteOpen"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzReadGetUnused"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzRead"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzWriteClose"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzWrite"
collect2: error: ld returned 1 exit status
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/Makefile:138: set di istruzioni per l'obiettivo "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/renumberMesh" non riuscito
make[3]: *** [/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/renumberMesh] Errore 1
make[3]: uscita dalla directory "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/applications/utilities/mesh/manipulation/renumberMesh"
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/MakefileApps:39: set di istruzioni per l'obiettivo "renumberMesh" non riuscito
make[2]: *** [renumberMesh] Errore 2

this problem seems different

1d)
-lm -o /home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/decomposePar
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzReadClose"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzReadOpen"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzWriteOpen"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzReadGetUnused"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzRead"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzWriteClose"
/usr/lib/libscotch.so: riferimento non definito a "BZ2_bzWrite"
collect2: error: ld returned 1 exit status
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/Makefile:138: set di istruzioni per l'obiettivo "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/decomposePar" non riuscito
make[2]: *** [/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/decomposePar] Errore 1
make[2]: uscita dalla directory "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/applications/utilities/parallelProcessing/decomposePar"
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/MakefileApps:39: set di istruzioni per l'obiettivo "decomposePar" non riuscito
make[1]: *** [decomposePar] Errore 2

this seems the same as problem 1c

1e)
OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.o -L/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/lib \
-lsurfMesh -lOpenFOAM -ldl \
-lm -o /home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/surfaceTransformPoints
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/lib/libsurfMesh.so: riferimento non definito a "yyFlexLexer::yywrap()"
collect2: error: ld returned 1 exit status
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/Makefile:138: set di istruzioni per l'obiettivo "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/surfaceTransformPoints" non riuscito
make[2]: *** [/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/surfaceTransformPoints] Errore 1
make[2]: uscita dalla directory "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/applications/utilities/surface/surfaceTransformPoints"
/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/MakefileApps:39: set di istruzioni per l'obiettivo "surfaceTransformPoints" non riuscito
make[1]: *** [surfaceTransformPoints] Errore 2

this is again as 1b.

So it seems to me that there are 4 executables:
surfaceTransformPoints
decomposePar
renumberMesh
ansysToFoam

which are not created and I do not know how to exactly solve these problems.
Are they all openfoam bugs?

Finally I've seen that the /etc/profile.d/openfoam.sh is created without the executable flag, but even if I add it the only way to have the ofoam alias created is to copy the content of the file and execute in the bash. Why?

Xwang commented on 2016-01-17 14:34

I've removed all the src directory and restarted the build process from scratch.

All comments