CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Foam fatal io error ... "enabled by default because of security issues" (http://www.cfd-online.com/Forums/openfoam-solving/106669-foam-fatal-io-error-enabled-default-because-security-issues.html)

neetu kumari September 5, 2012 02:58

Foam fatal io error ... "enabled by default because of security issues"
 
I am neetu. I am trying to simulate flow over cylinder(potentialFOAM) problem, available in tutorial of OpenFOAM. While I am generating the mesh in OpenFOAM by using blockMesh command in case file directory, getting an error which sayes that: 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 by adding to the infoSwitches setting in the system controlDict:
allowSystemOperations 1

Does anyone has any idea about how to get out off this error.

Thanks

Bernhard September 5, 2012 03:29

The error should be self-explanatory. You have dynamic code in the blockMeshDict apparently, which should be compiled during runtime.

In OpenFOAM-2.1.0/etc/controlDict you will be able to set the mentioned switch.

wyldckat September 5, 2012 05:28

Either that, or use the Allrun script that the "basic/potentialFoam/cylinder/" tutorial has! ;)

Here's the online version: https://github.com/OpenFOAM/OpenFOAM...ylinder/Allrun - notice that it hacks this option into the personal copy of "etc/controlDict".

neetu kumari September 5, 2012 07:09

Thank you so much for the suggestions. As I am very new in handling OpenFOAM software codes, unable to interpret the meaning of errors.

Mr.Howlin September 12, 2014 15:54

Man, I have the same problem and I've already read this post some thousands times but I still don't know what to do. How can I enable the Switches? where?

I can't get out of this problem and this make me feel like an idiot.

can anyone help me??

thanks for reading.

edit:
Before someone think I am some kind of dumb, I should say that I've already try to enable the switches on the controlDict. But, unfortunately, the part of the code

" InfoSwitches
{

writePrecision 6;
writeJobInfo 0;
// Allow case-supplied C++ code (#codeStream, codedFixedValue)
allowSystemOperations 1;
} "

doesn't exist on my controlDict. Why don't I add it?
Well, actually, I've already did it. But still nothing.

This is scaring me.

wyldckat September 13, 2014 17:09

Greetings Mr. Howlin,

A few questions:
  1. Which OpenFOAM version are you using?
  2. Please have a look at the following section "Getting built-in feedback from OpenFOAM ": http://openfoamwiki.net/index.php/Ho..._from_OpenFOAM - more specifically, the two subsections there-in:
    • "Global location to turn on the built-in debug flags"
    • "Other locations to turn on the built-in debug flags"
    Those 2 subsections explain which exact "controlDict" file you should be looking at. In other words, it's not the file located in "system/controlDict".
    Uhm... so the question here is: Are you able to figure it out from the instructions on that wiki page, namely from those 2 subsections?

Sorry for not giving a very straight and clear answer right now, but it's just that OpenFOAM is really picky about details and it's best that you train yourself as soon as possible to spot small and important details in OpenFOAM cases.

Best regards,
Bruno


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