@李东岳
李老师您好
安装的时候用的这个网页的内容http://www.dyfluid.com/install.html
具体安装的版本因为是Openfoam8但是演示的内容是OpenFoam9所以我把所有的9都替换成了8
演示的代码:
cd $HOME &&
mkdir OpenFOAM &&
sudo apt update &&
sudo apt-get install -y 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 &&
cd OpenFOAM &&
git clone https://e.coding.net/dyfluid/OpenFOAM/OpenFOAM-9.git &&
git clone https://e.coding.net/dyfluid/OpenFOAM/ThirdParty-9.git &&
source OpenFOAM-9/etc/bashrc &&
cd OpenFOAM-9 &&
./Allwmake -j &&
sed -i '$a source $HOME/OpenFOAM/OpenFOAM-9/etc/bashrc' $HOME/.bashrc
我安装的时候使用的代码:
cd $HOME &&
mkdir OpenFOAM &&
sudo apt update &&
sudo apt-get install -y 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 &&
cd OpenFOAM &&
git clone https://e.coding.net/dyfluid/OpenFOAM/OpenFOAM-8.git &&
git clone https://e.coding.net/dyfluid/OpenFOAM/ThirdParty-8.git &&
source OpenFOAM-8/etc/bashrc &&
cd OpenFOAM-8 &&
./Allwmake -j &&
sed -i '$a source $HOME/OpenFOAM/OpenFOAM-9/etc/bashrc' $HOME/.bashrc