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

How can i uninstall new version of OF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2013, 01:59
Default How can i uninstall new version of OF
  #1
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Dear OF users,

Truely speaking i am new OF user and I wanna ask you some questions about uninstallation of new version and install old version.

Actually, I have 2 pc and one of them i installed openfoam 2.1.1 and used cavitatingFoam solver. Everything is fine. But, For second pc during installation i saw last version of OF and installed 2.2.1. After that, when i wanted to run the cavitatingFoam i saw that there are some changes in the equations especially in the fvschemes between the versions as seen below with bold mark.

openfoam 2.2.1

divSchemes
{
default none;
div(phiv,rho) Gauss limitedLinear 1;
div(phi,U) Gauss limitedLinearV 1;
div(phiv,omega) Gauss limitedLinear 1;
div(phiv,k) Gauss limitedLinear 1;
div((muEff*dev(T(grad(U))))) Gauss linear;
}


laplacianSchemes
{
default none;
laplacian(nuf,rhoU) Gauss linear corrected;
laplacian(muEff,U) Gauss linear corrected;
laplacian(Dp,p) Gauss linear corrected;
laplacian(DomegaEff,omega) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(1,p) Gauss linear corrected;
}


openfoam 2.1.1


divSchemes
{
default none;
div(phiv,rho) Gauss limitedLinear 1;
div(phi,U) Gauss limitedLinearV 1;
div(phiv,omega) Gauss limitedLinear 1;
div(phiv,k) Gauss limitedLinear 1;
}

laplacianSchemes
{
default none;
laplacian(nuf,rhoU) Gauss linear corrected;
laplacian(muEff,U) Gauss linear corrected;
laplacian(rAUf,p) Gauss linear corrected;
laplacian(DomegaEff,omega) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(1,p) Gauss linear corrected;
}


But i did all settings for my calculations acc. to 2.1.1 version. After that i wanted to remove new version from the folder :/opt/openfoam221
rm -rf OpenFOAM-2.2.1 ThirdParty-2.2.1
and wanted to install 2.1.1 i couldnt do that even though i installed 2.1.1 version too. in my /opt folder i see both of version together.

what should i do to use 2.1.1 version and remove the 2.2.1 version.

Your help will be so appreciated.

Thanks in advance...
shipman is offline   Reply With Quote

Old   August 12, 2013, 02:35
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi
delete the folder of OpenFoam221 in /opt path.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 12, 2013, 04:00
Default
  #3
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
if you are insisting on removing your new version , you can remove it from synaptic manager or ubuntu soft ware center ( if you use ubuntu as OS)
or you can use following command:
Quote:
cd /opt
sudo rm -rf openfoam221
or
you can easily separate those installations with alias command in bashrc, then you can choose to run which one in terminal
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   August 12, 2013, 04:41
Default
  #4
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Dear Nima San,

thanks so much for your answer. Yeah i used it and removed the 2.2.1 version of OF. Than i changed the bash file final row as;

source /opt/openfoam211/etc/bashrc

and now in the /opt folder i can see only openfoam211. however, when i tried this command
mkdir -p $FOAM_RUN

to check which version run case will be created. It shows still 2.2.1

and then when i tried this command

cp -r $FOAM_TUTORIALS $FOAM_RUN

it gives error like no such kind of directory bcs i already removed the files of 2.2.1 acc. to your advice.

so could you tell me that why it still creats the $FOAM_RUN of version 2.2.1 when i use this command mkdir -p $FOAM_RUN? and how can i change it?

thanks in advance.
shipman is offline   Reply With Quote

Old   August 12, 2013, 04:51
Default
  #5
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
well, you may want to close your terminal and Open new one , then try it again
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   August 12, 2013, 05:01
Default
  #6
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Woow, thanks so muchh... Works well

I am so appreciated dear Nima

Best Regards..
shipman is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wmake error zxj160 OpenFOAM 0 March 26, 2012 11:52
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
bubbleFoam validation case balkrishna OpenFOAM Running, Solving & CFD 24 August 30, 2010 05:37
version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie Main CFD Forum 1 April 19, 2010 15:00
[OpenFOAM] Problem with paraFoam on a linux-64 bit bunni ParaView 4 April 14, 2010 21:55


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