CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Updating OpenFoam 2.1.1 to 2.2.0 (http://www.cfd-online.com/Forums/openfoam-installation/115564-updating-openfoam-2-1-1-2-2-0-a.html)

kilroy April 2, 2013 09:47

Updating OpenFoam 2.1.1 to 2.2.0
 
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 April 2, 2013 11:42

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 (Post 417852)
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 April 2, 2013 14:15

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 April 2, 2013 14:21

"E: Couldn't find package openfoam220"
 
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,

JR22 April 2, 2013 14:56

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 (Post 417902)
I got the error below:
E: Couldn't find package openfoam220


kilroy April 2, 2013 14:59

I am not using a Virtual Machine. I am using Ubuntu 10.04.

wyldckat April 2, 2013 15:37

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: http://www.cfd-online.com/Forums/ope...-10-04lts.html

Best regards,
Bruno

kilroy April 2, 2013 15:45

Quote:

Originally Posted by wyldckat (Post 417916)
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: http://www.cfd-online.com/Forums/ope...-10-04lts.html

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.

DineshramBalaji June 19, 2013 17:41

upgrade OF
 
Hi bruno,

I am using OF 1.6. can i upgrade it to 2.2 directly or should I uninstall and reinstall newer version?

kilroy June 19, 2013 17:45

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,

DineshramBalaji June 19, 2013 17:56

Hi Killroy,

Thanks.

DineshramBalaji June 19, 2013 18:55

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?

kilroy June 19, 2013 19:29

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.

DineshramBalaji June 19, 2013 19:34

oh Thanks a lot.


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