CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   op230 command won't load (https://www.cfd-online.com/Forums/openfoam-installation/143137-op230-command-wont-load.html)

shiva979 October 17, 2014 08:37

op230 command won't load
 
Hi - first post on the forum.

Wondering if someone could help me; I installed OpenFOAM 2.3.0 on Ubuntu 14.04 LTS using the tutorial at the following address:
http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

I started running through a tutorial and it all worked fine, then I turned the PC off and came back to it, and the terminal won't recognise the of230 command.
I'm not a regular Ubuntu (or even Linux) user so am not entirely sure what actually happens when this command is run.

This may have been already solved (probably is an easy problem!) but I can't understand it, or what may have caused it.

Thanks for any help
Seb

blacksquirrel October 17, 2014 10:23

Hi Seb,

There is probably something wrong in your bashrc file.
The of230 command tells your system where to look for the OpenFoam installation.
Have a look at step 7 in your tutorial, there you will find some explanation. Especially look at the links in the note to it.

So go in your home folder and take a look at your .bashrc or .bash_aliases:
Is there some command like
Code:

alias of230='source /PATH/TO/YOUR/OPENFOAM/ETC/BASHRC'
If yes: Check whether the path to your OpenFOAM installation correct.
If no: Add this command to your bash with the correct path to your installation.
do
Code:

source .bashrc
and now
Code:

of230
I hope this helps

shiva979 October 20, 2014 15:13

Hi
Tried it...think there's something wrong with my install.
Thanks for your help anyway

Cheers
Seb

wyldckat October 26, 2014 14:22

Quick answer:
  1. Run this command and tell us what it gave you:
    Code:

    tail ~/.bashrc
  2. For more details on why I asked this: http://openfoamwiki.net/index.php/In...with_the_Shell


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