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

OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 10, 2017, 08:11
Default OpenFOAM
  #1
New Member
 
PATRICIA NAKANWAGI
Join Date: May 2017
Posts: 22
Rep Power: 2
npatricia is on a distinguished road
Greetings,

I am a new OpenFOAM user, using OpenFOAM 2.4.0,
When I try to execute the command fluentMeshToFoam elbow.msh, i get feedback that command not found.
How can I rectify this?

Also, everytime I open a new terminal, there's "bash: /home/tflows/ .bashrc: line 119: syntax error: unexpected end of file"
What does it mean and how can I rectify it?
Thank you

PATRICIA
npatricia is offline   Reply With Quote

Old   May 10, 2017, 08:21
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,963
Blog Entries: 6
Rep Power: 33
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Patricia,

the problem is that you FOAM environment is not setup correctly. Therefore I think you installed FOAM and not compiled it. Therefore you have to load the bashrc from the /opt/openfoam.../etc/bashrc into your shell. However, you problem is not related to openfoam directly. It is more Linux/Unix stuff. The error you got if you open a terminal let you know that you made some mistakes in you local .bashrc. Open it and resolve the problem and put the correct path to the openfoam environment.

To make things clear:

Code:
cd $HOME
vim .bashrc
Check out the line 119 and remove your mistake. Then add an alias for loading your environment (or correct it) -- see also the openfoamwiki here: http://openfoamwiki.net/index.php/In...nFOAM_versions

Code:
echo "alias fo240=\"/opt/OpenFOAM-2.4.0/etc/bashrc\" >> $HOME/.bashrc
Check if this line appears correctly in your .bashrc file and be sure that the path is correct. Then reload the terminal or open a new one and type in
Code:
fo240
After that, the FOAM environment should be loaded and you can work with the FOAM applications. To check that, just type any FOAM command:

Code:
checkMesh
After typing fo240 there should be no error. Keep in mind that I was explaining it for the bash shell.
__________________
Keep foaming,
Tobias Holzmann

Last edited by Tobi; May 10, 2017 at 09:24. Reason: I made a big mistake. Thanks to bruno for informing me
Tobi 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
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 1 November 7, 2015 16:16
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 04:43
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 0 January 1, 2014 20:21
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 21:06.