CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: blockMesh (
-   -   using parameters in blockMesh (

AmirBaqa1987 May 8, 2013 16:23

using parameters in blockMesh
1 Attachment(s)
Hi everyone,
I've used following commands in my blockMesh dictionary in order to modify my geometry easily:

D 5.0;
L 100.0;
halfAngle 45.0;
radHalfAngle #calc "degToRad($halfAngle)";
R #calc "$D/2";
CW #calc "$D/4";
CX #calc "$R*cos($radHalfAngle)";
CZ #calc "$R*sin($radHalfAngle)";
NPS 3;
NPD 3;
NPY 10;
(complete blockMesh Dict is attached)

But the following error appeared in terminal:

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

file: /home/amir/Desktop/cavity.pipe/constant/polyMesh/blockMeshDict from line 17 to line 21.
From function functionEntries::calcEntry::execute(..)
in file db/dynamicLibrary/dynamicCode/dynamicCode.C at line 81.
FOAM exiting

what should I do?
any help is appreciated.
best regards,

wyldckat May 8, 2013 16:31

Greetings Arjang,

The detail is that you need to turn on "allowSystemOperations".
I've written about this some time ago... read this section: 2.1 Additional tuning

Best regards,

hadinaghavi1988 May 8, 2013 17:24

thank you Bruno;)

All times are GMT -4. The time now is 23:43.