CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Recommendations to the developers: OpenFoam-x.x.x (http://www.cfd-online.com/Forums/openfoam-installation/92321-recommendations-developers-openfoam-x-x-x.html)

turbomachinery September 9, 2011 21:43

Recommendations to the developers: OpenFoam-x.x.x
 
Dear Foamers
Even no one gives me help on the my former post, I've read throughly the settings.sh, bashrc, prefs.sh and those readmes in the downloaded 1.6-ext. I found that some of the answers could be found from there.
Also, I've checked those who complains different kinds of errors during their compilation.
But maybe, for those beginners, I think the developers should tell them exactly about which softwares or dependencies should be installed. Then there'll no such complains on this sections.
Actually most of the problems were caused by the improper or uninstalled dependencies.
According to Prefs.sh, such softwares should be installed to compile the thirdparty software.
mesquite, metis, parmetis, parmgridgen, libccmio, scotch, cmake, python, Qt, bison, flex, m4.
I'm not sure whether my understandings are right or wrong. For those developers, please give us a hand on how to find which dependencies should be installed.
Best Regards,
Chuang Gao

wyldckat September 10, 2011 05:39

Greetings Chuang Gao and welcome to the forum!

The -Extend variant based on OpenFOAM is more closely supported here: www.project-extend.de

Nonetheless, both the official OpenFOAM version (www.openfoam.org and www.openfoam.com) and the variant -Extend (www.project-extend.de), still have a few (or maybe a lot of) rough edges to be dealt with. Right now, both need the feedback from users for them to figure out what needs to be done.
On the other hand, it also depends on what platforms and Linux distributions they describe as being tested and compiled on.
Such example is the official version: Ubuntu and openSUSE are the only completely supported Linux distributions, although OpenFOAM is installable in any Linux you can find... as long as you have the right tools! Proof? See this page: http://www.openfoam.com/download/

For the -Extend project, you can find these two helpful places online:
Anyway, nowadays things are lot easier. 2 or 3 years ago, it was strictly necessary to do a lot of trial and error to figure out what's necessary. There are still a lot of rough edges, but in time things should get a bit better, since the community is growing and sponsors slowly keep coming in (this is just an estimate, I don't have any numbers to back this statement :().


Last but not least, these obstacles to install OpenFOAM are almost like a right of passage. This is because OpenFOAM is still very undocumented in a lot of it's capabilities and sometimes the only way to figure things out is to do a lot of trial-and-error and looking directly at the code.

Best regards,
Bruno

turbomachinery September 11, 2011 10:38

Thanks Bruno
I've exactly followed the short tutorial as suggested by you and shown below,

Quote:

Originally Posted by wyldckat (Post 323626)
Bruno

However, at the end, when it tries to generate rpm and installs that file, it makes errors as follows,
-- Up-to-date: /home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/ParaView-3.10.1-linux64GccDPOpt.x86_64/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.10.1/platforms/linux64GccDPOpt/lib/paraview-3.10/imageformats/libqgif.so
-- fixup_bundle
-- app='/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.10.1/platforms/linux64GccDPOpt/lib/paraview-3.10/paraview'
-- libs='/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libMoments.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libPrismServerPlugin.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libPrismClientPlugin.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libPointSprite_Plugin.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libSierraPlotTools.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libSLACTools.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libStreamingView.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libSurfaceLIC.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libH5PartReader.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libVisTrailsPlugin.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libAnalyzeReader.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libAnalyzeWriter.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libNIfTIReader.so;/home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/buildObj/bin/libNIfTIWriter.so'
-- dirs='/usr/bin;/usr/lib'
-- warning: *NOT* handled - directory/file does not exist...
CMake Error at /home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/CMake/BundleUtilities.cmake:627 (message):
error: fixup_bundle: not a valid bundle
Call Stack (most recent call first):
Applications/ParaView/cmake_install.cmake:80 (fixup_bundle)
Applications/cmake_install.cmake:37 (INCLUDE)
cmake_install.cmake:118 (INCLUDE)


make: *** [install] Error 1
error: Bad exit status from /home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.jtIKrk (%install)


RPM build errors:
Bad exit status from /home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.jtIKrk (%install)
Installing package: ParaView-3.10.1
Uninstalling ParaView-3.10.1 using RPM: ParaView-3.10.1-linux64GccDPOpt.x86_64
Installing ParaView-3.10.1 using RPM file: /home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/chuang/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package

========================================
Done ThirdParty AllMake: Stage4
========================================

========================================
Done ThirdParty Allwmake
========================================

elvis September 12, 2011 02:12

Dear Chuang,

it is always helpful to start with a liveDVD to make the first steps.

Geekocfd (suse based) http://susegallery.com/a/2qtLK2/geekocfd

For Extent you can use the ISO-image from the OpenFoam Workshop (Kubuntu LTS based) http://rcc.its.psu.edu/ofw6/ofw6_v8.iso

or CAE Linux http://www.caelinux.com/CMS/

Nebojsa September 16, 2011 16:45

Hi Chuang Gao,

Quote:

Originally Posted by turbomachinery (Post 323704)
Thanks Bruno
I've exactly followed the short tutorial as suggested by you and shown below,

However, at the end, when it tries to generate rpm and installs that file, it makes errors as follows,


I think that this bug is a part of the OpenFOAM-1.6-ext distribution at the moment. However if you install all packages from the tutorial above, you can ignore this error - paraFoam should work with system installed paraview, unless you use blockMesh feature mergePatchPairs.

Also if your OpenFOAM installation finishes with an error complaining something about dynamicMesh, just restart the installation with ./Allwmake and OpenFOAM should be installed correctly.

Best regards,

Nebojsa

gtg258f September 21, 2011 04:45

Hi all,

I was wondering if anyone had found out a little more about the "fix-up bundle" error occuring during the compilation of ParaView-3.10.1 (ThirdParty packages for OpenFOAM-1.6-ext).

Quote:

CMake Error at $HOME/Software/bin/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/CMake/BundleUtilities.cmake:627 (message):
error: fixup_bundle: not a valid bundle
Call Stack (most recent call first):
Applications/ParaView/cmake_install.cmake:80 (fixup_bundle)
Applications/cmake_install.cmake:37 (INCLUDE)
cmake_install.cmake:118 (INCLUDE)
For now I have linked OpenFOAM wih a system installed version of Paraview. OpenFOAM solvers work, but the linking for paraFoam does not seem to work very smoothly (well paraFoam does launch paraview but does not automatically detect that the data is in openFOAM format).

I actually had quite a few errors during the compilation of vtkPV3Foam:
[QUOTE]
+ wmake libso vtkPV3Foam
In file included from vtkPV3Foam.C:28:
../PV3FoamReader/vtkPV3FoamReader.h:31:43: error: vtkMultiBlockDataSetAlgorithm.h: No such file or directory
vtkPV3Foam.C:36:35: error: vtkDataArraySelection.h: No such file or directory
vtkPV3Foam.C:37:34: error: vtkMultiBlockDataSet.h: No such file or directory
vtkPV3Foam.C:38:25: error: vtkRenderer.h: No such file or directory
vtkPV3Foam.C:39:26: error: vtkTextActor.h: No such file or directory
vtkPV3Foam.C:40:29: error: vtkTextProperty.h: No such file or directory
In file included from vtkPV3Foam.C:28:
../PV3FoamReader/vtkPV3FoamReader.h:39: error: expected initializer before ‘:’ token

etc ...
[\QUOTE]

Best regards,
Diane

blaise October 19, 2011 09:39

Hi Diane,

did you find a solution to your problems below? If so, could you please share it? I have the same errors with OF-1.6-ext.

Quote:

Originally Posted by gtg258f (Post 325013)

+ wmake libso vtkPV3Foam
In file included from vtkPV3Foam.C:28:
../PV3FoamReader/vtkPV3FoamReader.h:31:43: error: vtkMultiBlockDataSetAlgorithm.h: No such file or directory
vtkPV3Foam.C:36:35: error: vtkDataArraySelection.h: No such file or directory
vtkPV3Foam.C:37:34: error: vtkMultiBlockDataSet.h: No such file or directory
vtkPV3Foam.C:38:25: error: vtkRenderer.h: No such file or directory
vtkPV3Foam.C:39:26: error: vtkTextActor.h: No such file or directory
vtkPV3Foam.C:40:29: error: vtkTextProperty.h: No such file or directory
In file included from vtkPV3Foam.C:28:
../PV3FoamReader/vtkPV3FoamReader.h:39: error: expected initializer before ‘:’ token

etc ...

Thank you!

Cheers,

Pascal.

gtg258f October 19, 2011 10:14

Hi Pascal,

No, I did not find a real solution to the problem. What I ended up doing is installing a precompiled version of Paraview 3.10 and linking to it, rather than using the one in the Thirdparty package.

Sorry!
Diane


All times are GMT -4. The time now is 13:05.