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

Updating OpenFoam 2.1.1 to 2.2.0

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 2, 2013, 09:47
Default Updating OpenFoam 2.1.1 to 2.2.0
  #1
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
Hello,

I am new to Linux. I want to update my OpenFoam 2.1.1 to 2.2.0.
Can you please help me which commands should I use?

Thanks,
kilroy is offline   Reply With Quote

Old   April 2, 2013, 11:42
Default
  #2
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 369
Rep Power: 12
cnsidero is on a distinguished road
No simple, one liner, to update. You need to install it like a new version (because it is a new version). Then to use one or the other, simply source the appropriate shell script to setup the environment.

There tends to be significant enough changes to the core framework between even dot releases (e.g. 2.1 to 2.2) to prevent simple updating. This also often requires modifications to custom written code (solver, BCs, etc).

Quote:
Originally Posted by kilroy View Post
Hello,

I am new to Linux. I want to update my OpenFoam 2.1.1 to 2.2.0.
Can you please help me which commands should I use?

Thanks,
cnsidero is online now   Reply With Quote

Old   April 2, 2013, 14:15
Default
  #3
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
Thank you very much for your response. I tried to install the OpenFOAM 2.2.0. I follow exactly the same steps that is presented on the website but there is a problem. After the 3rd step "sudo apt-get install openfoam220", I got the error below:

E: Couldn't find package openfoam220

Do you have any idea to how to solve that problem?

Thanks,
kilroy is offline   Reply With Quote

Old   April 2, 2013, 14:21
Default "E: Couldn't find package openfoam220"
  #4
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
I am trying to install the OpenFOAM 2.2.0. I follow exactly the same steps that is presented on the website but there is a problem. After the 3rd step "sudo apt-get install openfoam220", I got the error below:

E: Couldn't find package openfoam220

I am running Ubuntu 10.04. I checked the "sources.list" file and I can see that "deb http://www.openfoam.org/download/ubuntu lucid main" is there and also it gets updated fine at the end of the 2nd step too.

Do you have any idea to how to solve that problem?

Thanks,
kilroy is offline   Reply With Quote

Old   April 2, 2013, 14:56
Default
  #5
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 123
Rep Power: 8
JR22 will become famous soon enough
Do you have your linux environment within a Virtual Machine (e.g. VirtualBox)? Sometimes just with resetting the virtual machine, or disconnecting the LAN bridge and connecting it again is enough.

The question for the Senior Foamers is: Is it worth it to change to the 2.2.0 version now? Or should we wait for a 2.2.1? Regardless of how elegant the code is and how well tested it is, there are always bugs when major changes are made. I am excited about the improvements to snappyHexMesh which seem significant.

Quote:
Originally Posted by kilroy View Post
I got the error below:
E: Couldn't find package openfoam220

Last edited by JR22; April 2, 2013 at 15:00. Reason: Worth it upgrading to Openfoam-2.0.0 ?
JR22 is offline   Reply With Quote

Old   April 2, 2013, 14:59
Default
  #6
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
I am not using a Virtual Machine. I am using Ubuntu 10.04.
kilroy is offline   Reply With Quote

Old   April 2, 2013, 15:37
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@kilroy: I'm guessing you didn't read the available Ubuntu versions at the beginning of the page : http://www.openfoam.org/download/ubuntu.php
Quote:
Version 2.2.0, released 06/03/13

Ubuntu Versions

OpenFOAM and Paraview are currently available for the following versions of Ubuntu:
  • 11.10, codename oneiric
  • 12.04 LTS, codename precise
  • 12.10, codename quantal
Therefore, it's natural that you are not able to install OpenFOAM 2.2.0 using apt-get. You have to build from source, as explained on this thread: Installation Procedure of OF220 on Ubuntu 10.04LTS

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 2, 2013, 15:45
Default
  #8
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@kilroy: I'm guessing you didn't read the available Ubuntu versions at the beginning of the page : http://www.openfoam.org/download/ubuntu.php
Therefore, it's natural that you are not able to install OpenFOAM 2.2.0 using apt-get. You have to build from source, as explained on this thread: Installation Procedure of OF220 on Ubuntu 10.04LTS

Best regards,
Bruno
Thank you very much Bruno. Yes, I haven't checked that

I will follow the instructions on the post that you provided, I think that will solve the problem.
kilroy is offline   Reply With Quote

Old   June 19, 2013, 17:41
Default upgrade OF
  #9
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 4
DineshramBalaji is on a distinguished road
Hi bruno,

I am using OF 1.6. can i upgrade it to 2.2 directly or should I uninstall and reinstall newer version?
DineshramBalaji is offline   Reply With Quote

Old   June 19, 2013, 17:45
Default
  #10
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
Hi Dinesh,

You need to install the new version. There is no way you can upgrade OpenFoam from 1.6 to 2.2.

Hope this helps,
kilroy is offline   Reply With Quote

Old   June 19, 2013, 17:56
Default
  #11
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 4
DineshramBalaji is on a distinguished road
Hi Killroy,

Thanks.
DineshramBalaji is offline   Reply With Quote

Old   June 19, 2013, 18:55
Default
  #12
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 4
DineshramBalaji is on a distinguished road
Hi kilroy,

I tried to remove Openfoam using rm command. it produces this

rm: cannot remove `OpenFOAM/OpenFOAM-1.6.x/applications/solvers/heatTransfer/buoyantSimpleFoam/animation/1st.pvsm': Permission denied

is it a concern or can i just skip it and go ahead for installing newer version?
DineshramBalaji is offline   Reply With Quote

Old   June 19, 2013, 19:29
Default
  #13
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
You cannot remove openfoam this way. But to install a newer version you don't need to remove the older one. Just install 2.2 without doing anything with 1.6.
kilroy is offline   Reply With Quote

Old   June 19, 2013, 19:34
Default
  #14
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 4
DineshramBalaji is on a distinguished road
oh Thanks a lot.
DineshramBalaji 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
Problem with RenumberMesh in parallel in OpenFOAM 2.1.1 srini_esi OpenFOAM Mesh Utilities 1 November 8, 2013 03:48
No Wall pressure from OpenFOAM 2.2.0 musahossein OpenFOAM Post-Processing 11 October 1, 2013 14:08
Is OpenFOAM 2.1.1 Heat Transfer applications working? fontania OpenFOAM Running, Solving & CFD 0 September 20, 2012 23:15
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33


All times are GMT -4. The time now is 21:53.