|
[Sponsors] |
April 18, 2014, 06:01 |
cylinder case
|
#1 |
Member
Join Date: Jul 2013
Posts: 34
Rep Power: 13 |
Dear all,
I am facing problem while going through the tutorials. i am new user of OpenFoam. in cylinder case when i put Allrun command to run the problem i am getting following error in paraFoam window. p, li { white-space: pre-wrap; } RROR: In /home/opencfd/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/vtkPV4FoamReader.cxx, line 216 vtkPV4FoamReader (0xb07cb78): could not find valid OpenFOAM mesh ERROR: In /home/opencfd/OpenFOAM/ParaView-4.1.0/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754 vtkPVCompositeDataPipeline (0xb075dc8): Algorithm vtkPV4FoamReader(0xb07cb78) returned failure for request: vtkInformation (0xb088870) Debug: Off Modified Time: 91093 Reference Count: 1 Registered Events: (none) Request: REQUEST_INFORMATION ALGORITHM_AFTER_FORWARD: 1 FORWARD_DIRECTION: 0 ERROR: In /home/opencfd/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/vtkPV4FoamReader.cxx, line 216 vtkPV4FoamReader (0xb07cb78): could not find valid OpenFOAM mesh ERROR: In /home/opencfd/OpenFOAM/ParaView-4.1.0/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754 vtkPVCompositeDataPipeline (0xb075dc8): Algorithm vtkPV4FoamReader(0xb07cb78) returned failure for request: vtkInformation (0xb088870) Debug: Off Modified Time: 91093 Reference Count: 1 Registered Events: (none) Request: REQUEST_INFORMATION ALGORITHM_AFTER_FORWARD: 1 FORWARD_DIRECTION: 0 & when i am adding command of blockMesh i am getting following error message --> FOAM FATAL IO ERROR: This code should not be executed by someone with administrator rights due to security reasons. (it writes a shared library which then gets loaded using dlopen) file: /root/OpenFOAM/tutorials/basic/potentialFoam/cylinder/constant/polyMesh/blockMeshDict from line 17 to line 17. From function functionEntries::codeStream::execute(..) in file db/dynamicLibrary/dynamicCode/dynamicCode.C at line 68. FOAM exiting Please help me out to understand what is the problem |
|
April 19, 2014, 09:53 |
|
#2 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
well;
Quote:
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|||
April 21, 2014, 07:40 |
|
#3 |
Member
Join Date: Jul 2013
Posts: 34
Rep Power: 13 |
Dear Nima,
As per your suggestion i activate the allow system operation by replacing 0 with 1 but still getting the same error. am i missing something in this or have to replace with other number? |
|
April 21, 2014, 08:44 |
|
#4 |
Senior Member
|
Hi,
the error is self-explanatory Code:
--> FOAM FATAL IO ERROR: This code should not be executed by someone with administrator rights due to security reasons. (it writes a shared library which then gets loaded using dlopen) file: /root/OpenFOAM/tutorials/basic/potentialFoam/cylinder/constant/polyMesh/blockMeshDict from line 17 to line 17. |
|
April 22, 2014, 07:50 |
|
#5 |
Member
Join Date: Jul 2013
Posts: 34
Rep Power: 13 |
Dear alexey,
Now i got it, I installed OpenFoam as a sole root login. without root login i am not able to run any case. Is there any way how i can add another user account & run OpenFoam without root login? I dont want to do again Open foam installation procedure. This may be silly question but i am stuck on it. |
|
April 22, 2014, 08:13 |
|
#6 |
Senior Member
|
Hi,
as I don't know what Linux distribution you're using, my hits will be rather generic. In general it's simpler to install OpenFOAM system-wide using package manager (this way all permissions will be set correct and OF will be usable by all users of the system) but since you've decided to build it, here is the way to transfer it from root account to use account (by convention # will be shell prompt of root account, $ will be shell prompt of user): 1. Create ordinary user Code:
# useradd -m ofuser # passwd ofuser 2. Copy (or move, in this case use mv instead of cp -r) OpenFOAM folder from root home to new user home Code:
# cp -r /root/OpenFOAM /home/ofuser/ Code:
# cd /home/ofuser # chown -R ofuser OpenFOAM Code:
$ cd $ source OpenFOAM/etc/bashrc $ tut $ cd basic/potentialFoam/cylinder $ ./Allrun |
|
June 21, 2015, 18:07 |
|
#7 |
New Member
vito
Join Date: Jun 2015
Posts: 22
Rep Power: 11 |
Hello Alexym,
I have the same error as mentioned above FOAM FATAL IO ERROR: This code should not be executed by someone with administrator rights due to security reasons. (it writes a shared library which then gets loaded using dlopen) I am using openFOam on windows, I made the programme accessible to guest and tried using the blockMesh command in the guest account for the cylinder case but I get the same error. Kindly Help. |
|
August 23, 2018, 05:58 |
|
#8 |
Member
Arthur
Join Date: Aug 2014
Location: Italy
Posts: 47
Rep Power: 12 |
Hello
I also had this problem installing openFoam on Windows. I solved it doing these steps: 1)go to ... src/OpenFOAM/db/dynamicLibrary/dynamiCode folder 2)open dynamicCode.C file 3)comment the part of the error like this: /* if (isAdministrator()) { FatalIOErrorInFunction(dict) << "This code should not be executed by someone with administrator" << " rights due to security reasons." << nl << "(it writes a shared library which then gets loaded " << "using dlopen)" << exit(FatalIOError); } */ 4)go back to ...src/OpenFOAM folder 5)compile openFOAM with command: wclean libso && wmake libso 2>&1 | tee log.wmake 6)if you don't have 'make' install it for more information visit this link: https://www.computerhope.com/unix/umake.htm 7)if you don't have 'zlib1g-dev' library install it. Hope this will help someone. Artur |
|
July 31, 2019, 15:57 |
|
#9 |
New Member
OOS
Join Date: Jul 2019
Posts: 3
Rep Power: 7 |
I just wanted to let you know that this just saved my life, thank you so much!
This worked for me in a RHEL centOS 7.6 system, using the v6 openfoam image for docker. |
|
March 5, 2020, 09:37 |
|
#10 | |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Quote:
Dear alexeym, I wanted to do what you mentioned, but I faced with these problems: 1- When I wanted to create a new user, it gave me "permission denied" error! So, I log in with admin using "sudo -s". (Did I do right? or I didn't have to log in with admin?) 2- I did not have "OpenFOAM" folder as you did, so I copied openFOAM-7 folder. (Did I do right? or I had to find the same folder?) 3- The openFoam folder is copied in /opt/home/ofuser address, not in main home! What did I have to go? 4- Again, the "# chown -R ofuser OpenFOAM" command did not work, as I have no OenFOAM. At last, I couldn't use the openFoam on my home folder! Regards, Ali |
||
July 1, 2020, 13:50 |
Needs to be a way to do this without creating a user
|
#11 | |
Member
Join Date: Feb 2016
Posts: 41
Rep Power: 10 |
Quote:
For anyone running docker containers with automated applications we skip the whole user permissions, meaning you have permissions to do all of this if you have permissions to run the app. It make4s everything clearer. So is there a way to do the dynamic calculation without having to create a user? |
||
February 2, 2021, 13:54 |
|
#12 | |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5 |
Quote:
Thanks |
||
June 12, 2021, 08:29 |
overinterdymfoam two rotor error in openfoam.com msys2 windows v1906
|
#13 |
New Member
Saurabh
Join Date: Jul 2019
Posts: 4
Rep Power: 7 |
overinterdymfoam two rotor error in openfoam.com msys2 windows v1906
after giving command ./Allrun Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Overriding DebugSwitches according to controlDict overset 0; dynamicOversetFvMesh 0; cellVolumeWeight 0; Create mesh for time = 0 Selecting dynamicFvMesh dynamicOversetFvMesh Selecting motion solver: multiSolidBodyMotionSolver Selecting solid-body motion function rotatingMotion Applying solid body motion rotatingMotion to 2512 points of cellZone movingZone1 Selecting solid-body motion function rotatingMotion Applying solid body motion rotatingMotion to 2516 points of cellZone movingZone2 PIMPLE: no residual control data found. Calculations will employ 2 corrector loops Reading field p_rgh Reading field U Reading/calculating face flux field phi Creating cellMask field to block out hole cells Creating interpolatedCells field Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type RAS Selecting RAS turbulence model kEpsilon RAS { RASModel kEpsilon; turbulence on; printCoeffs on; Cmu 0.09; C1 1.44; C2 1.92; C3 0; sigmak 1; sigmaEps 1.3; } Reading g Reading hRef Calculating field g.h No MRF models present No finite volume options present DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0 Reading/calculating face velocity Uf Courant Number mean: 0 max: 0 Starting time loop --> FOAM FATAL IO ERROR: 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: J:/CFD/openem/msys64/home/ofuser/twoSimpleRotors/system/controlDict.functions.alphaVol From function static void Foam::dynamicCode::checkSecurity(const char*, const Foam::dictionary&) in file db/dynamicLibrary/dynamicCode/dynamicCode.C at line 78. If v2020 used then an error is no make found then I have used a later version then above error is pop-up. please help why this error is persists |
|
October 31, 2021, 23:56 |
|
#14 | |
New Member
Join Date: Oct 2021
Posts: 1
Rep Power: 0 |
Quote:
|
||
February 14, 2022, 09:46 |
wmake
|
#15 |
Member
Join Date: Mar 2018
Posts: 33
Rep Power: 8 |
Khan,
As far as I understand, you have to run the make files in OpenFOAM\v2106\msys64\home\ofuser\OpenFOAM\OpenFOA M-v2106\src\OpenFOAM. So first you tell shell to go there (you use cd), and then you input the command (wclean libso && wmake libso 2>&1 | tee log.wmake). I did that, and I got this error though: Code:
alessandro.sarti@28APO4951 MSYS ~/OpenFOAM/OpenFOAM-v2106/src/OpenFOAM $ wclean libso && wmake libso 2>&1 | tee log.wmake wclean libso wmake libso (OpenFOAM) /home/ofuser/OpenFOAM/OpenFOAM-v2106/wmake/rules/General/general:34: /home/ofuser/OpenFOAM/OpenFOAM-v2106/wmake/rules/win64Mingw/general: No such file or directory make: *** No hay ninguna regla para construir el objetivo '/home/ofuser/OpenFOAM/OpenFOAM-v2106/wmake/rules/win64Mingw/general'. Alto. /home/ofuser/OpenFOAM/OpenFOAM-v2106/build/win64MingwDPInt32Opt/src/OpenFOAM/options:6: *** falta un separador. Alto. wmake error: file '/home/ofuser/OpenFOAM/OpenFOAM-v2106/build/win64MingwDPInt32Opt/src/OpenFOAM/sourceFiles' could not be created in /home/ofuser/OpenFOAM/OpenFOAM-v2106/src/OpenFOAM Actually, I don't even know C, but it looks like shell first opens rules/General/general, and then, it sees there that it has to switch to win64mingw/general, which does not exist. So maybe there is a way to edit general/general so it doesn't refer to the win64mingw rules that don't exist, or we can make a rule file in win64mingw |
|
February 16, 2023, 06:20 |
user with similar error
|
#16 |
New Member
simon
Join Date: Feb 2023
Location: sweden
Posts: 1
Rep Power: 0 |
Hey!
I am just starting out with openfoam (on windows) and I have the same issue. I wanted to edited the dynamicCode.C like mentioned above, but when I search for the directory "dynamicCode" I just find a folder under etc/codeTemplates and it doesnt have a dynamicCode.C file. Running the blockMesh command throws the admin error, and also says --> From static void Foam::dynamicCode::checkSecurity(const char*, const Foam::dictionary&) in file db/dynamicLibrary/dynamicCode/dynamicCode.C at line 72. <-- Based on this it seems the file dynamicCode.C should be found when searching the folders but no... I tried a cd $FOAM_SRC command but it also just says No such file or directory. Help a lost soul out pls. |
|
July 29, 2023, 14:43 |
|
#17 | |
New Member
Markus Bähner
Join Date: May 2023
Posts: 4
Rep Power: 7 |
Quote:
i have the exact same problem. Is this due to a newer version of OpenFOAM? |
||
December 20, 2023, 08:01 |
|
#18 |
New Member
JC
Join Date: Dec 2023
Posts: 1
Rep Power: 0 |
Hello,
I had the same issue is referred here: "--> 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." I'm using OpenFoam 2306 with ubuntu WSL. I tried coment some of the code like is sugested on this forum, however, then i wasn't able to use the libraries due to :"error while loading shared libraries: libOpenFOAM.so: cannot open shared object file: No such file or directory" erro. I have also tried to implement a new user like its suggested, however the command "chown -R ofuser OpenFOAM" shown the follow error message:"chown: cannot access 'OpenFOAM': No such file or directory". Can you give me some tips. Best regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D flow around a circular cylinder case with interFoam solver | shuoxue | OpenFOAM Running, Solving & CFD | 2 | January 14, 2020 14:23 |
MRFSimpleFoam wind turbine case diverges | ysh1227 | OpenFOAM Running, Solving & CFD | 2 | May 7, 2015 11:13 |
flow around a circular cylinder with velocity inlet and outflow outlet | shuoxue | OpenFOAM | 1 | March 3, 2014 11:42 |
Error for an oscillating cylinder case (oscillatingFixedValue) | aut_iut | OpenFOAM Bugs | 0 | April 30, 2010 07:19 |
Turbulent steady flow around a circular cylinder | Mirek Kabacinski | FLUENT | 0 | July 23, 2003 19:40 |