CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

OF installation for multiple users

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

LinkBack Thread Tools Display Modes
Old   June 24, 2010, 10:52
Default OF installation for multiple users
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road

I want to share how I installed OF1.6 for multiple users on my 64-bit RHEL5. Because I could not get paraview3.6 going, I installed separately paraview 3.8. That is discussed separately.

Comments or suggestions on how others have done it are welcome.

I have a user account from which I do system & software management, $SM. All software is compiled there, and either stays there or is deployed into standard system locations.

For OpenFOAM, I have the $SM/OpenFOAM directory with the standard OF directory structure. The goal is for other users to execute a startup script that will allow them access to OF's environment (including aliases), sources, libraries & executables.

Note: The following is from memory

OpenFOAM 1.6
  • Create openfoam group
  • Assign all OF users to the openfoam group. Make $SM member of the openfoam group (not sure if that is necessary).
  • Install OF into $SM/OpenFoam.
  • Using access control lists, give read & execute privileges to OF files to openfoam group: setfacl -R -m grouppenfoam:rx $SM/OpenFOAM (you may need to modify fstab for your partition to allow for acls).
  • All system users have read&execute rights to $SM and its subdirectories (will be needed for paraview)
  • Modify OpenFoam/bin/bashrc to explicitly point to $SM/OpenFoam/OpenFoam-1.6/etc/bashrc (do not use the $HOME variable)
  • Give copies of the bashrc to openfoam users to place into their bin directory (name it OF.bashrc or some other thing)
I could have done the above without ACL's by giving other's rx priviledges. I am really not sure if going the ACL route is worth it.


I could not install PV systemwide. I did not have the patience to study the instructions (Actually, I don't know how to build rpms for systemwide installation). Instead I installed PV into $SM.

Enabling OF to use PV

  • Modify OpenFOAM-1.6/bin/paraFoam as follows:
  1. Change all `OpenFOAM' extensions to `foam' (I believe this is due to a new feature of PV3.8)
  2. point to the paraview executable with the absolute path, and no variables such as $HOME
  • Each user should prepend the paraview library directory to the LD_LIBRARY_PATH (i.e. it should have .../ParaView-3.8.0-Linux.../lib/paraview-3.8/)


Last edited by mirko; June 30, 2010 at 11:07. Reason: Clarify instructions
mirko is offline   Reply With Quote


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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 13:29
Fluent 5.5. What the differences with fluent 5.3?? confused FLUENT 2 July 29, 2001 21:58
2000 North American STAR-CD Users Conference Andrew Robertson CD-adapco 0 March 31, 2000 18:18

All times are GMT -4. The time now is 16:38.