CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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

Like Tree2Likes
  • 1 Post By Bernhard
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2012, 03: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: 15
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, 04:29
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
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.
mizzou likes this.
Bernhard is offline   Reply With Quote

Old   September 5, 2012, 06:28
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 08:09
Default
  #4
New Member
 
neetu kumari
Join Date: Mar 2011
Posts: 14
Rep Power: 15
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, 16: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 18:00. Reason: merged posted as they were posted ~1h apart
Mr.Howlin is offline   Reply With Quote

Old   September 13, 2014, 18:09
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
mizzou likes this.
__________________
wyldckat 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 04:08.