Error running terminal command to run openFoam functions

Good morning,


I am pretty new on Python coding, but I am trying to use OpenFoam (computer fluid dynamics open source software) through Python3.7 scripts. This software has some functions that can be called directly on the Terminal (I am working on Ubuntu 18.04) such as 'gmshToFoam', 'simpleFoam', etc.. which executes some functionalities. I write the following code on a file called

But when I run this on PyCharm, the following error is prompted:


However, if I run the python file directly using the Terminal (python3 it works. I have had the same problems with other functions, only when I try to run them inside PyCharm. 

I have been trying to use other commands such as, os.system(), ... with the same bad result.



Please sign in to leave a comment.