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

Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0

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

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2014, 02:45
Default Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0
  #1
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi Foamers

I am facing problem in installing foam-extend-3.0 and OpenFOAM-1.6-ext...
I followed the instructions given in the link
http://sourceforge.net/p/openfoam-ex....04_64-bit.txt
But after compiling for 2-3 hour the terminal got stopped at a point which is shown in snapshot.
Please help me to install this package
Attached Images
File Type: jpg Screenshot from 2014-03-03 11:41:12.jpg (98.0 KB, 115 views)
sam.ho is offline   Reply With Quote

Old   March 3, 2014, 08:08
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sam,

I suggest that you read+study the following pages:
  1. To make sure that you can use either one of the OpenFOAM versions: http://openfoamwiki.net/index.php/In...with_the_Shell
  2. Then for installing 1.6-ext, follow the instructions for the Ubuntu version you're using: http://openfoamwiki.net/index.php/In...1.6-ext/Ubuntu
  3. Then for foam-extend 3.0: http://openfoamwiki.net/index.php/In...end-3.0/Ubuntu
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 05:37
Default OpenFOAM-1.6-ext along with OpenFOAM
  #3
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi Bruno,

I have installed OpenFOAM-2.3.0 in home/user/OpenFOAM/OpenFOAM-2.3.0 .
I want to simulate gas turbine with DensityBasedTurbo solvers so I need to install OpenFOAM-1.6-ext. For that if I change the alias as follows
alias of221='source $HOME/OpenFOAM/openfoam230/etc/bashrc' alias of16ext='source $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'

Does this works ?
What are the steps i need to perform ?

Regards,
Sangamesh Hosur
Luttappy likes this.
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 06:30
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sangamesh Hosur,

I thought that the wiki page on the first link explained everything clearly enough .

Anyway, the steps should be:
  1. Edit the file "~/.bashrc", using your favourite text editor. For example, if using gedit:
    Code:
    gedit ~/.bashrc
  2. Remove any lines that refer to OpenFOAM and add these to the end of the file:
    Code:
    alias of230='source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc'
    alias of16ext='source $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'
  3. Save and close the file.
  4. Restart your machine. (I say this because I'm assuming you don't know how to logout and then how to log back in )
  5. It should now work as intended. In other words, you must always start a new terminal window, whenever you need a different OpenFOAM version. Then run the respective alias command, for the respective OpenFOAM version. For example:
    • If you want to use OpenFOAM 2.3.0, start a new terminal window and run:
      Code:
      of230
    • If you want to use OpenFOAM 1.6-ext, start a new terminal window and run:
      Code:
      of16ext
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 5, 2014, 08:10
Post Error in installing OpenFOAM-1.6-ext
  #5
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi ,

I have followed the procedure to install OpenFOAM-1.6-ext on UBUNTU-12.04 as given in this link
http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04

But i am getting these following errors
Could you help me to get it installed properly ?

Regards,
Sangamesh Hosur
Attached Files
File Type: gz make.log.tar.gz (16.6 KB, 17 views)
sam.ho is offline   Reply With Quote

Old   March 5, 2014, 17:17
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sam.ho View Post
But i am getting these following errors
Could you help me to get it installed properly ?
Something very strange happened in your installation. A critical file seems to have been deleted.
To diagnose what happened, let's try searching for it. First run these commands:
Code:
cd $FOAM_SRC
ls -lgn decompositionMethods/decompositionMethods/lnInclude/decompositionMethod.*
It should give you something similar to this:
Code:
lrwxrwxrwx  1 1000   44 Dec 25 13:23 decompositionMethod.C -> ../decompositionMethod/decompositionMethod.C
lrwxrwxrwx  1 1000   44 Dec 25 13:23 decompositionMethod.H -> ../decompositionMethod/decompositionMethod.H
The file "decompositionMethod.H" is the one missing, but is shown in the list above in my installation.
Then try this command:
Code:
ls -lgn decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.*
It should give you this:
Code:
-rw-rw-r-- 1 1000 12981 Dec 25 13:10 decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.C
-rw-rw-r-- 1 1000 28916 Dec 25 13:23 decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.dep
-rw-rw-r-- 1 1000  6456 Dec 25 13:10 decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.H
If it doesn't, then the files are missing.

