In this blog, quick reference notes about OpenFOAM are posted in a form of a summary to address a specific topic per post.
OpenFOAM Installation for Multiple Users
Tags install, multiple users, openfoam
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
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:
Hisham
Code:
OFver='source /opt/openfoamver/etc/bashrc'
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'
Total Comments 2
Comments
-
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
- The alias command you're mentioning:
Code:OFver=source /home/MrX/openfoamver/etc/bashrc
Code:alias OFver='source /home/MrX/openfoamver/etc/bashrc'
- The following links are for some of my posts on the topic of transferring a personal installation to a global installation:
BrunoPosted March 10, 2013 at 08:14 by wyldckat - The alias command you're mentioning:
-
Posted March 10, 2013 at 10:48 by Hisham