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

[OpenFOAM.com] Command 'blockMesh' not found but openFoam and paraview are installed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2021, 10:48
Default Command 'blockMesh' not found but openFoam and paraview are installed
  #1
New Member
 
Lucas Pelchen
Join Date: Jan 2021
Posts: 3
Rep Power: 5
Lucas95 is on a distinguished road
Hello,


I'm new to openFoam and when I tried to do the first tutorial ( Driven Cavity Flow) I got this message in the terminal:


Command 'blockMesh' not found, but can be installed with:

sudo apt install openfoam





Befor that failure I used the following code in the shown order:


command:

sudo apt install paraview


answer:
Media change: please insert the disc labeled
'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)'
in the drive '/cdrom/' and press [Enter]


command:

sudo sed -i '/cdrom/d' /etc/apt/sources.list


sudo apt install paraview


wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash

sudo apt-get install openfoam2012-default


lucas@Lucas:~/openFoam/Tutorial/Lid_DrivenCavityFlow$ blockMesh

Command 'blockMesh' not found, but can be installed with:

sudo apt install openfoam



I cannot explain why I doesn't work and I reinstalled ubuntu 2 times. I hope you guys can help me getting out of this mess.


Many thanks in advance
Lucas95 is offline   Reply With Quote

Old   January 8, 2021, 11:37
Default
  #2
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Perhaps you forgot to source the bashrc file?

You need to source that file when you want to run OpenFOAM.
adhiraj is offline   Reply With Quote

Old   January 8, 2021, 14:10
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,689
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Many different ways - take a look here https://develop.openfoam.com/Develop.../wikis/running
olesen is offline   Reply With Quote

Old   February 2, 2021, 06:45
Default
  #4
New Member
 
Lucas Pelchen
Join Date: Jan 2021
Posts: 3
Rep Power: 5
Lucas95 is on a distinguished road
Thank you. Now it runs
Lucas95 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 13:24
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46


All times are GMT -4. The time now is 12:08.