./Allrun: 24: ./Allrun: cannot create /opt/openfoam220/etc/controlDict:
Hello everyone :)
I am a new OpenFoam user and try to understand the tutorial cylinder : Code:
/tutorials/basic/potentialFoam/cylinder I cannot create the regular file `/opt/openfoam220/etc/controlDict.3364' After typing the command Code:
./Allrun Code:
Modifying /opt/openfoam220/etc/controlDict to enable allowSystemOperations Code:
ERROR: In /home/kitware/Dashboards/MyTests/ParaView-master/VTK/IO/vtkOpenFOAMReader.cxx, line 4639 How can i solve this problem ? Thank you so much!!!!!!!!!!!!!!!!! |
Quote:
I use Linux 12.04 and OpenFOAM 2.20 I need your help. Thanks in advance, |
Hi Amin,
You are executing the tutorial in the root of the operating system, where you do not have permission to alter or add new files. Copy the entire tutorial folder to a location in your home directory, and you should be allowed to run the tutorials. Kind regards Niels |
Quote:
I copied the tutorial to location in my home directory, but i still have the same error. i did already the tutorial airfoil2d and cavity without any problems and i didn't receive this error.... :confused::confused::confused: |
Hi,
Sorry, I was a bit quick in my answer, since I mostly focused on the "permission denied" part of the error. The tutorial changes some options in the file Code:
/opt/openfoam220/etc/controlDict One option is to (i) manually change the file /opt/openfoam220/etc/controlDict and then (ii) remove the relevant parts from the Allrun. Another option is to understand what codeStream does and remove it from the simulation. A third option is to enforce changes by the script by executing Code:
sudo ./Allrun Kind regards Niels |
I Think the answer lies in the allowSystemOperations switch in the etc/controlDict. This must be set to "1" for the cylinder tutorial to work, as it uses run-time compiled C++ objects.
So, as root, change the allow SystemOperations value in etc/controlDict form 0 to 1, and you are good to go. For reference, this is how it should look like: Code:
InfoSwitches |
Thanks for your answer !
I tried to bluid the with blockMesh... but i received an Error. Code:
--> FOAM FATAL IO ERROR: I think haakon is right :) but i couldn't save the modification...because controlDict is in the file system..so how can save the change ? can you please explain why should i change the 0 to 1 ? Thanks a lot :) |
First; you need to do the change as root. If you do not have that access, ask your system administrator to do the change for you (they are usually really nice and helpful).
Second; you should change from 0 to 1 to allow OpenFOAM to build C++ code attached in the input files. See for example the code in tutorials/basic/potentialFoam/cylinder/system/controlDict as an example. It contain source code that needs to be compiled in order to work. The allowSystemOperations switch control this, if it 0 you are not allowed to build and execute source code from within the OpenFOAM input files. |
I changed the file and i can build the mesh using the command blockMesh, without any problems
Code:
/*---------------------------------------------------------------------------*\ Code:
./Allrun Code:
Modifying /opt/openfoam220/etc/controlDict to enable allowSystemOperations thank you for your support :) |
After having looked on the Allrun script myself, I don't think you should worry. The only thing it that part does is to change the allowSystemOperations from 0 to 1... Since you have already done that part, everything is hopefully fine. Are the results reasonable?
|
Quote:
when i write the commd Code:
potentialFoam Code:
Create time Code:
streamFunction Code:
Create time |
Greetings to all!
@Amin: If you look into the script file "Allrun", you'll see the instructions that should be used for running this example case. You can also seem it online here: https://github.com/OpenFOAM/OpenFOAM...ylinder/Allrun Since you now have the "allowSystemOperations" configured, then all that's left is to do the following commands: Code:
cp -r 0.org 0 Best regards, Bruno |
Hello Bruno :)
Thanks for your help. I can build the Mesh !!! :) But :( i still have a problem with this 2 commands potentialFoam streamFunction After typing the 2 commands, i did not get any errors....but after opening Paraview and applying the file, i got this Error : Code:
ERROR: In /home/kitware/Dashboards/MyTests/ParaView-master/VTK/IO/vtkOpenFOAMReader.cxx, line 6538 Code:
potentialFoam Code:
/*---------------------------------------------------------------------------*\ here is the controlDict-File https://github.com/OpenFOAM/OpenFOAM...ontrolDict#L27 and here is the output of Code:
streamFunction Code:
/*---------------------------------------------------------------------------*\ Code:
potentialFoam any idea :confused: Thanks :rolleyes: |
Hi Amin,
It looks like it's only ParaView which is having a hard time understanding how to open the case. Which exact version of ParaView are you using and how did you install it? Best regards, Bruno |
i am using ParaView-3.12.0-Linux-x86_64 and Ubuntu 12.04 and downloaded it from the website of ParaView http://www.paraview.org/paraview/resources/software.php
Thanks for your support :) |
Hi Amin,
I was not able to reproduce the same error. So here are a few suggestions:
Best regards, Bruno |
Hey Bruno :)
i did already the cavity and airfoil2d tutorial without any problems. the input of my system/controlDict ist now: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
ERROR: In /home/kitware/Dashboards/MyTests/ParaView-master/VTK/IO/vtkOpenFOAMReader.cxx, line 6538 |
Hi Amin,
OK, I finally managed to figure it out. The problem is due to this in the "0/U" file: Code:
left Code:
left But the following should work for both OpenFOAM and ParaView: Code:
left Best regards, Bruno |
Hello Bruno :)
The Error is gone :) but i think that potentialFoam is not working because the solver doesn’t calculate the velocity, pressure and the other variables for other delta T (Time).... here ist output of potentialFoam: Code:
Create time why ? |
Hey Bruno :)
i tried to run the Tutorial Code:
heatTransfer/buoyantSimpleFoam/circuitBoardCooling here is the message of the error : Code:
Code:
left could you please help me ? PS: i am using OpenFoam 2.2.0 |
All times are GMT -4. The time now is 11:16. |