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

[OpenFOAM.org] blockMesh 'command not found' on Ubuntu 16.04

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2016, 07:39
Question blockMesh 'command not found' on Ubuntu 16.04
  #1
New Member
 
Frederick
Join Date: Jul 2016
Location: Birmingham
Posts: 1
Rep Power: 0
fredb is on a distinguished road
Dear all,

I am freshly new with OpenFOAM and I am going to use it for my PhD work. I recently installed it on Ubuntu 16.04 following the instructions from openfoamwiki website and just tried to run blockMesh. I faced the 'command not found' issue, so I checked online what could be the problem but I couldn't find a solution myself. I checked the log.make file but I can't find an error in it, maybe you will?

The end of my bashrc is as following:
Code:
alias of301='source $HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc WM_LABEL_SIZE=64'

export PATH="$PATH:~$HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc"
I've added the second line based on what I found on another thread but it didn't change anything. Do I need to add something more?

On the other hand, paraview is running fine from the bash.

Many thanks for your help.
Frederick
Attached Files
File Type: gz log.make.tar.gz (7.4 KB, 6 views)
fredb is offline   Reply With Quote

Old   July 10, 2016, 19:13
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Have you executed the command
Code:
of301
in your shell? Or added it to your .bashrc? Your second command
Code:
export PATH="$PATH:~$HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc"
does not make sense, because you add a file to the list of pathes, where commands for your shell are searched.
jherb is offline   Reply With Quote

Old   December 22, 2016, 03:31
Default
  #3
Member
 
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 9
ashishmagar600 is on a distinguished road
Currently, I am also encountering the same problem- blockMesh 'command not found'.

Previous to it was giving error "error while loading shared files." Then I added "source /home/magar/OpenFOAM/OpenFOAM-4.0/etc/" to ~/.bashrc.

However it made the problem worse.
ashishmagar600 is offline   Reply With Quote

Old   December 22, 2016, 04:02
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Quote:
"source /home/magar/OpenFOAM/OpenFOAM-4.0/etc/"
This should be "source /home/magar/OpenFOAM/OpenFOAM-4.0/etc/bashrc"

When you mean it made the problem worse, what were the error messages?

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   December 22, 2016, 04:37
Default
  #5
Member
 
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 9
ashishmagar600 is on a distinguished road
Thank you Antimony for your quick reply...

Also I figured out I need to source the bashrc file " source ~/.bashrc " . I didnt do this step so I was getting error as "blockMesh: 'command not found'"

Thanks again.
ashishmagar600 is offline   Reply With Quote

Old   December 22, 2016, 10:13
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
For future reference, this kind of issue is documented here: http://openfoamwiki.net/index.php/In...with_the_Shell
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workbench 18.2 Installation Error Ubuntu 16.04 turbostudent ANSYS 1 October 3, 2019 10:13
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
injection problem Mark New FLUENT 0 August 4, 2013 01:30


All times are GMT -4. The time now is 11:32.