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

How to install unbuntu system and open foam in your computer by VM

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

Rate this Entry

How to install unbuntu system and open foam in your computer by VM

Posted January 2, 2023 at 03:00 by shixuemozun
Tags openfoam

How to install unbuntu system and open foam in your computer by VM


First,you should go to this site: https://cn.ubuntu.com/download. In this site ,you can install this package. The package's name is ubuntu-22.04.1-desktop-amd64 (1).iso . it's type is iso. After you download it, you should reserve it instead of releasing it. Then, you should install a software named Vmware Work Staion. Last, you should download openfoam and thirdParty. When you finish the installation of Vm and ubuntu Then you can begin to install your openfoam.

First,when you open the terminal in the ubuntu system, you can put this code in it: mkdir OpenFOAM Then copy your openfoam and thirdParty into the OPenFOAM docement.

Then, you should input this code:

sudo apt-get update

sudo apt-get install build-essential autoconf autotools-dev cmake gawk gnuplot

sudo apt-get install flex libfl-dev libreadline-dev zlib1g-dev openmpi-bin libopenmpi-dev mpi-default-bin mpi-default-dev

sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev



After you finish it, you also should input this code to check your software version:

sudo apt-cache show gcc
sudo apt-cache show libopenmpi-dev
sudo apt-cache show cmake
sudo apt-cache show flex
sudo apt-cache show m4

After the system running it, you can:

sudo apt-get install libfftw3-dev libscotch-dev libptscotch-dev libboost-system-dev libboost-thread-dev libcgal-dev

Then, it is time for you to set up enviorment varies:

gedit ~/.bashrc

When you input the code, a texttile will appear and you can put code:source ~/OpenFOAM/[your openfoam name]/etc/bashrc at the last to set up correct enviorment varies.

After you finish it , you should close the terminal and restart it to create the varies.


Finally it is time for you to install your openfoam what you have download from Internet. First, you should put code: cd Openfoam

then : ./Allwmake -j -s -q -l [Pay attention, if you receive the error "icoFoam not installed" at last, you should exclude the -p out of this code]


Finally, we can install the thirdparty; First, you can input : sudo apt install paraview-dev

sudo apt install cmake qtbase5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libqt5x11extras5-dev libxt-dev

After yuo finish the progress, you can input:
cd Openfoam [if you have already in this oposition, you can not input the code]

Second, input this kind of code : ./Allwmake -j -s -q -l



Finally, you will finish the openfoam and paraview in your virtual system.

I hope it can help you to solve your troubles.


At last , if you do not want to follow this progress, you can down a complete package from this site() and then install to your virtual system directly.



If you have any question about it , we can discuss with each others below the comments.
Posted in Uncategorized
Views 518 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 14:31.