開始
#sudo apt update
#sudo apt-get install build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev -y
#sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev -y
ホームディレクトリに OpenFOAM9 フォルダを作成します
#mkdir /home/Users/ OpenFOAM9
#cd /home/Users/ OpenFOAM9
OpenFOAM 7 フォルダの下にソースコードパッケージをダウンロードします
以下は高速ダウンロードリンクです
#git clone https://github.91chi.fun/https://github.com/OpenFOAM/OpenFOAM-9.git
#git clone https://github.91chi.fun/https://github.com/OpenFOAM/ThirdParty-9.git
元の GitHub ダウンロードリンク
#git clone https://github.com/OpenFOAM/OpenFOAM-9.git
#git clone https://github.com/OpenFOAM/ThirdParty-9.git
#source $HOME/OpenFOAM7/OpenFOAM-7/etc/bashrc
この場所でのコンパイルは、すべてのコアでのコンパイルであり、時間がかかります
以下の 16 はコア数の設定です
export WM_NCOMPPROCS= ## サーバーでのコンパイルに使用するコア数を指定します
export WM_NCOMPPROCS=16
export WM_COLOURS="black blue green cyan red magenta yellow"
#./Allwmake -j
コンパイルが完了したら、以下の出力が表示されます。コンパイルに成功しました
#blockMesh
ubuntuでOpenFOAMをインストールする
システムはUbuntu18.04です