Let me know what you get from each command, because by knowing what you get, I should be able to detail a specific solution.

By the way, you did not skip over step #6 from the instructions, or did you?
__________________
wyldckat is offline   Reply With Quote

Old   March 6, 2014, 01:06
Default
  #7
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Code:
cd $FOAM_SRC
ls -lgn decompositionMethods/decompositionMethods/lnInclude/decompositionMethod.*
I got this

Code:
lrwxrwxrwx 1 1623535300 44 Mar  5 15:37 decompositionMethods/decompositionMethods/lnInclude/decompositionMethod.C -> ../decompositionMethod/decompositionMethod.C
lrwxrwxrwx 1 1623535300 44 Mar  5 15:37 decompositionMethods/decompositionMethods/lnInclude/decompositionMethod.H -> ../decompositionMethod/decompositionMethod.H
Then I tried this command:
Code:
ls -lgn decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.*
I found this on my terminal:
Code:
 -rw-rw-r-- 1 1623535300 12981 Oct 16 07:35 decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.C
-rw-rw-r-- 1 1623535300 28916 Mar  5 15:37 decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.dep
-rw-rw-r-- 1 1623535300  6456 Oct 16 07:35 decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.H
Quote:
By the way, you did not skip over step #6 from the instructions, or did you?
I did not clone it as specified in step#5, Instead i downloaded OpenFOAM-1.6-ext then i tried step #6 I got something like this
Code:
fatal: Not a git repository (or any of the parent directories): .git
How to counter this problem ?
sam.ho is offline   Reply With Quote

Old   March 6, 2014, 16:17
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sam.ho View Post
I did not clone it as specified in step#5, Instead i downloaded OpenFOAM-1.6-ext then i tried step #6 I got something like this
Code:
fatal: Not a git repository (or any of the parent directories): .git
How to counter this problem ?
Then that must be the reason for this problem. Please provide the link to the package you've downloaded, so that I can check what differences there are from the git version.
wyldckat is offline   Reply With Quote

Old   March 7, 2014, 00:34
Default
  #9
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Then that must be the reason for this problem. Please provide the link to the package you've downloaded, so that I can check what differences there are from the git version.
Here is the link : http://sourceforge.net/p/openfoam-ex...i/master/tree/

And I i have clicked on the downloadsnapshot and got the source file .
sam.ho is offline   Reply With Quote

Old   March 10, 2014, 16:43
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sangamesh,

Sorry, I've had a few busy days of late and didn't manage to look into this sooner.
I've compared the files from the package you've used and the files from the git clone I'm using. They seem identical.

Try running these commands, with the 1.6-ext shell environment turned on:
Code:
cd $WM_PROJECT_DIR
wclean all src/decompositionMethods
./Allwmake > make.log 2>&1
./Allwmake > make.log 2>&1
This should ensure that the decomposition libraries are rebuilt properly.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 11, 2014, 04:46
Default E: Package 'paraview' has no installation candidate
  #11
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi,

I am following the procedure to install OpenFOAM-1.6-ext from :
http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04

But when i execute the step 2, i will get the following error

Code:
root@BMH301562:~# apt-get install git flex bison rpm build-essential zlib1g-dev binutils-dev \
> openmpi-bin libopenmpi-dev paraview libstdc++5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package paraview is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'paraview' has no installation candidate
What might be the problem and how to overcome this ?

Regards,
Sangamesh Hosur
sam.ho is offline   Reply With Quote

Old   March 11, 2014, 04:59
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You need to turn on the Universe repository: http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F
wyldckat is offline   Reply With Quote

