CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM v1.7.1 on Ubuntu 12.04 LTS (https://www.cfd-online.com/Forums/openfoam-installation/107503-openfoam-v1-7-1-ubuntu-12-04-lts.html)

makaveli_lcf September 28, 2012 17:50

OpenFOAM v1.7.1 on Ubuntu 12.04 LTS
 
Hi all!

Recently I had to install 1.7.1 version on my laptop with Ubuntu 12.04 LTS.
The instructions are quite simple:

run the following in your console

Code:

VERS=maverick
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu $VERS main >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get install openfoam171 paraviewopenfoam381


Giuliano69 October 14, 2012 08:09

Hi.
We are using OF 2.1.1 with ubuntu 12.04.1 64 bit

We found a bug in the AMI+passive scalar of OF 2.1.1,
and would like to test it th correspondent OF ext 1.7.1.

Does your procedure is compatible with existing OF 2.1.1 installed ?
or is it better to follow
http://openfoamwiki.net/index.php/In...M-1.7.1/Ubuntu
?


Are you sure you are inserting the followint source list
www.openfoam.com
for the EXTENDED project ?

wyldckat October 14, 2012 09:06

Greetings to all!

@Giuliano:
Quote:

Originally Posted by Giuliano69 (Post 386526)
We are using OF 2.1.1 with ubuntu 12.04.1 64 bit

We found a bug in the AMI+passive scalar of OF 2.1.1,

Any chance you can test using OpenFOAM 2.1.x? http://www.openfoam.org/download/git.php - I say this because that bug could be already fixed in 2.1.x.
If the bug still occurs, please report in the bug tracker: http://www.openfoam.org/bugs/ - and please provide them with a simple test case.


Quote:

Originally Posted by Giuliano69 (Post 386526)
and would like to test it th correspondent OF ext 1.7.1.

AFAIK, the only publicly available Extend version is 1.6-ext, for which you'll find installation instructions here: http://openfoam-extend.git.sourcefor...s/Ubuntu/12.04

Quote:

Originally Posted by Giuliano69 (Post 386526)
Does your procedure is compatible with existing OF 2.1.1 installed ?
or is it better to follow
http://openfoamwiki.net/index.php/In...M-1.7.1/Ubuntu
?

Is very simple to have more than one version/variant of OpenFOAM installed in any machine. I've written about that here: Advanced tips for working with the OpenFOAM shell environment
As for the instructions at openfoamwiki.net: those currently are designed for a single installation. I still have to update them to comply with the multiple installation protocols :(. So for now, you'll need to keep in mind the alias trick explained at the blog post "Advanced tips [...]".

Quote:

Originally Posted by Giuliano69 (Post 386526)
Are you sure you are inserting the followint source list
www.openfoam.com
for the EXTENDED project ?

:confused: The Official OpenFOAM versions are made available at www.openfoam.com and www.openfoam.org. The Extend Project's variant(s) of OpenFOAM is made available through here: http://www.extend-project.de/
And like I wrote before, you can have as many OpenFOAM versions you want installed in your machine! As long as you use the previously alias method I referred to earlier.

Best regards,
Bruno

Giuliano69 October 14, 2012 15:49

thanks Bruno.

I followed your suggestion to intall the github
http://www.cfd-online.com/Forums/ope...tml#post385136

now I will add the alias for having different OF version (modified as my comment on your post)
----------------------------------------------
QUESTIONS :
do I still need to follow the instructions of
http://openfoam-extend.git.sourcefor...cb6bbd;hb=HEAD

or the github does it all ?

And what about system install ?
with the OF 2.1.1 installer, the package install under /opt the library code.

github seems to install ONLY in the home directory. Does it mean that each user has to run github to install the extended version ?

wyldckat October 14, 2012 16:04

Hi Giuliano,

I think you're confusion all versions! ;)

OK, from the official OpenFOAM distribution you've got:
  1. OpenFOAM 2.1.1, which you can install with either building from source or you can install using the official Deb packages (http://openfoam.org/download/ubuntu.php - for Ubuntu) or even by using Michael's easy (and unofficial) installation script that also uses the Deb packages: https://github.com/themiwi/OpenFOAM-Installer
  2. OpenFOAM 2.1.x, using the official instructions: http://openfoam.org/download/git.php
  3. OpenFOAM 1.7.1, either following the instructions from the first post or the ones from the wiki: http://openfoamwiki.net/index.php/In...M-1.7.1/Ubuntu

On the other hand, you've got the Extend Project's variant OpenFOAM 1.6-ext, for which the instructions you need to follow are these: http://openfoam-extend.git.sourcefor...s/Ubuntu/12.04


As for later moving the installation to a system-wide location, read the 2nd comment on my blog post: http://www.cfd-online.com/Forums/blo...ml#comment1682

Best regards,
Bruno

makaveli_lcf October 14, 2012 17:39

Hi all!

Thank you Bruno for your detailed clarifications) Regarding Giuliano's question about versions compatibility:
you can use all of them at once, moreover appropriated ParaView version is usually instaled along with different OF distributions. Just use alias command to source required OF bashrc script in a fresh terminal...

I have my solvers currently designed for OF 1.7 version, but unfortunately e.g. on our RHEL (Red Hat Enterprise Linux) cluster system libraries are not compatible with the OF v17x. Yeah, one can think about rebuilding OF from sources, after 2 weeks of tuning configuration scripts I just switched to the easier solution to use 1.6-ext.
It could be installed "with one click" (thanx to linnemann's CentFOAM)
And everything from 1.7 works for me fine, only once I came across syntax incompatibility, but it was too minor problem...

wyldckat October 15, 2012 06:29

Quote:

Originally Posted by makaveli_lcf (Post 386579)
I have my solvers currently designed for OF 1.7 version, but unfortunately e.g. on our RHEL (Red Hat Enterprise Linux) cluster system libraries are not compatible with the OF v17x.

FYI: I found something related to this (RHEL + OF 1.7) and reported here: http://openfoamwiki.net/index.php/In..._RHEL#RHEL_5.5

makaveli_lcf October 15, 2012 08:27

Wow, great! Thanx Bruno))) I will try it, because with 1.6-ext I faced a strange saw-oscillations of the k / epsilon residuals, in 1.7.x everything seems to be smooth...

Giuliano69 October 15, 2012 16:50

Thanks Bruno,
I clearly misunderstood version 1.7, considering it was the new version after 1.6-ext :D

Bug is serious and Submitted bug 00663 (huge non zero divergence on pRefCell=0 and closest cells....)

Installed 1.6 ext, but I will try to follow your hints, and install the github 2.1.x...


All times are GMT -4. The time now is 03:25.