CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OpenFOAM 1.7 Installation problems

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2010, 05:14
Default OpenFOAM 1.7 Installation problems
  #1
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 7
shangzung is on a distinguished road
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
shangzung is offline   Reply With Quote

Old   July 7, 2010, 05:39
Default
  #2
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 71
Rep Power: 8
cwang5 is on a distinguished road
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
cwang5 is offline   Reply With Quote

Old   July 7, 2010, 05:42
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,306
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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'
Now whenever you start a new terminal, run startFoam16 or startFoam170, depending on the OpenFOAM version you want to use

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 7, 2010, 06:04
Default
  #4
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 7
shangzung is on a distinguished road
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
shangzung is offline   Reply With Quote

Old   July 7, 2010, 06:17
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,306
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
But if you still want to use your current folder organization, edit the file "~/OpenFOAM/OpenFOAM-1.7/OpenFOAM-1.7.0/etc/bashrc" and change the line that says:
Code:
foamInstall=$HOME/$WM_PROJECT
To:
Code:
foamInstall=$HOME/$WM_PROJECT/OpenFOAM-1.7.0
I assume you have already done that for the 1.6 version.

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'
Keep in mind that these two alias commands are meant to replace your previously existing line in ~/.bashrc file:
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/OpenFOAM-1.6/etc/bashrc
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 7, 2010, 10:34
Default
  #6
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 7
shangzung is on a distinguished road
Thank you! It is running now!
shangzung is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 04: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 13:50
OpenFOAM installation problem on Linux 32bit kumar OpenFOAM Installation 0 April 27, 2007 05:41


All times are GMT -4. The time now is 09:57.