central installation and compiling own sources
Hi everybody,
I read a lot of different ways of installing OpenFOAM in a central way. But anyhow, I still can't compile my own solvers on my local machine with OF installed centrally because I don't have write permission on the central installation. Do I really need it? Or do I have to change sth in the Make/options etc? Another question I was thinking about is: I use a Desktop and a Laptop. Both have OF installed. If I now have a personal OF-directory on a network storage could I use them for both installtions? Of course I would run the simulations locally on the machine, but the compiled sources of my own implementations would be present for the connected Computer? Thanks for your help! Lindstroem |
Hi Lindstroem,
Quote:
Quote:
For libraries use $(FOAM_USER_LIBBIN) ;) ________________________________ Quote:
So, to sum up, you can create this file "~/.OpenFOAM/1.7.x/prefs.sh" and/or this one "~/.OpenFOAM/2.0.x/prefs.sh" with something like this: Code:
export FOAM_INST_DIR=/mnt/OpenFOAM/OpenFOAM-version Finally, add this to your "~/.bashrc" file (don't forget to remove/comment other lines in there related to OpenFOAM, if they aren't using alias): Code:
alias of20x='source /mnt/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc' OK, I probably lost you somewhere... this is an easier way to do the same thing and should be compatible with both versions so add this to your "~/.bashrc" file (don't forget to remove/comment other lines in there related to OpenFOAM, if they aren't using alias): Code:
alias of20x='export FOAM_INST_DIR=/mnt/OpenFOAM/OpenFOAM-2.0.x; source $FOAM_INST_DIR/etc/bashrc WM_PROJECT_USER_DIR=$FOAM_INST_DIR/myarea' I'm sorry for making things look confusing... but I think it's all explained now :D Best regards, Bruno |
Quote:
Note that these site directories are normally located below $WM_PROJECT_INST_DIR/site, but as of OpenFOAM-2.0 the env variable $WM_PROJECT_SITE can be used to specify another location as desired. |
Dear Bruno,
thanks for the very detailed and well explained answer! Concerning the first part: Yes I did change these paths but still I got some write-permission errors. I can't post them right now, as we now installed it locally, but at least I know it should actually work as I thought. I'll try it again, when the Admin is back. Thanks for the hint! Quote:
You really helped me a lot! And thank you as well olesen for your hint! Best regards Lindstroem |
All times are GMT -4. The time now is 06:27. |