|
[Sponsors] |
August 22, 2011, 04:53 |
how to change run directory
|
#1 |
Senior Member
Join Date: Mar 2009
Posts: 138
Rep Power: 17 |
HI,
Some time ago I created the foam run directory using: Code:
mkdir -p $FOAM_RUN Code:
mkdir -p $FOAM_RUN2 Somebody knows a solution? Thanks Camoesas |
|
August 22, 2011, 06:05 |
|
#2 |
Member
Jan Goebel
Join Date: Mar 2009
Location: Mannheim, Baden Wuerttemberg, Germany
Posts: 35
Rep Power: 17 |
Hi Camoesas,
$FOAM_RUN is the declaration for an environment variable that ist defined somewhere in the openfoam config files. So you have to find the file, with the entry: export $FOAM_RUN={directory path} and change it to your new directory path. I would suggest to use the grep command to find the config files, what should be something like: cd (openfoam_installdir) grep -r -l FOAM_RUN (or grep -r -l 'FOAM_RUN') I' m 100% shure, so take a look at the description for the grep command have fun, Jan |
|
August 22, 2011, 16:53 |
|
#3 |
Senior Member
Mohammad
Join Date: Feb 2010
Location: Shiraz, Iran
Posts: 108
Rep Power: 16 |
Hi Camoesas,
you can change foam_run directory in openfoam installated directory/etc/setting.sh and after editing that and save, simply run with "sh setting.sh" to have desired directory as foam_run directory. now mkdir $FOAM_RUN would make directory as you described in setting.sh test and tell about the result yours, mohammad |
|
August 23, 2011, 03:23 |
|
#4 |
Senior Member
Join Date: Mar 2009
Posts: 138
Rep Power: 17 |
HI Guys,
Thanks for the replys. A long and exhausting search with grep showed no results. grep just didnt find it. In the end I found it in installed_directory/etc/config/settings.sh and could change it. run it with sh settings.sh didn't work but it works anyway... thanks for the help! |
|
July 7, 2013, 07:28 |
|
#5 | |||
Senior Member
|
Quote:
Although this is almost an old thread, but just in case I found the solution. in order to have a new command for any directory, it is just enough to edit the file aliases.sh within Of_install_dir/etc/config by running the command: Quote:
Quote:
I hope it helps, Best Wishes Mojtaba
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change Gambit's default directory | alemenchaca | ANSYS Meshing & Geometry | 13 | December 14, 2016 22:54 |
[snappyHexMesh] jagged, ragged edges... | ziemowitzima | OpenFOAM Meshing & Mesh Conversion | 138 | July 24, 2012 00:41 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 16:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |