CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Allow System Operations in OpenFOAM (https://www.cfd-online.com/Forums/openfoam-pre-processing/114602-allow-system-operations-openfoam.html)

amir.a.aliabadi March 13, 2013 19: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 22: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

Code:

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 works...plus its fun!". Instruction to do so are on the following page. Enjoy and good luck! :)

amir.a.aliabadi March 13, 2013 23:24

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

yesaswi92 January 8, 2014 21:01

Thanks a lot dan.
I initially tried:
Code:

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

qutadah.r July 1, 2021 23:17

I am running through the same problem when using blockMesh, i checked the contDict file from etc and the "allowSystemOperations" is already set to 1, so i dont know how to fix this problem. thanks!


All times are GMT -4. The time now is 02:58.