CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Foam fatal io error ... "enabled by default because of security issues"

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 5, 2012, 02:58
Default Foam fatal io error ... "enabled by default because of security issues"
  #1
New Member
 
neetu kumari
Join Date: Mar 2011
Posts: 14
Rep Power: 6
neetu kumari is on a distinguished road
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
neetu kumari is offline   Reply With Quote

Old   September 5, 2012, 03:29
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
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.
Bernhard is offline   Reply With Quote

Old   September 5, 2012, 05:28
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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".
wyldckat is offline   Reply With Quote

Old   September 5, 2012, 07:09
Default
  #4
New Member
 
neetu kumari
Join Date: Mar 2011
Posts: 14
Rep Power: 6
neetu kumari is on a distinguished road
Thank you so much for the suggestions. As I am very new in handling OpenFOAM software codes, unable to interpret the meaning of errors.
neetu kumari is offline   Reply With Quote

Old   September 12, 2014, 15:54
Default
  #5
New Member
 
Mr. Howlin
Join Date: Sep 2014
Posts: 2
Rep Power: 0
Mr.Howlin is on a distinguished road
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.

Last edited by wyldckat; September 13, 2014 at 17:00. Reason: merged posted as they were posted ~1h apart
Mr.Howlin is offline   Reply With Quote

Old   September 13, 2014, 17:09
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat 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
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


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