CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0 (http://www.cfd-online.com/Forums/openfoam-installation/131170-problems-installing-openfoam-2-3-0-1-6-ext-foam-extend-3-0-a.html)

sam.ho March 3, 2014 02:45

Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0
 
1 Attachment(s)
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

wyldckat March 3, 2014 08:08

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

sam.ho March 4, 2014 05:37

OpenFOAM-1.6-ext along with OpenFOAM
 
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

wyldckat March 4, 2014 06:30

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

sam.ho March 5, 2014 08:10

Error in installing OpenFOAM-1.6-ext
 
1 Attachment(s)
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

wyldckat March 5, 2014 17:17

Quote:

Originally Posted by sam.ho (Post 478262)
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?

sam.ho March 6, 2014 01:06

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 ?

wyldckat March 6, 2014 16:17

Quote:

Originally Posted by sam.ho (Post 478432)
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.

sam.ho March 7, 2014 00:34

Quote:

Originally Posted by wyldckat (Post 478618)
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 .

wyldckat March 10, 2014 16:43

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

sam.ho March 11, 2014 04:46

E: Package 'paraview' has no installation candidate
 
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

wyldckat March 11, 2014 04:59

Quick answer: You need to turn on the Universe repository: http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F

sam.ho March 11, 2014 05:31

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 479275)
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.

sam.ho March 11, 2014 05:44

out put of sudo apt-get update
 
1 Attachment(s)
Here is the out of the procedure mentioned in
http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F

wyldckat March 11, 2014 07:20

Quote:

Originally Posted by sam.ho (Post 479279)
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?

sam.ho March 11, 2014 08:00

source.list
 
openfoam.list is empty . Nothing is there .

wyldckat March 11, 2014 16:01

Quote:

Originally Posted by sam.ho (Post 479331)
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

sam.ho March 12, 2014 02:15

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

wyldckat March 12, 2014 15:50

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?

sam.ho March 13, 2014 04:51

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



All times are GMT -4. The time now is 19:22.