CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM 1.5 dev (http://www.cfd-online.com/Forums/openfoam/72365-openfoam-1-5-dev.html)

LVDH February 3, 2010 09:48

OpenFOAM 1.5 dev
 
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

norman1981 February 3, 2010 10:51

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

fs82 February 3, 2010 11:05

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

LVDH February 3, 2010 11:10

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

LVDH February 3, 2010 11:15

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.

norman1981 February 3, 2010 11:16

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

fs82 February 3, 2010 11:27

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.

LVDH February 3, 2010 12:38

2 Attachment(s)
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.

norman1981 February 3, 2010 12:47

Please, compile it in this way:
./Allwmake >& log

LVDH February 3, 2010 12:54

OK,
its running. My day at work is over, so I will post it tomorrow.

Thanks so far,
good night and good fight,
Andre

LVDH February 4, 2010 04:01

1 Attachment(s)
Hi,
here is my log.

fs82 February 4, 2010 04:34

Please check your log for error messages. If there are no error messages, everything was fine and OpenFoam should work.

Fabian

LVDH February 4, 2010 06:01

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.

fs82 February 4, 2010 06:26

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

mohsenkh599 February 5, 2010 03:06

please help
 
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

LVDH February 5, 2010 04:04

1 Attachment(s)
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.

norman1981 February 5, 2010 04:13

Quote:

Originally Posted by LVDH (Post 245037)
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.

mmm... why are you using the ThirdParty-1.6 files to install the 1.5-dev version? Maybe I didn't understand something... did you use the 1.5 thirdParty before trying the 1.6 thirdParty? Did you try to install the mpi libraries that come with OpenSUSE 11.2 distro from the repositories?
Regards
Norman

LVDH February 5, 2010 05:35

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.

norman1981 February 5, 2010 06:06

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

fs82 February 5, 2010 06: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


All times are GMT -4. The time now is 11:24.