refinementLevel command not found

In this troubleshooting guide we learn how to fix refinementLevel command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

refinementLevel: command not found

or when using sudo you get the following error message

sudo: refinementLevel: command not found

Solutions to refinementLevel: command not found

How To Fix refinementLevel: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu refinementLevel is provided by openfoam package.

openfoam is:

OpenFOAM is the free, open source CFD software released and developed primarily by OpenCFD Ltd since 2004. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to acoustics, solid mechanics and electromagnetics.

Package contains binaries.

To fix this problem, we can install more using the command below.

sudo apt-get -y install openfoam

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install openfoam.

sudo apt -y install openfoam

Or if you have aptitude installed you can use the following command.

sudo aptitude install openfoam

Summary

In this tutorial we learn how to fix refinementLevel command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.