|
[Sponsors] |
July 7, 2010, 06:14 |
OpenFOAM 1.7 Installation problems
|
#1 |
Member
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 17 |
Hello OpenFOAM users,
I have a problem installing OF1.7 on OpenSuse 11.1. After I unpack the archive of OF1.7 and try to run ./Allwmake I get the following error: Error: Current directory is not $WM_PROJECT_DIR Indeed the $WM_PROJECT_DIR is the directory of the installed OF1.6 on this machine. How do I change the WM_PROJECT_DIR to OF1.7? Thanks in advance |
|
July 7, 2010, 06:39 |
|
#2 |
Member
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17 |
I'm guessing that you might have forgotten to change the .bashrc file entry from
. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc to . $HOME/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc John |
|
July 7, 2010, 06:42 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Dennis,
Edit the file ~/.bashrc and change the line you have that sources the 1.6 version to source the 1.7 version. Or you can change to alias, to aid you to use only the environments you need: Code:
startFoam16='. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc' startFoam170='. $HOME/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc' Best regards, Bruno
__________________
|
|
July 7, 2010, 07:04 |
|
#4 |
Member
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 17 |
Sorry, but I can not manage to solve the problem with your hints.
In my home/OpenFOAM directory I have two directories: OpenFOAM1.6 and OpenFOAM1.7 each of them has a rtc/bashrc file. In the bashrc file of OpenFOAM 1.7 there is no entry with "1.6" at all. So I cannot change it to 1.7 as I guess it already says 1.7. But if I start the file, I get the errors: simulation@spc-sim:~/OpenFOAM/OpenFOAM-1.7/OpenFOAM-1.7.0/etc> ./bashrc ./bashrc: line 90: /home/simulation/OpenFOAM/OpenFOAM-1.7.0/bin/foamEtcFile: Datei oder Verzeichnis nicht gefunden ./bashrc: line 241: /home/simulation/OpenFOAM/OpenFOAM-1.7.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden ./bashrc: line 244: /home/simulation/OpenFOAM/OpenFOAM-1.7.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden ./bashrc: line 247: /home/simulation/OpenFOAM/OpenFOAM-1.7.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden ./bashrc: line 83: /home/simulation/OpenFOAM/OpenFOAM-1.7.0/etc/settings.sh: Datei oder Verzeichnis nicht gefunden |
|
July 7, 2010, 07:17 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
that isn't the usual installation method assumed by OpenFOAM's bashrc. The usual method is to have the folder $HOME/OpenFOAM to serve as a basis for all OpenFOAM installations, so it would look something like this:
Code:
$HOME/OpenFOAM/OpenFOAM-1.6 $HOME/OpenFOAM/OpenFOAM-1.7.0 $HOME/OpenFOAM/ThirdParty-1.6 $HOME/OpenFOAM/ThirdParty-1.7.0 Code:
foamInstall=$HOME/$WM_PROJECT Code:
foamInstall=$HOME/$WM_PROJECT/OpenFOAM-1.7.0 As for the alias in your ~/.bashrc file, then (I guess) should something like this: Code:
startFoam16='. $HOME/OpenFOAM/OpenFOAM-1.6/OpenFOAM-1.6/etc/bashrc' startFoam170='. $HOME/OpenFOAM/OpenFOAM-1.7/OpenFOAM-1.7.0/etc/bashrc' Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/OpenFOAM-1.6/etc/bashrc Bruno
__________________
|
|
July 7, 2010, 11:34 |
|
#6 |
Member
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 17 |
Thank you! It is running now!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating object tutorial case in OpenFOAM 1.7 | sega | OpenFOAM Running, Solving & CFD | 11 | February 9, 2012 05:29 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
Installation problems | ianz8802 | OpenFOAM Installation | 37 | January 30, 2009 14:20 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |
OpenFOAM installation problem on Linux 32bit | kumar | OpenFOAM Installation | 0 | April 27, 2007 06:41 |