CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Getting Started (https://www.cfd-online.com/Forums/openfoam-installation/81065-getting-started.html)

Guardian October 14, 2010 18: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.
Quote:

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 18:39

Greetings Guardian and welcome to the forum!

Try running the following two commands:
Code:

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:
Code:

cd $FOAM_RUN
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:
Code:

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:
Code:

export
env

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

env --help
man env

Best regards and good luck!
Bruno

Guardian October 14, 2010 20: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
blockMesh
icoFoam
paraFoam

...then paraview opened.

but where the hell is openfoam? :eek:

wyldckat October 15, 2010 07:06

Hi Guardian,

ParaView is used for post-processing: http://www.openfoam.com/docs/user/ca...#x5-130002.1.4

OpenFOAM did it's magic when you ran:
Code:

blockMesh
icoFoam

Best regards,
Bruno

Guardian October 15, 2010 12:22

ok i thought it looks like this. :rolleyes:
http://oshima.eng.niigata-u.ac.jp/Op...amXscreen2.png

wyldckat October 15, 2010 12:29

Hi Guardian,

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

Best regards,
Bruno


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