|
[Sponsors] |
April 30, 2012, 09:29 |
Openfoam 2.1 installation in ubuntu 12.04
|
#1 |
Senior Member
JSM
Join Date: Mar 2009
Location: India
Posts: 192
Rep Power: 20 |
Dear All,
I am Fluent user till now. I am more interested in learning openfoam. First I tried in virtual box - ubuntu 11.04 & openfoam 2.1. It looks more interesting. So I installed ubuntu 12.04 64 bit in my desktop with dual booting. Now I want to install openfoam 2.1. Here I have question. Is it OK to install openfoam in ubuntu 12.04. Or shall I need to wait for some more time. Openfoam offcial website didn't tell anything about ubuntu 12.04 installation. Also I want to compile the source pack instead of debian pack. Could anyone tell me about the procedure and in future how to update openfoam for bug fixes. I already read the source pack compiling procedure in website. But I want to know your experience and issues in this. Thanks in advance
__________________
With regards, JSM |
|
April 30, 2012, 10:14 |
|
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
I don't know about the differences of source pack and repository release. I've installed OF as described at the repository release page http://www.openfoam.org/download/git.php
This worked quite well. Updating is quite easy (when using the git-repository) Just change to your installation directory (/home/user/OpenFOAM/OpenFoam-2.1-x) and type git pull this downloads only the files, that changed since your last update or when you installed OF. After that, just compile the sources again with ./Allwmake |
|
April 30, 2012, 10:50 |
|
#3 |
Senior Member
JSM
Join Date: Mar 2009
Location: India
Posts: 192
Rep Power: 20 |
Hi Gerhard
Are you installed in Ubuntu 12.04 64 bit version? I want to install source pack -http://www.openfoam.org/download/source.php. If I install source pack installation, then can I use "git pull" to get the latest bug fixes? Question might be silly. But I don't know about this.
__________________
With regards, JSM |
|
April 30, 2012, 11:29 |
|
#4 | |||
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
Hi,
I currently use ubuntu 10.04 LTS 64 bit. As I said, I don't know exactly the difference between source pack and repository release. So I hope an experienced user will answer this question. The OpenFOAM homepage states on this site http://www.openfoam.org/download/ that the repository is updated regularly. Quote:
Quote:
Quote:
|
||||
April 30, 2012, 11:57 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to both!
I didn't mention anything here before because Gerhard hasn't be wrong, at least as far as I can tell. So as an experienced user I can say that: yes, Gerhard is correct and 2.1.x is the version of OpenFOAM that has frequent updates, but there are two important details to keep in mind:
Code:
export WM_NCOMPPROCS=4 Best regards, Bruno
__________________
|
|
April 30, 2012, 14:55 |
|
#6 |
Senior Member
JSM
Join Date: Mar 2009
Location: India
Posts: 192
Rep Power: 20 |
Hi Bruno,
Thanks for your information. Now I understood the difference between source pack and repository pack. I will install openfoam 2.1 from source pack and compile it. I think it will be good starting point. From your reply, I concluded that Openfoam 2.1 can be installed in Ubuntu 12.04 64 bit without any issues. I will try and let you know the details.
__________________
With regards, JSM |
|
April 30, 2012, 14:58 |
|
#7 |
Senior Member
JSM
Join Date: Mar 2009
Location: India
Posts: 192
Rep Power: 20 |
Hi Gerhard Holzinger,
Thanks for your comments and quick response
__________________
With regards, JSM |
|
May 2, 2012, 04:38 |
|
#8 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
||
May 2, 2012, 17:55 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Gerhard,
In case you're wondering the impact of number of cores vs time it takes to build, here's an old blog post of mine: Build times for OpenFOAM 2.0.x code with Ubuntu 10.10 with its gcc 4.4.5 Best regards, Bruno
__________________
|
|
May 6, 2012, 16:19 |
Alternative: install oneiric instead of precise
|
#10 |
New Member
Wesley T.
Join Date: Apr 2009
Posts: 28
Rep Power: 17 |
Not everybody is comfortable building from the source code. It is not bad for OpenFoam, but it can be a bit daunting if it is the first time you are trying to compile.
It appears the version compiled for the previous version of Ubuntu (11.10, oneiric ocelot) will work on version 12.04 (precise pangolin) If you followed the instruction on the instruction on the openfoam ubuntu page: http://www.openfoam.org/download/ubuntu.php The repository for openfoam was put into your list for your package manager. If you are using synaptic (I assume the other package managers behave in a similar manner):
I hope some people find this to be helpful. Wes |
|
May 6, 2012, 18:21 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Wesley,
Good instructions! But I'm not 100% certain if Synaptic is installed by default in 12.04. Therefore, the quickest thing to do would be this: Code:
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu oneiric main > /etc/apt/sources.list.d/openfoam.list" Best regards, Bruno
__________________
|
|
May 7, 2012, 05:56 |
|
#12 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
__________________
~roman |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7 installation on Redhat linux | maxims | OpenFOAM Installation | 2 | November 30, 2012 05:29 |
openfoam installation | javad814 | OpenFOAM | 7 | January 27, 2012 12:31 |
openfoam installation for algeria (dz) | abbes | OpenFOAM Installation | 4 | July 18, 2011 20:16 |
Installing OpenFOAM 1.6 on Ubuntu 10.4 | sda | OpenFOAM Installation | 5 | May 27, 2010 21:19 |