CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Native Meshers: blockMesh

using parameters in blockMesh

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

Like Tree4Likes
  • 4 Post By wyldckat

LinkBack Thread Tools Display Modes
Old   May 8, 2013, 16:23
Default using parameters in blockMesh
Arjang Behnoud
Join Date: Oct 2012
Posts: 61
Rep Power: 7
AmirBaqa1987 is on a distinguished road
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,
Attached Files
File Type: pdf Untitled 1.pdf (25.3 KB, 224 views)
AmirBaqa1987 is offline   Reply With Quote

Old   May 8, 2013, 16:31
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,036
Blog Entries: 39
Rep Power: 110
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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,
wyldckat is offline   Reply With Quote

Old   May 8, 2013, 17:24
New Member
Join Date: May 2013
Posts: 1
Rep Power: 0
hadinaghavi1988 is on a distinguished road
thank you Bruno
hadinaghavi1988 is offline   Reply With Quote

Old   June 29, 2016, 12:22
Default sine and cos angles in parametric #calc
Muhammad Usman
Join Date: Feb 2014
Posts: 91
Rep Power: 5
13msmemusman is on a distinguished road
thank you its helping
13msmemusman is offline   Reply With Quote


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
Pro/E to ANSYS Parameterization Guide Trues ANSYS 3 February 24, 2017 07:10
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Turbulence model parameters and equations Maximus91 Main CFD Forum 1 October 24, 2012 13:20
Parameters for multigrid solver HaZe OpenFOAM Running, Solving & CFD 3 January 28, 2012 03:05
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 12:59

All times are GMT -4. The time now is 00:30.