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

LibfoamUserso in multiuser configuration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2005, 07:35
Default We are trying to install OpenF
  #1
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
We are trying to install OpenFOAM on our cluster in order to be used by all the users.

Everything works fine, the question now is what is the right way to handle the user libraries...

When a user creates is own boundary conditions ,for example, and recompile the foamUser library the file libfoamUser.so is modified.

A user should not have the right to access the lib directory..

Is there any other method to handle this except to give the writing file permission to all the users?

Daniele
panara is offline   Reply With Quote

Old   March 16, 2005, 07:46
Default Users libraries should be comp
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Users libraries should be compiled into their own library directory. There are a set of FOAM_USER_??? variables within the build system to handle this. So the user should create a copy of the foamUser directory and change the Make/files file in their to create the libfoamUser.so in their own directory:

LIB = $(FOAM_USER_LIBBIN)/libfoamUser

and put a list of all the files they want to build and link into their library into that file as well, e.g.

interpolations = interpolations
surfaceInterpolation = $(interpolations)/surfaceInterpolation
schemes = $(surfaceInterpolation)/schemes

$(schemes)/limiterTest/limiterTestMake.C
turbulenceModels/incompressible/v2f/v2f.C

libfoamUser.C
LIB = $(FOAM_USER_LIBBIN)/libfoamUser
henry is offline   Reply With Quote

Old   March 16, 2005, 09:12
Default Thanks very much, now everithi
  #3
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
Thanks very much, now everithing is working fine!!

Just one extra little question, in order to make it work I had to add in my $PATH the $(FOAM_USER_LIBBIN) as well as $(FOAM_USER_APPBIN) path.

Was it the right thing to do? or I am making some other mistake

Daniele
panara is offline   Reply With Quote

Old   March 16, 2005, 09:16
Default That's a bit strange, as long
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
That's a bit strange, as long as you have $FOAM_USER_LIBBIN in your $LD_LIBRARY_PATH it should work fine. This should be done automatically by the OpenFOAM dot-files, could you check and let me know.
henry is offline   Reply With Quote

Old   March 16, 2005, 09:36
Default The reason was that after the
  #5
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
The reason was that after the creation of the $FOAM_USER_LIBBIN directory I didn't update the shell variables with the command

. /opt/OpenFOAM/OpenFOAM-1.0.2/.OpenFOAM-1.0.2/bashrc

Now everithing is clear, thanks very much!
panara is offline   Reply With Quote

Old   March 16, 2005, 09:55
Default The creation of those director
  #6
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
The creation of those directories, the setting of the corresponding environment variable and the update of $PATH and $LD_LIBRARY_PATH is fully automatic in OpenFOAM-1.1
henry is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best cluster configuration ziad OpenFOAM Installation 15 September 21, 2007 12:36
Configuration of MPICH mer OpenFOAM Installation 31 June 6, 2007 18:08
Dual configuration ff FLUENT 0 January 27, 2004 06:14
PC configuration for CFD Fernando Sanz Main CFD Forum 17 December 19, 2001 07:29
airplane configuration Shereef Main CFD Forum 10 October 26, 2000 11:48


All times are GMT -4. The time now is 23:41.