#Ubuntu18.04 桌面打开终端后:
sudo apt-get install ca-certificates
sudo apt-get update
sudo apt install curl
# Add the repository
curl https://dl.openfoam.com/add-debian-repo.sh | sudo bash
# Install preferred package. Eg,
sudo apt-get install openfoam2112-default
# Use the openfoam shell session. Eg,
openfoam2112
#查看是否安装成功
icoFoam
vim ~/.bashrc
#文末加上:
alias of2112='source /usr/lib/openfoam/openfoam2112/etc/bashrc'
source ~/.bashrc
of2112
#添加run文件
mkdir -p $FOAM_RUN
#安装完成