CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Getting Started (

Guardian October 14, 2010 19:10

Getting Started
I just installed openfoam how it's written in the manual.
Now i have a problem to continue with the "getting started" part.

Getting Started

Create a project directory within the $HOME/OpenFOAM directory named <USER>-1.7.1 (e.g. chris-1.7.1 for user chris and OpenFOAM version 1.7.1) and create a directory named run within it, e.g. by typing:

* mkdir -p $FOAM_RUN
I dont know what to do with $HOME? I can't create new directories in /home
and to write mkdir -p $FOAM_RUN in the terminal leads to nothing.
plz help

wyldckat October 14, 2010 19:39

Greetings Guardian and welcome to the forum!

Try running the following two commands:

echo $HOME
echo $FOAM_RUN

Do they output anything?
The first one should show your own user folder in the "/home" folder; For example "/home/guardian".
The second one should show something like "/home/guardian/OpenFOAM/guardian-1.7.1/run". If it doesn't, it's because OpenFOAM isn't properly installed. If it does show something, try running this:

If the command mkdir doesn't output any error message, then it did work! ;) If the variable FOAM_RUN were empty, mkdir would have told you this:

mkdir: missing operand
Try `mkdir --help' for more information.

If you want to know more about what environment variables are available in your terminal/shell, try these commands:


When in doubt what a command does use "man" or "--help". For example, for the command env, try:

env --help
man env

Best regards and good luck!

Guardian October 14, 2010 21:40

It wouldn't be a problem at all to create these directories with the file manager.
I just thought that i have to create them by using the mkdir command.
so i was just confused that it didn't work.

Now i copied the tutorials into the run directory and started it with the commands:
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity

...then paraview opened.

but where the hell is openfoam? :eek:

wyldckat October 15, 2010 08:06

Hi Guardian,

ParaView is used for post-processing:

OpenFOAM did it's magic when you ran:


Best regards,

Guardian October 15, 2010 13:22

ok i thought it looks like this. :rolleyes:

wyldckat October 15, 2010 13:29

Hi Guardian,

Nope, sadly FoamX is no longer supported nor developed AFAIK. For more information, you can read about it here.

Best regards,

All times are GMT -4. The time now is 15:04.