|
[Sponsors] |
central installation and compiling own sources |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2011, 08:32 |
central installation and compiling own sources
|
#1 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
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 |
|
July 19, 2011, 19:19 |
|
#2 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 export WM_PROJECT_INST_DIR=$FOAM_INST_DIR export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_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 Best regards, Bruno
__________________
Last edited by wyldckat; July 19, 2011 at 19:20. Reason: found a typo... |
||||
July 20, 2011, 04:48 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
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. |
||
July 20, 2011, 05:35 |
|
#4 | |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM Installation | rclprice | OpenFOAM Installation | 1 | July 21, 2011 17:31 |
[swak4Foam] compiling funkySetFields/wmake error | isa_ | OpenFOAM Community Contributions | 7 | July 8, 2011 05:26 |
[OpenFOAM] Installation problem with ParaView 3.8.0 on openSUSE 11.2 | aero_ | ParaView | 14 | August 2, 2010 19:13 |
Successful Installation My report | quartzian | OpenFOAM Installation | 2 | April 30, 2009 04:59 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |