CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Install troubles on fedora (http://www.cfd-online.com/Forums/openfoam/90749-install-troubles-fedora.html)

yoshimitsuspeed July 19, 2011 23:28

Install troubles on fedora
 
I am having problems getting openfoam to run. Installed from source pack and finally up to this point.

Quote:

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



Copy the tutorial examples directory in the OpenFOAM distribution to the run directory. If the OpenFOAM environment variables are set correctly, then the following command will be correct: cp -r $FOAM_TUTORIALS $FOAM_RUN



Run the first example case of incompressible laminar flow in a cavity: cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
blockMesh
icoFoam
paraFoam
From there I have exactly the same troubles as this guy. Found his thread searching for the problem.
http://forums.linuxmint.com/viewtopic.php?f=90&t=36177

Quote:

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

+ mkdir -p $FOAM_RUN/run

Copy the 'tutorial' examples directory in the OpenFOAM distribution to the
'run' directory. If the OpenFOAM environment variables are set correctly,
then the following command will be correct:

+ cp -r $WM_PROJECT_DIR/tutorials $FOAM_RUN
************************************************** ***************
Right of this i have managed to create a file named tom-1.6.x

when I type the mkdir into the terminal nothing actually happens so far as i can see. (Is it supposed to???)

So i assumed i had that right seen as nothing erroneous came up and typed in the cp command.

This did throw up the error:

cp: missing destination file operand after '/tutorials'
Only difference is I am running 2.0

joel.lehikoinen July 20, 2011 02:49

I'd say your environmental variables are not set up. You can run echo $FOAM_RUN and if it prints nothing, then those variables are not set. Did you remember to do this:

Code:


if running bash or ksh (if in doubt type echo $SHELL), source the etc/bashrc file by adding the following line to the end of your $HOME/.bashrc file:


source $HOME/OpenFOAM/OpenFOAM-2.0.0/etc/bashrc


then type “source $HOME/.bashrc” in the current terminal window

Especially the last line. Adding the line to your .bashrc file means that it will be run every time you start a new terminal, but if you haven't started a new terminal yet, then it has not been run, and environmental variables have not been set. And do make sure you are running the correct shell!


All times are GMT -4. The time now is 19:40.