按照李老师 http://dyfluid.com/docs/install.html 这里的编译安装
到配置环境变量:
在终端输入 gedit $HOME/.bashrc 会打开一个文件,我们在文件的最底部重新取一行添加下述文字:
source $HOME/OpenFOAM/OpenFOAM-5.x/etc/bashrc
保存并关闭。关闭终端并打开新的终端的时候,环境变量自动生效。
这里重新打开终端以后显示
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
后续操作无法进行,求大佬指导。