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

OpenFOAM refuses to start

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2013, 01:14
Default OpenFOAM refuses to start
  #1
New Member
 
Madhukara Putty
Join Date: Jun 2012
Location: Bangalore
Posts: 8
Rep Power: 14
kotimari is on a distinguished road
Hi,

A couple of days ago, I installed OpenFOAM by following the instructions given here. I didn't have any issues in getting started. However, when I try it today, I have the following issues:

1.
Code:
mkdir -p $FOAM_RUN
throws up the error
Code:
mkdir: missing operand
2. icoFoam -help, blockmesh, icoFoam, and paraFoam commands throw up the error
Code:
command not found
.

The last line in .bashrc file is (as suggested in the aforementioned link):
Code:
source $HOME/.bashrc
Also, I am quite sure that I have taken into account the case sensitiveness of the commands.

I appreciate any help in getting me started with OF.


Thanks in advance!

Madhukar
kotimari is offline   Reply With Quote

Old   June 24, 2013, 03:53
Default
  #2
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 14
startingWithCFD is on a distinguished road
Quote:
The last line in .bashrc file is (as suggested in the aforementioned link):
source $HOME/.bashrc
In the link you provided, the last line of .bashrc is different (check "User configuration", step 2). In your version, .bashrc is sourcing itself.
startingWithCFD is offline   Reply With Quote

Old   June 24, 2013, 03:58
Default
  #3
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Quote:
Originally Posted by kotimari View Post
The last line in .bashrc file is (as suggested in the aforementioned link):
Code:
source $HOME/.bashrc
Also, I am quite sure that I have taken into account the case sensitiveness of the commands.
If you take a closer look into the document you mentioned you will find that the last line should be:

Code:
source /opt/openfoam220/etc/bashrc
billie is offline   Reply With Quote

Old   June 24, 2013, 06:36
Default
  #4
New Member
 
Madhukara Putty
Join Date: Jun 2012
Location: Bangalore
Posts: 8
Rep Power: 14
kotimari is on a distinguished road
I like to run icoFoam in the same terminal window. So I followed the instructions in Note 2 (in the same link).
However, I tried your path too, but in vain.

Last edited by kotimari; June 24, 2013 at 06:37. Reason: added link info.
kotimari is offline   Reply With Quote

Old   June 24, 2013, 06:48
Default
  #5
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 14
startingWithCFD is on a distinguished road
It is a bit confusing at first, you are right.

The following line
Quote:
source /opt/openfoam220/etc/bashrc
should be written inside the file ~/.bashrc, NOT written in the terminal!

The following line
Quote:
source $HOME/.bashrc
allows you to reload the .bashrc file. You do NOT need to do this!

All you need to do is to write the first command in the file and to restart your terminal session. Just forget about the second command!

Last edited by startingWithCFD; June 24, 2013 at 06:50. Reason: Some formating was removed for unknown reason.
startingWithCFD is offline   Reply With Quote

Old   June 24, 2013, 06:53
Default
  #6
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Quote:
Originally Posted by kotimari View Post
I like to run icoFoam in the same terminal window. So I followed the instructions in Note 2 (in the same link).
However, I tried your path too, but in vain.
There is a misunderstanding on your side.

Add:
Code:
source /opt/openfoam220/etc/bashrc
to your users .bashrc which is normally located in your home directory thus the $HOME prefix.
$HOME/.bashrc translates to /home/<yourusernamehere>/.bashrc

then if you want to execute icoFoam in the same terminal window execute:
Code:
source $HOME/.bashrc
You can as well open a new terminal and the environment for openfoam is sourced by your .bashrc and you can execute icoFoam without sourcing it, as this is the point of putting it in your .bashrc.

If you are new to Linux it is probably a good idea to acquire some basic Linux knowledge first.
billie is offline   Reply With Quote

Old   June 25, 2013, 08:08
Default
  #7
New Member
 
Madhukara Putty
Join Date: Jun 2012
Location: Bangalore
Posts: 8
Rep Power: 14
kotimari is on a distinguished road
Thanks for the replies. I get your point. Will try your suggestions once I get access to my laptop during this weekend.

I am not new to Linux per se, but editing bashrc file is a new thing indeed!

Madhukar
kotimari is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview refuses to start after installation of OpenFoam flotus1 OpenFOAM Installation 12 March 6, 2014 15:42
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 06:33
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50


All times are GMT -4. The time now is 17:33.