Old   March 11, 2014, 05:31
Default
  #13
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: You need to turn on the Universe repository: http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F
Hi Bruno,

Kindly find the attached screen shot as it already universe is appended.
Attached Images
File Type: jpg Screenshot from 2014-03-11 14:59:21.jpg (24.2 KB, 13 views)
sam.ho is offline   Reply With Quote

Old   March 11, 2014, 05:44
Default out put of sudo apt-get update
  #14
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Here is the out of the procedure mentioned in
http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F
Attached Images
File Type: jpg Screenshot from 2014-03-11 15:11:31.jpg (23.1 KB, 10 views)
sam.ho is offline   Reply With Quote

Old   March 11, 2014, 07:20
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sam.ho View Post
Here is the out of the procedure mentioned in
http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F
What is the content of the file it's complaining about?
wyldckat is offline   Reply With Quote

Old   March 11, 2014, 08:00
Default source.list
  #16
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
openfoam.list is empty . Nothing is there .
sam.ho is offline   Reply With Quote

Old   March 11, 2014, 16:01
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sam.ho View Post
openfoam.list is empty . Nothing is there .
I've tested this myself, namely to create an empty file inside the folder "/etc/apt/sources.list.d" and then ran:
Code:
apt-get update
and it did not give me any errors. The file "/etc/apt/sources.list.d/openfoam.list" that you have must have something inside it that is invalid.
Either erase this file or follow step #1 from here: http://www.openfoam.org/download/ubuntu.php
wyldckat is offline   Reply With Quote

Old   March 12, 2014, 02:15
Default
  #18
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi Bruno,

I have installed OpenFOAM-1.6-ext on my personnel laptop with the procedure explained in the link http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html

But only i could not compile DensityBasedTurbo solvers. I ran axial case out of these but simulation was not proper. Here with i have attached the log files.

But I am not able to install on my organization's system .
Still struggling
Attached Files
File Type: gz Axial_Rotor_MRF.tar.gz (1.7 KB, 2 views)
sam.ho is offline   Reply With Quote

Old   March 12, 2014, 15:50
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sangamesh,

Sorry, but apparently the DensityBasedTurbo repository hasn't been updated in over 2 years and seems to be considerably outdated from the latest 1.6-ext version. Or it might be a compiler compatibility problem, since someone managed to build it with an older GCC version, as implied by this bug report: http://sourceforge.net/apps/mantisbt...iew.php?id=205

I won't be able to try to look into this before this weekend, but on Saturday I'll try to look into it.

Best regards,
Bruno


edit: Or you can try and report this at the bug tracker, as explained in the "README" file that is inside the folder "src": http://sourceforge.net/apps/mantisbt..._view_page.php - be sure to detail the OF version and GCC compiler version you're using.


edit 2: As for installing in your organization's machine, what is the latest problem you're having there?

Last edited by wyldckat; March 12, 2014 at 15:53. Reason: see "edit:" and "edit 2"
wyldckat is offline   Reply With Quote

Old   March 13, 2014, 04:51
Post
  #20
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi Bruno,

I will be waiting for your reply regarding DensityBasedTurbo compilation.

Mean while I will explain what i did in organization to install OpenFOAM-1.6-ext.

I am following the procedure explained in the link
PHP Code:
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/OpenFOAMonYourOwnLaptop.html 
When I ran the caommand
Code:
sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev libgl1-mesa-dev libglu1-mesa-devlibqt4-dev qt4-dev-tools paraview
I obtained
Code:
sml5kor@BMH301562:~$ sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev libgl1-mesa-dev libglu1-mesa-dev libqt4-dev qt4-dev-tools paraview
[sudo] password for sml5kor: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package paraview is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'paraview' has no installation candidate
Still I proceeded for installation.
Later I downloaded scotch-5.1.10b.tar.gz
ParMGridGen-1.0.tar.gz
ParMetis-3.1.1.tar.gz
metis-5.0pre2.tar.gz
mesquite-2.1.2.tar.gz
libccmio-2.6.1.tar.gz
cmake-2.8.11.tar.gz files from the respective websites and placed at OpenFOAM/OpenFOAM-1.6-ext/Thirdparty/rpmBuild/SOURCES directory
Then ran the command
./AllMake.stage1 >& log.AllMake.stage1
I got message as "Package cmake-2.8.11 is already installed" in log file.
Then ran

