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

Installation on Ubuntu 12.04 LTS

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By JonW

Reply
 
LinkBack Thread Tools Display Modes
Old   May 1, 2012, 07:34
Default Installation on Ubuntu 12.04 LTS
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear all,

I am going to install OpenFOAM 2.1.

It seems, from here, that it is not still available the pre-built edition for Ubuntu 12.04.

Is that right?

When will it be available?

Thanks a lot,

Samuele.
samiam1000 is offline   Reply With Quote

Old   May 1, 2012, 11:10
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Samuele,

I'm going to quote myself from another thread:
Quote:
Originally Posted by wyldckat View Post
you can try using the packages that are meant for 11.10, by running the following command:
Code:
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu oneiric main > /etc/apt/sources.list.d/openfoam.list"
Possibly the official OpenFOAM deb packages for Ubuntu 12.04 will only be released with the next big release of OpenFOAM 2.2, which should occur somewhere between June and July, if we compare with the dates of previous releases. This way they can validate if things still work as expected.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 1, 2012, 15:29
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear Bruno,

I successefully installed OF2.1 on Ubuntu 12.04.

The point is that I haven't been able to set paraview. I install it, but it seems that some links to the different libraries are missing.

Any hint?

Last edited by samiam1000; May 2, 2012 at 05:51.
samiam1000 is offline   Reply With Quote

Old   May 2, 2012, 06:24
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Don't have much time...

Install ParaView from Ubuntu:
Code:
sudo apt-get install paraview
and use:
Code:
paraFoam -builtin
samiam1000 likes this.
wyldckat is offline   Reply With Quote

Old   May 2, 2012, 06:26
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Thanks a lot!
samiam1000 is offline   Reply With Quote

Old   May 9, 2012, 07:53
Default
  #6
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
samiam, you didn't get any error compiling OpenFoam on ubuntu12.04?
or did you fix it somehow?

my problem is described here:
kubuntu 12.04 - error during compiling OpenFoam

Do you have any idea?

thanks a lot
fisch is offline   Reply With Quote

Old   May 9, 2012, 07:59
Default
  #7
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Actually,

I have not compiled it, but I have installed the .deb packages.. And everything seems to work properly.

The only problem I had was with paraview, but I solved it following Bruno's hints.

I am sorry I can't help you further.

Samuele
samiam1000 is offline   Reply With Quote

Old   May 21, 2012, 15:11
Unhappy install openfoam 2.1 and openfoam 1.6ext
  #8
New Member
 
A.R.Sangtabi
Join Date: May 2012
Posts: 12
Rep Power: 5
noshirvan is on a distinguished road
how i can install openfoam 2.1 and openfoam 1.6ext in my laptop?
noshirvan is offline   Reply With Quote

Old   May 22, 2012, 03:02
Default
  #9
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Which distro are you running?
samiam1000 is offline   Reply With Quote

Old   May 22, 2012, 03:48
Wink
  #10
New Member
 
A.R.Sangtabi
Join Date: May 2012
Posts: 12
Rep Power: 5
noshirvan is on a distinguished road
I'm installed ubunto 12.04 but can install ubuntu 12.04 and ubuntu 10.04 or fedora 16.
noshirvan is offline   Reply With Quote

Old   May 24, 2012, 12:33
Default OpenFOAM 2.1.x and 2.0.x on the Ubuntu 64bit server edition
  #11
Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 53
Rep Power: 6
JonW is on a distinguished road
Dear foamers
I have installed the server edition of the ubuntu 12.04 STL on two of my computers. Really nice if you like your Linux clean and lean (you can install xorg and thereafter fluxbox (sudo apt-get install xorg fluxbox), which I did [use startx to start the X11]). Note during ubuntu installation you don't have to install or activate any servers (I didn't). Both OF 2.0.x as well as 2.1.x compile without any problems. I followed the "git" instructions of the openfoam.org page.

It goes something like this (for the OF 2.1.x):

---------------------------------------------------
(1)
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libxt-dev
sudo apt-get install fort77
sudo apt-get install libscotch-dev libopenmpi-dev
apt-get install git-core
---------------------------------------------------
(2)
reboot just in case
---------------------------------------------------
(3)
cd ~/OpenFOAM
git clone git://github.com/OpenFOAM/OpenFOAM-2.1.x.git

download ThirdParty-2.1.0.tgz
tar xzf ThirdParty-2.1.0.tgz
mv ThirdParty-2.1.0 ThirdParty-2.1.x
---------------------------------------------------
(4)
source $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc
---------------------------------------------------
(5)
cd $WM_PROJECT_DIR
-----------------------
(6)
export WM_NCOMPPROCS=$(cat /proc/cpuinfo | grep processor | wc -l)
echo $WM_NCOMPPROCS
...and...
foamSystemCheck
---------------------------------------------------
(7) (if foamSystemCheck reports ok, which it should)

./Allwmake | tee wmake_log_file.txt
---------------------------------------------------
(8)
open new terminal
source $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc

cd $WM_THIRD_PARTY_DIR
./makeParaView
---------------------------------------------------
(9)
open new terminal (just in case)
source $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc

cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
wmSET
./Allwclean
./Allwmake
---------------------------------------------------
(10) (optional, if you have yet to create these dirs)
mkdir -p $FOAM_RUN
mkdir -p $FOAM_USER_APPBIN
mkdir -p $FOAM_USER_LIBBIN
cp -r $FOAM_TUTORIALS $FOAM_RUN
---------------------------------------------------
(11)
foamInstallationTest

and then your are set up (hopefully),... anyway worked for me
Hope this is of help
J.
elvis likes this.
JonW is offline   Reply With Quote

Old   May 26, 2012, 05:54
Default
  #12
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Quote:
Originally Posted by noshirvan View Post
how i can install openfoam 2.1 and openfoam 1.6ext in my laptop?
Hi Noshirvan,

your .bashrc should contain
alias startOF16ext='unset FOAM_INST_DIR;unset WM_PROJECT_USER_DIR;unset WM_THIRD_PARTY_DIR;source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc'
alias startOF21='unset FOAM_INST_DIR;unset WM_PROJECT_USER_DIR;unset WM_THIRD_PARTY_DIR;source /opt/openfoam21/etc/bashrc'
ofcourse the path should point to the real places on your computer

on console you can switch to openfoam 1.6ext or openfoam 2.1 just by typing startOF16ext or startOF21
elvis 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
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox Stubby OpenFOAM Installation 8 March 5, 2012 16:12
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 03:16
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 13:07.