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

Allow System Operations in OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2013, 20:11
Default Allow System Operations in OpenFOAM
  #1
New Member
 
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 17
Rep Power: 4
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, 23:39
Default
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 546
Rep Power: 18
chegdan 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!
__________________
Dan

Find me on twitter @dancombest and LinkedIn

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

Old   March 14, 2013, 00:24
Default
  #3
New Member
 
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 17
Rep Power: 4
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, 22:01
Default
  #4
New Member
 
Yesaswi
Join Date: Jan 2014
Posts: 24
Rep Power: 3
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

Reply

Thread Tools
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 On
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 22:07


All times are GMT -4. The time now is 10:28.