CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Allow System Operations in OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2013, 19:11
Default Allow System Operations in OpenFOAM
  #1
Member
 
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 33
Rep Power: 13
amir.a.aliabadi is on a distinguished road
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,
amir.a.aliabadi is offline   Reply With Quote

Old   March 13, 2013, 22:39
Default
  #2
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
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!

Last edited by chegdan; March 13, 2013 at 23:10.
chegdan is offline   Reply With Quote

Old   March 13, 2013, 23:24
Default
  #3
Member
 
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 33
Rep Power: 13
amir.a.aliabadi is on a distinguished road
Thank You Chegdan,
Yes, that is a good way to get around this problem.
Cheers,
aaa
amir.a.aliabadi is offline   Reply With Quote

Old   January 8, 2014, 21:01
Default
  #4
New Member
 
Yesaswi
Join Date: Jan 2014
Posts: 26
Rep Power: 12
yesaswi92 is on a distinguished road
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
yesaswi92 is offline   Reply With Quote

Old   July 1, 2021, 23:17
Default
  #5
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 4
qutadah.r is on a distinguished road
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!
qutadah.r is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 05:33
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 21:07


All times are GMT -4. The time now is 15:56.