To install these packages on Ubuntu 18.04, execute the following commands in the terminal (for compiling and running OpenFOAM): sudo apt-get update These packages are FLEX, cmake, boost, Git distributed version control, and OpenMPI and etc. Sudo apt-get install gcc B) Installing prerequisites on your Computerĥ) Installing prerequisites: you need to install other packages to be able to compile and run OpenFoam and Paraview. If you do not have gcc installed on your computer or gcc version is lower than 4.8.5, execute the following commands: sudo apt-get update Two folders with names “OpenFOAM-v2006” and “ThirdParty-v2006” are created under ~/OpenFOAM folder.Ĥ) Compiler version: check the compiler version. Create a new folder with name “OpenFOAM” (if you already do not have it) on the home folder and move the compressed files into this folder.ģ) Unpacking the files: open a new terminal in this folder and decompress these two files: tar -xzf OpenFOAM-v2006.tgz Here we keep everything on the home folder of the computer. Or simply follow these links to download the compressed files by clicking on them:Ģ) Creating installation folder in the home folder: move the downloaded compressed files to the directory in which you want to install (compile) OpenFOAM v2006. You can find instructions to install older versions of OpenFOAM:ġ) Downloading source code: go to official website of OpenFOAM v2006 and download the source pack of the latest version (at the moment it is OpenFOAM v2006). Note: If you previously installed the older version of OpenFOAM from source pack, you may not need to install some of the prerequisite packages on your computer and skip them. These steps were also followed for installing OpenFOAM v2006 on Ubuntu 20.04 LTS. It is assumed that you are installing OpenFOAM v2006 on a fresh operating system. The operating system is Ubuntu 18.04 LTS. ![]() In this post you will learn how to install OpenFOAM v2006 from source pack.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |