CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM

OF-1.6 and OF-1.5-dev installed simultaneously

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 24, 2010, 06:35
Default OF-1.6 and OF-1.5-dev installed simultaneously
  #1
Member
 
Aleksey Rukhlenko
Join Date: Nov 2009
Location: Moscow
Posts: 49
Rep Power: 7
Aleksey_R is on a distinguished road
Send a message via ICQ to Aleksey_R
Hello, colleagues!

Please explain me the following. Is it possible to have installed OF-1.6 and OF-1.5-dev on one PC simultaneously?
Now I have OF-1.6 installed and I would like to use some OF-1.5-dev features. I tried just to copy some source files to OF-1.6 src directory but these files failed to compile.

Best regards, Aleksey.
Aleksey_R is offline   Reply With Quote

Old   March 27, 2010, 06:21
Default
  #2
New Member
 
axpl's Avatar
 
Alexandro Palmieri
Join Date: Mar 2009
Location: Ravenna, Italy
Posts: 10
Rep Power: 7
axpl is on a distinguished road
Send a message via Skype™ to axpl
Yes Aleksey, you can install either version and switch from 1.6 to 1.5-dev. To use OF 1.6 you must uncomment the line in your .bashrc file

Code:
. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
#$HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc
#export PATH=$PATH\:$HOME/OpenFOAM/OpenFOAM-1.5-dev/wmake
and to use OF 1.5-dev uncomment the other two
Code:
#. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
$HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc
export PATH=$PATH\:$HOME/OpenFOAM/OpenFOAM-1.5-dev/wmake
After every changes remember to type, in a terminal, the command:
Code:
source ~/.bashrc
Sincerely,
Alex
axpl is offline   Reply With Quote

Old   March 27, 2010, 08:30
Default
  #3
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Aleksey,

I have the same setup, but if you get bored with opening .bashrc, editing, saving, and sourcing it, you could use an alias for each version. I have the following in .bashrc:

Code:
## Source OpenFOAM-1.5-dev
alias dev='. $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc'

## Source OpenFOAM-1.6.x
alias 16x='. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc'
So, when I want a certain version of OF I just type the alias (in this case "dev" or "of16") in the terminal and it works .
__________________
Regards, Gijs

Last edited by gwierink; March 27, 2010 at 08:31. Reason: typo
gwierink is offline   Reply With Quote

Old   March 27, 2010, 08:38
Default
  #4
Member
 
Aleksey Rukhlenko
Join Date: Nov 2009
Location: Moscow
Posts: 49
Rep Power: 7
Aleksey_R is on a distinguished road
Send a message via ICQ to Aleksey_R
Thanks for help, gentlemen!

And what version of paraview and other third party programs do you use? From 1.6 installation or from 1.5-dev?
Aleksey_R is offline   Reply With Quote

Old   March 27, 2010, 09:58
Default
  #5
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
I use ParaView-3.4.0 via VTK because that is at the moment the most stable on all my machines (but that's mainly a graphics card issue on my work laptop ... ).
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   March 27, 2010, 10:04
Default
  #6
New Member
 
axpl's Avatar
 
Alexandro Palmieri
Join Date: Mar 2009
Location: Ravenna, Italy
Posts: 10
Rep Power: 7
axpl is on a distinguished road
Send a message via Skype™ to axpl
I'm involved in ship hydrodynamics and, starting from OF 1.5-dev version I'm migrating to OF 1.6, either with ParaView 3.6.2 with vtkPOpenFOAMReader plugin.

Last edited by axpl; March 27, 2010 at 10:26. Reason: typo error.
axpl is offline   Reply With Quote

Old   May 6, 2010, 08:28
Default
  #7
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 6
flowris is on a distinguished road
Axl,

Did you already make a good ship simulation with OF-1.6. In this thread (Free Surface Ship Flow), some specialists decided to go back to 1.5 or 1.5-dev, because they had a lot of errors in 1.6.
flowris is offline   Reply With Quote

Old   May 13, 2010, 08:59
Default
  #8
New Member
 
axpl's Avatar
 
Alexandro Palmieri
Join Date: Mar 2009
Location: Ravenna, Italy
Posts: 10
Rep Power: 7
axpl is on a distinguished road
Send a message via Skype™ to axpl
Quote:
Originally Posted by flowris View Post
Axl,

Did you already make a good ship simulation with OF-1.6. In this thread (Free Surface Ship Flow), some specialists decided to go back to 1.5 or 1.5-dev, because they had a lot of errors in 1.6.
Now I never use OpenFOAM becouse error over CT are bigger than Fluent, I continue my study with Fluent waiting improvement in future OpenFOAM release. However, during my spare time I try to improve my OpenFOAM case setup... waiting for good news.

Alex
axpl 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



All times are GMT -4. The time now is 03:25.