CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Install troubles on fedora

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 19, 2011, 23:28
Default Install troubles on fedora
  #1
New Member
 
Join Date: Jul 2011
Posts: 1
Rep Power: 0
yoshimitsuspeed is on a distinguished road
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
yoshimitsuspeed is offline   Reply With Quote

Old   July 20, 2011, 02:49
Default
  #2
New Member
 
Joel Lehikoinen
Join Date: Jun 2011
Posts: 26
Rep Power: 6
joel.lehikoinen is on a distinguished road
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!
joel.lehikoinen is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 15 install help jenkins OpenFOAM Installation 10 October 27, 2011 17:51
install openfoam in fedora Ahmed Khattab OpenFOAM Installation 32 September 23, 2011 11:11
unable to install openfoam 1.7 using apt-get maazhmd OpenFOAM Installation 7 July 24, 2011 11:18
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Ubuntu AMD64 Installation Troubles mkw87 OpenFOAM Installation 31 April 27, 2008 13:59


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