OpenFOAM 1.6.x - CentOS 5.3 x86_64
Hello Foamers
Here is a prepackaged/precompiled version of OpenFOAM-1.6.x and the ThirdParty-1.6.x sources. Some extra mesh related programs have been put in the ThirdParty package. All built from source, no prepackaged binaries, so optimal speed for CentOS. This time I have retained the sources in the ThirdParty folder since it is needed for recompilation of the OpenFOAM source. When you have it all installed you should be able to go into the install dir and do: git pullNow you should be updated with all the bugfixes etc. ---------------- Included ---------------- - OpenFOAM 1.6.x (flex, mpfr and gmp built from source) - Paraview 3.6.1, Mpi support, ffmpeg support (export to avi), and parallezied support for decomposed cases. - gmsh-2.3.1 - engrid-1.0.1 - meshlab-1.2.1 ---------------- Install Instructions for the whole package ---------------- 0. Next steps are all done as root 1. First you need to install the gcc and c++ compiler, bison and ncurses-devel (thx wersoe) which is shipped with CentOS 5.3, needed to compile/recompile OpenFOAM solvers/libraries, or your own solvers. yum install gcc gcc-c++ bison ncurses-devel2. Create a folder for OpenFOAM, the default in the bashrc is /usr/loal/OpenFOAM mkdir /usr/local/OpenFOAM3. unpack the content of OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz, from sourceforge, to the folder cd /usr/loal/OpenFOAM4. Fix any possibly wrong permissions chmod -R 755 /usr/local/OpenFOAM5. Next part is done as non-root (user) 6. Put this line in your .bashrc file. . /usr/local/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc7. Restart console or source the bashrc. . ~/.bashrcthere is a space between the dot and the tilde 8. Check that it works by doing which gccthis should output the following /usr/local/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc------------------Install done------------------- The Qt-4.5.2.tar.gz and vtk-5.4.2.tar.gz, in the non-essential folder at sourceforge, are extras. Only needed if you consider recompiling paraview, or some other app which depends on Qt/vtk. It is possible to install to another location other than /usr/local, all you have to do is to modify you own .bashrc file, the bashrc in OpenFOAM (/usr/local/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc) to point to the new location of the install, like in the regular OpenFOAM README. ---------------- Disclaimer ---------------- The package has been verified on a fresh minimal gnome install of CentOS 5.3 64bit (and a recompilation was done) The package is "as is" and can only be guaranteed to work with a 64bit version of CentOS/RedHat/Scientific 5.3 (yum update is fine). Or if in a cluster environment Rocks 5.2 (based on CentOS 5.3). If other distributions are used, I can't help you. ---------------- Download ---------------- I have made a sourceforge project for this which can be found at https://sourceforge.net/projects/centfoam/ You can build your own OpenFOAM by only downloading the ThirdParty package and then doing: git clone git://repo.or.cz/OpenFOAM-1.6.x.gitIn the OpenFOAM-1.6.x/etc folder edit the bashrc file to contain the following at the end: export PATH=$WM_THIRD_PARTY_DIR/gmsh-2.3.1/bin:$PATHafter that do this cd OpenFOAM-1.6.xAnd you should have your own compiled version (don't know why you would do that since I've compiled it already, but you have the possibility :)) ---------------- BUGS ---------------- 1 .User wesoe reported an issue where the geometry is not shown, Takuya proposed putting the following into your .bashrc or run the command before paraFoam is run. export LC_ALL=CThis is apparently a locale issue when using Qt-4.5 to build paraview. 2. An error related to paraview, if its not installed in /usr/local/OpenFOAM and fails to start because is states a library is missing, do this as root. mkdir $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linux64Gcc/lib |
Hi all,
I have OpenFOAM-1.6 installed on my computer. And I'm using Centos-5.3. Now if I want to update to OpenFOAM-1.6.x what are the exact steps that I should do to update succesfully? I have git installed. Thank you! Regards, Petri Sulasalmi |
Download the 1.6.x version from the sourceforge webpage and read what I posted above.
Regards Linnemann |
I try to run Allwmake in OpenFOAM-1.6.x directory and it gives me the following message
Error: Current directory in not $WM_PROJECT_DIR The environment variable are not consistent with the installation. Check the OpenFOAM entries in your dot-files and source them. What should I do and where? Regards, Petri Sulasalmi |
Hi
Have you edited the OpenFOAM bashrc to point to the right location/folder? |
Quote:
Yes I have edited .bashrc file but it still refuses to run the Allwmake. |
Update!
I manage to run Allwmake but I gave a load of errors. |
Hi
make sure that these lines are in the bottom of the OpenFOAM bashrc file. export PATH=$PATH:$WM_THIRD_PARTY_DIR/gmsh-2.3.1/bin export PATH=$PATH:$WM_THIRD_PARTY_DIR/meshlab-1.2.1 export PATH=$PATH:$WM_THIRD_PARTY_DIR/engrid-1.0.1 export PATH=$PATH:$WM_THIRD_PARTY_DIR/libraries/bin export LD_LIBRARY_PATH=$WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linux64Gcc/bin:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$WM_THIRD_PARTY_DIR/libraries/lib:$LD_LIBRARY_PATH |
Hi,
yes I added those lines at the end of bashrc file in the OpenFOAM-1.6.x/etc directory. Then I tried again to run Allwmake but it still gives a lot of errors, for example make[2]: *** [Make/linux64GccDPOpt/equilibriumFlameT.o] Error 1 make[2]: Target `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/equilibriumFlameT' not remade because of errors. make[2]: Leaving directory `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT' make[1]: *** [equilibriumFlameT] Error 2 make[2]: Entering directory `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' /bin/sh: /usr/local/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: No such file or directory make[2]: Leaving directory `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[2]: Entering directory `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' SOURCE=mixtureAdiabaticFlameT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o /usr/local/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.3.3/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory make[2]: *** [Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o] Error 1 make[2]: Target `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT' not remade because of errors. make[2]: Leaving directory `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[1]: *** [mixtureAdiabaticFlameT] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/usr/local/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical' make: *** [thermophysical] Error 2 make: Target `application' not remade because of errors. That's just some of it. Should I remove the 1.6 version of the OpenFOAM and ThirdParty or something..? Regards, Petri Sulasalmi |
Hi
This is the error that ruins it for you error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory libmpfr.so.1 is located in the ThirdParty-1.6.x/libraries/lib folder and it seems it haven't sourced it correctly, so I suspect that its not sourcing the lines I suggested correctly. what is the output of: echo $LD_LIBRARY_PATH you can also try and put the lines I suggested below the sourcing of the OpenFOAM bashrc in the user .bashrc. I really don't know why you get this error since I've tested it 3 times on newly installed CentOS and the instructions have worked for me every time. Regards |
This is the out put of echo $LD_LIBRARY_PATH:
/usr/local/OpenFOAM/ThirdParty-1.6.x/libraries/lib:/usr/local/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linux64Gcc/bin:/usr/local/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/openmpi-1.3.3:/usr/local/OpenFOAM/ThirdParty-1.6.x/openmpi-1.3.3/platforms/linux64GccDPOpt/lib:/usr/local/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64:/usr/local/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib:/usr/local/OpenFOAM/ThirdParty-1.6.x/gmp-4.2.4/platforms/linux64/lib:/usr/local/OpenFOAM/ThirdParty-1.6.x/mpfr-2.4.1/platforms/linux64/lib:/home/petri/OpenFOAM/petri-1.6.x/lib/linux64GccDPOpt:/usr/local/OpenFOAM/site/1.6.x/lib/linux64GccDPOpt:/usr/local/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt:/usr/local/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt I tried to run Allwmake after adding the stuff to my user .bashrc but it's all the same. Regards |
Hi
As I can see /usr/local/OpenFOAM/ThirdParty-1.6.x/libraries/lib is in the LD_LIBRARY_PATH and I see no reason why it shouldn't work. you have installed the dependencies from yum? Regards |
Do you mean this stuff:
yum install gcc gcc-c++ bison ncurses-devel ? |
Hi
Yup I mean that stuff. I've just tried installing it again and I get no errors. Regards |
Yes I have them installed and latest versions too.
|
Is it possible that the updating problems have something to do with the amount of processors? I'm using a Mac with 8 cores, os is (as mentioned) Centos-5.3.
|
Hi
I highly doubt it as I've done it on dual-core and quad-core systems. |
Hi
Probably a stupid question, but you are using 64bit version of CentOS? :) Regards |
Quote:
Yes, 64bit Centos indeed. |
I probably got it working, it's compiling atm but no errors, yet at least. I guess it takes some time to complete?
Anyway I didn't download ThirdParty-1.6.x just changed the name of ThirdParty-1.6 as someone suggested in another thread, otherwise I did as you instructed and no error messages yet. Quite strange. Regards, Petri |
Well it failed again. It started promising but when compiling Thermophysical utility it gave errors.
|
Hello linnemann,
does your CentOS-Package support Infiniband use? Where would I set this in case I need to compile it in? Thanks a lot! blaise |
Hi
my package is the same as the standard OpenFOAM release the only difference is that I've included some extra stuff with regards to mesh generation and post processing. So you should be able to add infiniband as regular procedure. I've never done this as I'm not using infiniband, but I'm sure other people can help you here. Best regards Linnemann |
Well I found a stupid error in my way of sourcing the extra stuff.
instead of this export PATH=$PATH:$WM_THIRD_PARTY_DIR/gmsh-2.3.1/binIt should be written like this in the OpenFOAM bashrc file export PATH=$WM_THIRD_PARTY_DIR/gmsh-2.3.1/bin:$PATH |
Hi,
more problems with OF. I'm trying to install OF under my own user name. I had it installed in /usr/local/OpenFOAM. I removed all of it with rm -rf /usr/local/OpenFOAM Then I installed OF under my user name. For some reason it doesn't update the environment variables and all of OF related variables still point to old directories. Any idea what is this about? Is there any way to remove everything that is related to the old installation? Regards, Petri |
I got it working. Restartin the computer did the trick for the environment variables :p
|
Hi
I have had similar problems and a reboot/logout seemed to solve the problem. Have no idea why the environment variables aren't updates Regards |
Well. Now it's working otherwise but paraFoam refuses to run. Gave the following error when I tried to post-process the Cavity tutorial:
/home/petri/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory |
Hi
libssl should be a part of your CentOS installation so it seems weird it cant locate the library. do you have openssl installed? yum install openssl openssl-devel regards |
Quote:
|
Hi
Then I have no idea why paraview complains. |
I got it working. I started from the beginning once again and now everything seems to be just fine.
|
UPDATE
the ThirdParty package now features gmsh 2.4.2 and Engrid svn-version Netgen has been added to the SF page as an extra stand-alone package. Install details is in the Netgen package. Regards |
Hi everyone
I have started a wiki page for CentFOAM and created an install script which makes installation of the hosted files very easy. Go see for yourself and please try the install script and report your findings. |
Quote:
http://www.cfd-online.com/Forums/ope...entos-4-x.html Regards. |
Hi, I have to install the last version of OpenFOAM in a Red Hat 32 bits. I have had a lot of problems with compilation and I wonder if there is an easy way to do that with binaries.
Thanks |
Will it be the same procedure for OpenFOAM-1.7.1. Coz when i have downloded i could not find and of the additional tools like gmesh, engrid, meshlab in thirdparty folder.
I gueess we need to put unzipped folder in Third party directory. Though it sounds little silly question need to get it cleared for further process..... |
Quote:
Hi Niels Nielsen,In the above method, the links"OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz",in step 3 doesn't contain any file named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz". Also both the above links directs to the same location where three different folder are there (Non-Essential, 6.x and OpenFOAM). Could you plese guide me which one to download or where I can get the files named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz". Also the mechine where I have to compile the CentFOAM is not connected to the internet. And it has RHEL 5.3 with gcc 4.1.x version, and It is not registerd with the RHN. so, yum installer is also not working. In such circumstance could you please suggest any alternative for setting the required environment for CentFOAM install. On one of the Linux forum, I had seen a procedure to convert RHEL5.x in to CentOS, which does't require RHN registration to use yum installer, but I am not sure, by doing that will serve my purpose, And don't know whether by converting RHEL to CentOS will not affect the other other installations? Please help me out. With Best Regards, MLD |
CenFOAM installion help
Hi Niels Nielsen,
In the above method, the links"OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz",in step 3 doesn't contain any file named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz". Also both the above links directs to the same location where three different folder are there (Non-Essential, 6.x and OpenFOAM). Could you plese guide me which one to download or where I can get the files named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz". Also the mechine where I have to compile the CentFOAM is not connected to the internet. And it has RHEL 5.3 with gcc 4.1.x version, and It is not registerd with the RHN. so, yum installer is also not working. In such circumstance could you please suggest any alternative for setting the required environment for CentFOAM install. On one of the Linux forum, I had seen a procedure to convert RHEL5.x in to CentOS, which does't require RHN registration to use yum installer, but I am not sure, by doing that will serve my purpose, And don't know whether by converting RHEL to CentOS will not affect the other other installations? Please help me out. With Best Regards, MLD |
Hi Manoj
Go here instead. I have changed the install process since that description. https://sourceforge.net/apps/mediawi...itle=Main_Page If you need the packages for RHEL you can mix and match from CentOS and SL, they are all built using the same source packages. So to install manually go here f.ex. http://ftp.hosteurope.de/mirror/cent...x86_64/CentOS/ Search for the packages you need, download it and install with rpm -Uvh nameOfPackage.rpm It might complain that it needs some dependency package to install so search for those as well and install them before the other. You can also convert to CentOS but for the small number of packages you need for centFOAM I would just download them manually. Best Niels |
All times are GMT -4. The time now is 20:14. |