CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Allow System Operations in OpenFOAM (

amir.a.aliabadi March 13, 2013 20:11

Allow System Operations in OpenFOAM
Hello Dear FOAMers,

I like to enable the "allowSystemOperations" in controlDict under opt/openfoam211/etc system directory. This enables to load a shared library using case-supplied C++ code.

To do so, I opened the controlDict with the standard Ubuntu text editor and changed the "allowSystemOperations" setting from 0 to 1, but the editor does not let me modify and save the file with the same name, saying that permission to modification is denied. Is there a way to get around this and overwrite this file?

Many Thanks,

chegdan March 13, 2013 23:39

This is because your install is in /opt, which is outside your home directory and you don't have default permission to adjust things there. if you have administrative rights, you can do


sudo gedit /opt/openfoam211/etc/controlDict
And then change the value you want and save the file. At this point, this is where i say...."I wouldn't use the deb install of OpenFOAM" and urge you to .."compile it from scratch as you will have less problems and learn more about how OpenFOAM its fun!". Instruction to do so are on the following page. Enjoy and good luck! :)

amir.a.aliabadi March 14, 2013 00:24

Thank You Chegdan,
Yes, that is a good way to get around this problem.

yesaswi92 January 8, 2014 22:01

Thanks a lot dan.
I initially tried:

sudo nano controlDict
But that kind of messed up the addresses and didn't allow me to mesh for any other case even. Your's was simple and straight forward

All times are GMT -4. The time now is 17:39.