|
[Sponsors] |
July 30, 2009, 08:58 |
OpenFOAM 1.6 package - CentOS 5.3 x86_64
|
#1 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hello Foamers
Here is a prepackaged/precompiled version of OpenFOAM-1.6 and Paraview-3.6.1. Some extra mesh related programs have been put in the Thirdparty package. All built from source, no prepackaged binaries, so optimal speed for CentOS. The Thirdparty folder have been striped for any source-code and only the binary/lib files are remaining. ---------------- Included ---------------- - OpenFOAM 1.6 (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. First you need to install gcc, c++, bison and ncurses-devel, which is shipped with CentOS 5.3 - (needed to compile/recompile OpenFOAM solvers, or your own solvers) yum install gcc gcc-c++ bison ncurses-devel1. Next steps are all done as root 2. 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_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6_CentOS-5.3_x86-64.tar.gz 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/etc/bashrcrestart console or source the bashrc $ . ~/.bashrc to check if it works try $ which gccthis should output the following $ /usr/local/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/gccThe Qt-4.5.2.tar.gz and vtk-5.4.2.tar.gz, in the non-essential folder at sourceforge, are extras, which is 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/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 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/ ---------------- BUGS ---------------- 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 An error related to paraview, if its not installed in /usr/local/OpenFOAM do this as root. mkdir /pathtoopenfoam/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/lib Last edited by linnemann; August 25, 2009 at 12:29. Reason: New file structure and packaging |
|
August 3, 2009, 06:51 |
|
#2 |
New Member
Angus Lock
Join Date: Aug 2009
Posts: 1
Rep Power: 0 |
Does this include a parallel version of ParaView?
Thanks for your help. Angus |
|
August 3, 2009, 07:38 |
|
#3 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
Yes, forgot to mention, it is built with the OpenFOAM shipped version of openmpi. The only extra I put in is the possibility to read decomposed cases. you can still use the paraFoam command, but this will only work on reconstructed cases as far as I know. Regards |
|
August 3, 2009, 19:20 |
Packages
|
#4 |
New Member
Dr. Eric Warren
Join Date: Aug 2009
Posts: 3
Rep Power: 17 |
Can you provide access to the packages other than through depositfiles where you have to pay to download them (unless you want to wait 2 hours between downloads)?
|
|
August 4, 2009, 02:40 |
|
#5 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hey,
I have tried many places, but I haven't found a decent place for it yet. I will try to see if i can create a sourceforge project for it, but I cant promise anything. If you don't want to wait 2 hours try the torrent. Regards |
|
August 4, 2009, 11:12 |
|
#6 |
New Member
Dr. Eric Warren
Join Date: Aug 2009
Posts: 3
Rep Power: 17 |
With regards to the Qt package, do you unpack it as well in the /usr/local directory? i assume then that if so that /usr/local/Qt-4.5.2 would need to be added to your path...
|
|
August 4, 2009, 11:23 |
|
#7 |
New Member
Dr. Eric Warren
Join Date: Aug 2009
Posts: 3
Rep Power: 17 |
Got everything downloaded from the torrent and installed and works great thank you. Saved me a lot of time...
|
|
August 4, 2009, 12:29 |
|
#8 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
Yes you would need to add Qt to your PATH, but it is not needed to run the binary pack. It is only provided to those who would want a precompiled Qt-4.5.2 for their CentOS install. Regards |
|
August 6, 2009, 02:46 |
|
#9 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
I have made a sourceforge project for this and future packages at
https://sourceforge.net/projects/centfoam/ Regards |
|
August 7, 2009, 12:28 |
|
#10 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
Great work linnemann...
If you need any help in the future, I am not actually an expert in compiling stuff, anyway, I d like to support the project... Regards, Sören |
|
August 7, 2009, 13:11 |
|
#11 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
...well, just downloaded, unpacked OpenFOAM.tar.gz to /opt/OpenFOAM and run the icoFoam/cavity.
So, blockMesh and icoFoam run without error, paraFoam opens Paraview, however, I cant see the cavity file. The statistics options gives the correct cell number, but the display remains grey... Has anybody something similar and could give me a hint? Would appreciate very much, thanks Sören |
|
August 8, 2009, 07:16 |
|
#12 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
You need to choose some scalar which you want to show in the top.
First you need to use the arrows on top to get to the last time-step/iteration. Then under display you can choose which scalar/property you want to show and you properly also have to rescale it using one of the first icons on the second row of the toolbar |
|
August 8, 2009, 07:18 |
|
#13 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
I have restructured the files and added some extra mesh packages in the Thirdparty folder so from now on It will only be possible to download from the sourceforge project page
https://sourceforge.net/projects/centfoam/ |
|
August 8, 2009, 08:02 |
|
#14 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
Hello linnemann,
thanks for your reply. However, I have set all rite, so I think, couldnt see anything anyway. The color scale is visible, but the geometry isnt... One other thing, the time scale is not correct, since cavity is calculated up to 0.5s with step size of 0.01. Something is really wrong, and I couldnt see it. I will try at another system now, I get back with results... Anyway, help is much appreciated. Thanks, Sören |
|
August 8, 2009, 09:01 |
|
#15 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Sören,
I guess your ParaView (PV3FoamReader) is affected by a problem which is reportedly occurs only when ParaView built with Qt 4.5.x is run under certain locales [1]. Try running paraFoam after running "export LC_ALL=C". If it works, write the "export LC_ALL=C" line into somewhere in the paraFoam script for later convenience. [1] See comments #55-#72 in a Gentoo tracker thread. The thread discusses the parallel reader under Gentoo but I know that the same thing applies to PV3FoamReader and other distros as well. p.s. @linnemann: thanks about including the parallel reader! Takuya |
|
August 8, 2009, 09:23 |
|
#16 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
Hi Takuya,
thanks for help. After exporting the variable, paraFoam works... @linnemann, maybe you can bring the workaround to your installation instructions, since there are probably some German users out there... Regards, Sören |
|
August 8, 2009, 09:31 |
|
#17 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Fix have been included in the installation instructions.
Regards |
|
August 8, 2009, 11:59 |
|
#18 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
edited by wersoe
Last edited by wersoe; August 8, 2009 at 14:36. |
|
August 8, 2009, 15:42 |
|
#19 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
well I found an error related to paraview, apparently there needs to be a symlink to a folder, if its not installed in /usr/local/OpenFOAM do this as root.
mkdir /pathtoopenfoam/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/lib |
|
August 16, 2009, 18:46 |
|
#20 |
Member
Jean-Peer Lorenz
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 33
Rep Power: 17 |
@7islands: Do you know whether this 'export LC_ALL=C' bug is reported somewhere, so it can be fixed in the sources?
Regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 04:14 |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 18:55 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |