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

OpenFOAM Installation for Multiple Users

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

In this blog, quick reference notes about OpenFOAM are posted in a form of a summary to address a specific topic per post, which I think could be helpful as a reminder for my Alzheimer condition
Rate this Entry

OpenFOAM Installation for Multiple Users

Posted March 9, 2013 at 09:26 by Hisham
Updated March 10, 2013 at 10:47 by Hisham

If OpenFOAM was installed on a single user account using the OpenCFD binaries then for another user to have access to it is very simple. All one needs to do is to add an alias of the installation in the new user's .bashrc file

Code:
OFver='source /opt/openfoamver/etc/bashrc'
If, on the other hand, OpenFOAM (or OpenFOAM-ext) was compiled on a user account (say the user name is MrX) and a new user (MrY) wants to use the same installation, then:

1. MrX must make sure that MrY has read access to the OpenFOAM/OpenFOAM-ver directory (an openfoam group would be a good idea or open read access to others). In this case MrX will be the one responsible for compiling any custom solvers. Else, read-write access should be given on the whole OpenFOAM directory to MrY.

2. MrX has to change the OpenFOAM/OpenFOAM-ver/etc/bashrc file to change the relative path $HOME to the absolute path /home/MrX throughout the file (3 times)

3. MrY can now make an alias in his .bashrc file like:

Code:
OFver='source /home/MrX/openfoamver/etc/bashrc'
Hisham
Posted in Uncategorized
Views 822 Comments 2 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 2

Comments

  1. Old Comment
    Hi Hisham,

    Nice blog post! I've been meaning to do a blog post similar to this one (actually, to write a wiki page on the topic), but I haven't found the time for it yet.
    So I'll take the opportunity to leave some helpful comments
    Best regards,
    Bruno
    permalink
    Posted March 10, 2013 at 08:14 by wyldckat wyldckat is offline
  2. Old Comment
    Hisham's Avatar
    Thanks a lot Bruno. The post has been corrected
    permalink
    Posted March 10, 2013 at 10:48 by Hisham Hisham is offline
 

All times are GMT -4. The time now is 02:44.