问题描述
我正在尝试使用 openFoam 和 blockMesh 创建网格,但是当我在项目目录中使用 blockMesh 时,我得到:
The parent directory does not allow write permission to the process,or one of the directories in ~/icoFoa,/cavity/cavity/constant/polyMesh did not allow search (exacute) permission.
为什么blockMesh不工作?
解决方法
我遇到了类似的问题。我通过更改运行模拟的每个文件的权限来解决它。也许有一个更聪明的答案,但这对我有用。此外,我不是在 /opt 而是 /home 中运行模拟。我使用的命令是:
sudo chmod 777 cavity/ %simulation file name
sudo chmod 777 0/
sudo chmod 777 constant/
sudo chmod 777 system/