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

[Other] installation of OpenFOAM V.5, OpenFOAM+ v1706, and foam-extend 4.0 all together

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2018, 14:03
Default installation of OpenFOAM V.5, OpenFOAM+ v1706, and foam-extend 4.0 all together
  #1
Member
 
Ash Kotwal
Join Date: Jul 2016
Location: North Dakota, USA
Posts: 92
Blog Entries: 1
Rep Power: 10
Ash Kot is on a distinguished road
I want to install OpenFOAM V.5 (from CFD direct), OpenFOAM+ v1706 (from ESI), and foam-extend 4.0 (from project foam-extend) all together on Ubuntu.

How should I do that? I know the installation of all three versions, if I'm installing them individual, but what is the procedure if I want to install all three of them on single system, without conflicts with each other?
Ash Kot is offline   Reply With Quote

Old   January 22, 2018, 06:00
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

You should make aliases to load the particular bashrc file for each version. For example I have this in my ~/.bashrc:

Code:
alias of30x='source $HOME/OpenFOAM/OpenFOAM-3.0.x/etc/bashrc'
alias of4x='source $HOME/OpenFOAM/OpenFOAM-4.x/etc/bashrc'
alias of5x='source $HOME/OpenFOAM/OpenFOAM-5.x/etc/bashrc'
alias ofplus='source ~/OpenFOAM/OpenFOAM-plus/etc/bashrc'
alias ofdev='source ~/OpenFOAM/OpenFOAM-dev/etc/bashrc'
alias foam32='source ~/foam/foam-extend-3.2/etc/bashrc'
alias foam40='source ~/foam/foam-extend-4.0/etc/bashrc'
which means that when I open a new terminal I have to type the alias corresponding to the version I would like to use. Just make sure you open a new terminal when you want to switch versions.

Regards,
Tom
tomf is offline   Reply With Quote

Old   May 31, 2018, 20:03
Default
  #3
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
just to add on, you may also source /etc/bash.bashrc if you dont want to open a new terminal
Hope it helps.
jiahui_93 is offline   Reply With Quote

Reply

Tags
foam extend 4.0, instalation, openfoam 17.06(v2), openfoam 5.0


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



All times are GMT -4. The time now is 14:54.