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

How can i uninstall new version of OF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 12, 2013, 00:59
Default How can i uninstall new version of OF
  #1
Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 98
Rep Power: 4
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, 01:35
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
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, 03:00
Default
  #3
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   August 12, 2013, 03:41
Default
  #4
Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 98
Rep Power: 4
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, 03:51
Default
  #5
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
well, you may want to close your terminal and Open new one , then try it again
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   August 12, 2013, 04:01
Default
  #6
Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 98
Rep Power: 4
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

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
wmake error zxj160 OpenFOAM 0 March 26, 2012 10: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 04:37
version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie Main CFD Forum 1 April 19, 2010 14:00
Problem with paraFoam on a linux-64 bit bunni OpenFOAM Paraview & paraFoam 4 April 14, 2010 20:55


All times are GMT -4. The time now is 00:15.