./AllMake.stage3 >& log.AllMake.stage3 Log file of this is as follows
Code:
This system rpm command: rpm --force-debian

========================================
Starting ThirdParty AllMake: Stage3
========================================

Package name      : metis-5.0pre2
Package URL       : http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/metis-5.0pre2.tar.gz
RPM spec file name: metis-5.0pre2.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package metis-5.0pre2
Package metis-5.0pre2 is already installed
Done installing package 

Package name      : ParMGridGen-1.0
Package URL       : http://www.mgnet.org/mgnet/Codes/parmgridgen/ParMGridGen-1.0.tar.gz
RPM spec file name: ParMGridGen-1.0.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package ParMGridGen-1.0
Package ParMGridGen-1.0 is already installed
Done installing package 

Package name      : libccmio-2.6.1
Package URL       : http://portal.nersc.gov/svn/visit/tags/2.4.2/third_party/libccmio-2.6.1.tar.gz
RPM spec file name: libccmio-2.6.1.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package libccmio-2.6.1
Package libccmio-2.6.1 is already installed
Done installing package 

Package name      : mesquite-2.1.2
Package URL       : http://software.sandia.gov/~jakraft/mesquite-2.1.2.tar.gz
RPM spec file name: mesquite-2.1.2.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package mesquite-2.1.2
Package mesquite-2.1.2 is already installed
Done installing package 

Package name      : scotch-5.1.10b
Package URL       : https://gforge.inria.fr/frs/download.php/27583/scotch-5.1.10b.tar.gz
RPM spec file name: scotch-5.1.10b.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package scotch-5.1.10b
Download scotch-5.1.10b.tar.gz from : https://gforge.inria.fr/frs/download.php/27583/scotch-5.1.10b.tar.gz
--2014-03-13 10:23:17--  https://gforge.inria.fr/frs/download.php/27583/scotch-5.1.10b.tar.gz
Resolving gforge.inria.fr (gforge.inria.fr)... failed: Name or service not known.
wget: unable to resolve host address `gforge.inria.fr'
Making package scotch-5.1.10b using RPM.
Building package scotch-5.1.10b using SPEC file : scotch-5.1.10b.spec. Optional args: 
error: File /home/sml5kor/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/scotch-5.1.10b.tar.gz: No such file or directory
Installing package: scotch-5.1.10b
  Uninstalling scotch-5.1.10b using RPM: scotch-5.1.10b-linux64GccDPOpt.x86_64
  Installing scotch-5.1.10b using RPM file: /home/sml5kor/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/scotch-5.1.10b-linux64GccDPOpt.x86_64.rpm
error: open of /home/sml5kor/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/scotch-5.1.10b-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package 

Package name      : ParMetis-3.1.1
Package URL       : http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/OLD/ParMetis-3.1.1.tar.gz
RPM spec file name: ParMetis-3.1.1.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package ParMetis-3.1.1
Package ParMetis-3.1.1 is already installed
Done installing package 

========================================
Done ThirdParty AllMake: Stage3
========================================
Later I moved to install OpenFOAM-1.6ext and the log file is attached with this which seems to be similar to the log file attached in discussion #5. So I followed your instructions specified in #6 . Output is shown in snapshot.

I feel its the problem of
scotch-5.1.10b.

Please help me to get rid of this .
I am trying it from past 20 days .

Attached Images
File Type: jpg Screenshot from 2014-03-13 14:15:08.jpg (54.2 KB, 17 views)
Attached Files
File Type: zip log_Allwmake.zip (16.3 KB, 2 views)
sam.ho is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:10.