|
[Sponsors] |
February 3, 2010, 09:48 |
OpenFOAM 1.5 dev
|
#1 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Greetings,
currently I am having big trouble installing OpenFOAM 1.5 dev. I have tried a lot of different procedures which I could find at the Wiki, here and in the buildInstructions.txt. Nothing worked. I think a main problem is that the instructions were written for version 1.4. Here in short my line of actions: Last year I installed (after a lot of trouble too) OpenFOAM 1.6. I did this simply by "detarring" the four files into an OpenFOAM folder. After that I added the following line into my $HOME.bashrc: alias foam='. /home/ckaupper/OpenFOAM/OpenFOAM-1.6/etc/bashrc' From there on I could open a new bash, type "foam" and could use OpenFOAM commands. I did this because if I do not use this alias the OpenFOAM stuff is always sourced which lead to problems using other software like gnuplot. OK back to the dev-version: I have tried a lot. I found the 1.5 Thirdparty stuff at sourceforge: https://sourceforge.net/projects/foam/files/ I "detarred" (whats the actual word?) the two thirdpartyfiles which created a new folder called "ThirdParty" (in contrast to my already existing "ThirdParty-1.6"). After this I detar the OpenFOAM-1.5-dev.General_2009-12-11.tgz which I found here: http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/ Here I have tried the System and the OpenFOAM option in the settings.sh and setting.csh. I also created a new alias called "devfoam" to source the new bashrc file in the /etc folder. The normal bashrc does net work because of a syntaxerror. I also tried the other included bashrc.**** files. Using one of these other files I can run ./Allwmake. Not running it means that OpenFOAM-dev does not know commands like icoFoam or blockMesh. But after the compilation is done these commands still do not work. Are there installationinstructions which describe the installation for dev 1.5? Or is someone out there who could give my detailed step by step instructions? It would really be a big help for me. Thanks in advance, Andre |
|
February 3, 2010, 10:51 |
|
#2 |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Hi,
could you give me some more details about your system configuration? In example.. which OS version are you using? I have these two lines in my .bashrc file (I keep commented the ones relative to the 1.6 version when I'm using the 1.5-dev): -- . $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc export PATH=$PATH\:$HOME/OpenFOAM/OpenFOAM-1.5-dev/wmake -- The second line makes sense only if Allwmake can't find wmake. It should be sufficient to source your .bashrc file, type 'foam' at the prompt and then compile OpenFOAM using Allwmake. I suggest you to redirect the Allwmake output to a log file in order to find where you have problems in compilation. Regards Norman |
|
February 3, 2010, 11:05 |
|
#3 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Why you wanna use the old OpenFoam 1.5.x version instead of the newer - as far as I understand - allready working 1.6 version? I am not sure if the GIT Repository of the older 1.5 version still exists but I would suggest to install the GIT version of Openfoam 1.6. Go to http://www.openfoam.com/download/git.php and read the instructions. You have to open a shell and type one of these commands written on this page (internet connection is required and may be you have to install the "git" version control system with your system package manager, eg. yast2). You can keep the thirdparty directory from your current OpenFoam 1.6 install, but you should copy it to ThirdParty-1.6.x (or create a symbolic link). You need also the ThirdParty package of the 32bit Openfoam 1.6 from the above mentioned page. In the ThirdParty package for the 64bit version is the cmake utility missing and you have to copy it from the 32bit tar package (correct word should be unpacking). Than compile it with the Allwmake command. If cmake posts some errors you should read them carefully and if you could'nt fix them, please feel free to post them to the forum.
kind regards, fabian |
|
February 3, 2010, 11:10 |
|
#4 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Hello,
you can have all the details you want. I am running a German version of OpenSuse 11.2 with KDE4. Having the German version sometimes causes problems but I did not install it (just have to work with it). The computer is a workstation from HP. I have flex installed as well as gcc version 4.4.1. Tell me what else you need to know. I have just started ./Allmake once again using the System option. As soon as it finishes I will post the log file. Thanks, Andre |
|
February 3, 2010, 11:15 |
|
#5 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Well,
I did not intend to answer questions regarding why I want to use a certain version of OpenFOAM. But since the confusion over this does not seem to end I will explain it for you. OpenFoam dev or extended is a fork of OpenFOAM and for example the current version 1.6.x. OpenFOAM-dev seems to contain a working GGI. I would like to test it and probably use it in the future. Hopefully we can now get back on getting it installed on my system. |
|
February 3, 2010, 11:16 |
|
#6 |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Hi Andre,
I have installed the svn version in Ubuntu 9.10. I have used the same system compiler you are using. Tell me how it will end and if you'll encounter problems I will try to give you my help in some way ;-) Norman |
|
February 3, 2010, 11:27 |
|
#7 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
The procedure is quite the same with OpenFoam 1.5.x. You have to download the source code from the GIT Repository. You should add the allready mentioned lines to your .bashrc (or type foam but the OpenFoam environment have to be setup in your installation shell). You have to rename the Thirdparty directory or copy or create a link to ThirdParty-1.5.x Than go to your OpenFoam 1.5.x directory and type ./Allwmake. I would not recommend to use the gcc coming up with your suse distribution. This causes much trouble, so if you have not a need for using a special compiler, like on Itanium2 Cpus the Intel compiler suite, you should take the one in the ThirdParty directory. And this is it. Allwmake should run without any problems. If not, please take a look at the error messages and post them if you couldn't fix them alone.
|
|
February 3, 2010, 12:38 |
|
#8 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
OK,
the compilation is done. I tried to log with ./Allwmake > log Somehow the resulting file does not match with the output I can see on the screen in the bash. After the first run I reran ./Allwmake and got a second log. Both are attached but shortened because of the filesizelimit here. |
|
February 3, 2010, 12:47 |
|
#9 |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Please, compile it in this way:
./Allwmake >& log |
|
February 3, 2010, 12:54 |
|
#10 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
OK,
its running. My day at work is over, so I will post it tomorrow. Thanks so far, good night and good fight, Andre |
|
February 4, 2010, 04:01 |
|
#11 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Hi,
here is my log. |
|
February 4, 2010, 04:34 |
|
#12 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Please check your log for error messages. If there are no error messages, everything was fine and OpenFoam should work.
Fabian |
|
February 4, 2010, 06:01 |
|
#13 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
There are error messages. If I could understand them I would solve my problems by myself. Because it does not work I am asking in this forum.
|
|
February 4, 2010, 06:26 |
|
#14 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Have a look cmake tells you:
/home/ckaupper/OpenFOAM/ThirdParty/openmpi-1.3.3: Datei oder Verzeichnis nicht gefunden Did you change anything on the MPI? Please check if there is a directory named openmpi-1.3.3 in your ThirdParty directory. The next erros are due to the mpi error. So fix this problem with your mpi and you will get one step further. Fabian |
|
February 5, 2010, 03:06 |
please help
|
#15 |
Member
mohsen kh
Join Date: Nov 2009
Posts: 41
Rep Power: 15 |
Hi Foamers
I am an amateur and I want to simulate viscoelastic fluids flow, But I am completely confused with OpenFOAM. And a lot of questions arise for me working with this software. Would you possibly answer some of my questions? 1.For implementing a new model (like LPPT) is it sufficient to write a new application in (OpenFOAM/applications) or it is necessary to modify OpenFOAM/src and/or lib and/or etc. 2. Could you possibly send me one or more new application file which you have made it by yourself (a viscoelastic model for instance). Or a detailed help about implementing new models in OpenFOAM? I do need your help. Please help. That’s for my master thesis. Best wishes Mohsen – m.kh.599@gmail.com |
|
February 5, 2010, 04:04 |
|
#16 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Hi,
well I copied all folders in the ThridParty-1.6 to the ThridParty folder. I guess changing some stuff in the settings.sh would have been more elegant but thats not the problem here. I want to get the dev version running no matter how. After copying I reran ./Allwmake. There was no mpi problem anymore. The new problem was this: g++: /home/ckaupper/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOSspecific.o: Datei oder Verzeichnis nicht gefunden I tried to fix this myself. The solution I found was to run the command wcleanAll. After that I ran ./Allwmake again. Sadly the problem still remains as you can see in the attached log. I am sure my case is not hopeless but I am out of ideas. |
|
February 5, 2010, 04:13 |
|
#17 | |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Quote:
Regards Norman |
||
February 5, 2010, 05:35 |
|
#18 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Well I have OpenFOAM 1.6 installed anyway. But I also downloaded the 1.5 stuff from sourceforge. After decompressing the 1.5 Thirdparty stuff generated a folder which is called "ThirdParty" and not "ThirdParty-1.5" or something.
After Fabian pointed out that the ./Allwmake from 1.5 dev was searching for mpi 1.3.3 I checked both ThridParty folders. The "ThirdParty" contained 1.2.6 and the "ThirdParty-1.6" contained the 1.3.3. So to avoid further missing folders I copied everything from the "ThirdParty-1.6" to the "ThirdParty". I did not delete anything in "ThirdParty" so now I have openmpi 1.2.6 and openmpi 1.3.3 in there. I hoped that way I would give the dev 1.5 ./Allwmake everything it could possibly ask for. |
|
February 5, 2010, 06:06 |
|
#19 |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Ok, I see..
I suggest you these steps starting from a clean install (delete all the no 1.6 ThirdParty folders you have and the OpenFOAM-1.5-dev folder) trying to isolate the problem: 0- Check you have installed in your distro these packages: binutils gcc flex bison bisonc++ build-essential and the packages relative to mpi 1- Comment all the 1.6## reference in your .bashrc file 2- Add to the .bashrc file these lines: --- . $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc export PATH=$PATH\:$HOME/OpenFOAM/OpenFOAM-1.5-dev/wmake --- 3- type: cd $HOME/OpenFOAM wget http://mesh.dl.sourceforge.net/sourc...y.General.gtgz wget http://mesh.dl.sourceforge.net/sourc....linuxGcc.gtgz svn co https://openfoam-extend.svn.sourcefo...enFOAM-1.5-dev tar xzf ThirdParty.General.gtgz tar xzf ThirdParty.linuxGcc.gtgz source ~/.bashrc foam ./Allwmake >&log Regards Norman |
|
February 5, 2010, 06:18 |
|
#20 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Everything seems to be a little bit strange. I installed OpenFoam 1.5 without any problems. You have to make sure that you get the correct OpenFoam and ThirdParty Archives. If you read your log file, you will find problems with 64bit variables. May be you have a 32bit system and you are trying to install a 64bit OpenFoam? Please go back to starting point, check which foam version you need (32bit or 64bit) and make a clean install like Norman suggested.
Fabian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev | titio | ParaView | 0 | December 9, 2009 13:13 |
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev | titio | ParaView | 0 | December 9, 2009 13:12 |
OpenFOAM 1.5 installation on OpenSUSE 11.0 | bigphil | OpenFOAM Installation | 16 | April 29, 2009 07:28 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
OpenFOAM Version 1.5 Released | OpenFOAM discussion board administrator | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 14, 2008 19:22 |