CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] BlockMesh Permissions Workaround Not Working - File Locations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2023, 02:17
Default BlockMesh Permissions Workaround Not Working - File Locations
  #1
New Member
 
Max
Join Date: Jul 2023
Posts: 2
Rep Power: 0
LaserCooling is on a distinguished road
I'm trying the second tutorial on OpenFOAM, and I'm getting stuck on literally the first step, running BlockMesh.
My account is an admin account, so I'm getting this message

Quote:
--> FOAM FATAL IO ERROR: (openfoam-2306)
This code should not be executed by someone with administrator rights for security reasons.
It generates a shared library which is loaded using dlopen



file: system/blockMeshDict at line 17.

From static void Foam::dynamicCode::checkSecurity(const char*, const Foam::dictionary&)
in file db/dynamicLibrary/dynamicCode/dynamicCode.C at line 73.
I found these instructions, but for the life of me I can't find the the files that I would need to edit on my install.

cylinder case

I have a fresh install of v2306, using the Native Windows instructions since that seemed to be the easiest.

Here is where OpenFOAM is installed on my machine: [USER]\AppData\Roaming\ESI-OpenCFD\OpenFOAM\v2306. Can anyone give me some advice?
LaserCooling is offline   Reply With Quote

Old   August 22, 2023, 05:01
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,689
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Two things: never use root (admin) for running any programs beyond administrative tasks - even if you actually trust the sources. Running with dynamic code compilation will probably not work at all if you are using the cross-compiled windows binaries. If they are to work, they would probably need a lot more tools installed (gcc etc).


With the #eval keyword (instead of #calc), there will be no issues - since that keyword uses an internal parser and doesn't compile new code. If you have something like #codeStream etc, you will either have to skip those with the cross-compiled windows binaries or else use WSL and one of the precompiled Linux binaries (eg, for Ubuntu). You will have to make a decision.
olesen is offline   Reply With Quote

Reply


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41


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