|
[Sponsors] |
July 6, 2012, 01:39 |
IO Error while using PotentialFOAM
|
#1 |
Member
Shreyas Ragavan
Join Date: Feb 2012
Location: India
Posts: 37
Rep Power: 14 |
While running blockMesh for the 2D potential flow tutorial , over a cylinder , in the Programmer's guide, I get the error posted below :
I tried modifying the controldict file of this case, as suggested in the error message, but still get the same error. I'd be grateful for solutions to this problem. Some questions : Why has this error occured ? Which library is being loaded that is shared ? Why does this fall under the category of a security issue ? Error message : --> FOAM FATAL IO ERROR: Loading a shared library using case-supplied code is not enabled by default because of security issues. If you trust the code you can enable this facility be adding to the InfoSwitches setting in the system controlDict: allowSystemOperations 1 The system controlDict is either ~/.OpenFOAM/$WM_PROJECT_VERSION/controlDict or $WM_PROJECT_DIR/etc/controlDict |
|
July 6, 2012, 02:42 |
|
#2 |
Member
Shreyas Ragavan
Join Date: Feb 2012
Location: India
Posts: 37
Rep Power: 14 |
Solution : Basically involves reading the error message carefully.
Using the terminal, type in 'cd $ WM_PROJECT_DIR/etc' This is the source code directory. Type 'ls' to see the files available. There will be a file called controlDict. Using your preferred text editor, edit this file as a root user 'sudo medit controlDict' Under the category of infoswitches, you can see the option 'allowSystemOperations' , set the option to '1' . Navigate back to the case file and run blockMesh and potentialFoam. |
|
March 1, 2013, 17:05 |
|
#3 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
hey bro i havent found any "allow" option on the blockDict of the system folder.What I'm doing wrong??Please someone help me
|
|
March 2, 2013, 07:01 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Gabriel and welcome to the forum!
Quote:
But as the message provided in the first post indicates, what you can do is detailed on the following wiki page, section "2.1 Additional tuning ": http://openfoamwiki.net/index.php/Ti...itional_tuning Best regards, Bruno
__________________
|
||
March 2, 2013, 21:33 |
|
#5 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
guys i dont what to do.I still got the error after hours trying to fix it.All time I open the controlDict file ,there's nothing written there,its all blank.I reinstalled it over and over,and it's blank.
These are the commands Im using : IM opening the terminal ,and on the home folder i type : mkdir -p ~/.OpenFOAM/$WM_PROJECT_VERSION cp $WM_PROJECT_DIR/etc/controlDict ~/.OpenFOAM/$WM_PROJECT_VERSION/ sudo medit controlDict the controlDict is blank =/.WHat should I do?? |
|
March 3, 2013, 07:20 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Gabriel,
Do not use sudo and you should be editing the file with the full path: Code:
medit ~/.OpenFOAM/$WM_PROJECT_VERSION/controlDict Code:
echo $WM_PROJECT_VERSION echo $WM_PROJECT_DIR Bruno
__________________
|
|
March 3, 2013, 08:42 |
|
#7 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
Thanks guys!!Now it worked =D
|
|
October 24, 2013, 04:33 |
Help me
|
#8 | |
New Member
Minh-VietNam
Join Date: Oct 2013
Posts: 7
Rep Power: 13 |
Quote:
Hi. i have a problem, too. I can open file controlDict, i can change value of "allowSystemOperations " to 1 but i can't save this change. Should I do? Please, help me! ThankS |
||
October 26, 2013, 06:42 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@mingbn: Quote:
Best regards, Bruno
__________________
|
||
July 30, 2014, 11:42 |
new error
|
#11 |
New Member
upender singh
Join Date: Jul 2014
Location: new delhi, india
Posts: 11
Rep Power: 12 |
i did gedit the above issue but now there is a new one
it says.... --> FOAM FATAL ERROR: The parent directory does not allow write permission to the process, or one of the directories in "/opt/openfoam211/tutorials/basic/potentialFoam/cylinder/dynamicCode" did not allow search (execute) permission. From function Foam::mkDir(const fileName&, mode_t) in file POSIX.C at line 462. FOAM exiting |
|
August 16, 2014, 13:30 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings upender and welcome to the forum!
Well, that's what happens when you don't carefully read the User Guide: http://www.openfoam.org/docs/user/tutorials.php - in the introduction part of chapter 2, it states the following commands: Code:
mkdir -p $FOAM_RUN cp -r $FOAM_TUTORIALS $FOAM_RUN Code:
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity Best regards, Bruno
__________________
|
|
Tags |
io error, openfoam, potentialfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure distributions in potentialFoam | JoeLindsey | OpenFOAM Running, Solving & CFD | 3 | November 23, 2015 08:23 |
Using potentialFoam with simpleBuoyantFoam | lasb | OpenFOAM Running, Solving & CFD | 5 | August 28, 2015 13:32 |
simple geometry and potentialFoam? | Tobi | OpenFOAM | 0 | June 21, 2012 17:39 |
potentialFoam around a sphere ; mesh by Gmsh | eliam | OpenFOAM Running, Solving & CFD | 12 | January 26, 2011 04:02 |
PotentialFoam fails | bastil | OpenFOAM Running, Solving & CFD | 0 | April 17, 2009 10:43 |