|
[Sponsors] |
July 31, 2013, 16:25 |
Error in pipleCyclic tutorial
|
#1 | |
New Member
Join Date: Jul 2013
Posts: 5
Rep Power: 12 |
Hello,
I'm new with OpenFOAM so I'm running the different tutorials to have an understanding of it before using it for my own purpose. I want to try the pipeCyclic exemple from the incompressibles simpleFoam cases. After doing a blockMesh, a do a checkMesh to be sure everything is ok. But then, i get a: Quote:
As this is a exemple already in OpenFOAM, I assume there is no error in it so I'm doing something wrong there. An idea of what it ? |
||
July 31, 2013, 17:30 |
|
#2 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
Hi Elglanto,
You should have at least a '0'-folder in your case. I guess (don't have the tutorial on my pc here) that it has a 0.orig-folder instead. Simply run Code:
cp -r 0.org 0 Cheers, L P.S.: If there is a Allrun script given in the case folder, it's best to use this to run the tutorial not to miss any essential steps. |
|
July 31, 2013, 18:58 |
|
#3 |
New Member
Join Date: Jul 2013
Posts: 5
Rep Power: 12 |
Hello Lieven, thanks for your answer.
From what I understood, you mean that i should rename the 0.org folder to 0. Is that correct? If it is, I already done that although I did it via the interface and not the terminal. About the Allrun script, there is one which I tried after your message. From the clean case (keeping the 0.org) the Allrun script create the 0 file and a buch of others with similar names (log.blockMesh, log.simpleFoam, log.blabla etc.) but no directory at others times. Is that normal ? Because from what I understood, the Allrun script should run the entire case. |
|
August 1, 2013, 06:32 |
|
#4 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
Hi Elglanto,
It all depends on the settings in the controlDict. OF does not store every time step. The fact that it creates all the log-files proves that it is doing something. So open the log-files and try to understand what is happening. It can be two things: 1. The case runs perfectly but the settings in the controlDict do not ask to write the solution 2. An error occurred somewhere and then you will find a description of it in one of the log-files. Could you maybe post the error you get when you run the simpleFoam command? Cheers, Lieven |
|
August 2, 2013, 16:38 |
|
#5 | |||
New Member
Join Date: Jul 2013
Posts: 5
Rep Power: 12 |
Hello Lieven, here are the results of the tests I made. Between each tests, I delete the pipeCyclic folder case and copy a new one to start from fresh.
1st attempt When i run a blockMesh command, I get the following error which I had previously: Quote:
2nd attempt Now, i don't see any errors when running the blockMesh command but if i run checkMesh, I get the following error: Quote:
Quote:
3rd attempt With a clean case and 0.org renamed, I run the blockMesh command with no error, I check with checkMesh, no error so I run simpleFoam command and... it worked fine. Which means that on my very first attempt, before I opened the topic, I did something wrong. Now, i have three new time folders (100, 200, 229). But i still don't understand why the Allrun script didn't work. But thanks a lot for your help. |
||||
August 3, 2013, 08:00 |
|
#6 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
well, you miss this command:
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
August 3, 2013, 14:41 |
|
#7 |
New Member
Join Date: Jul 2013
Posts: 5
Rep Power: 12 |
Hello,
actually, I did it by hand. I'm still not fully used to linux terminal. |
|
May 23, 2014, 00:27 |
|
#8 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Dear elglanto
Dear elglanto, I want to test the pipeCyclic case, but when I run blockMesh, the error occurs: Code:
Creating block mesh from "/home/zq/desktop/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict" Using #calcEntry at line 26 in file "/home/zq/desktop/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict" --> 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: /home/zq/desktop/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict from line 17 to line 23. Last edited by wyldckat; May 24, 2014 at 03:38. Reason: Added [CODE][/CODE] |
|
May 24, 2014, 03:44 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Niu,
At first I was going to state that the problem was due to a missing flag, but then I re-read the error message and it clearly states that you're running with admin powers, i.e. running as root. In other words, you probably used sudo or su to switch to root mode and this way you're taking the risk of accidentally damaging your system installation and loosing all of your work . You should use your normal user account to run the OpenFOAM cases. I don't know why you're running as root, but this tutorial should work just fine if you run the script Allrun that should be present in that tutorial, which has all of the necessary steps for running that tutorial case. For more on the topic of "Allrun", please read this thread: http://www.cfd-online.com/Forums/ope...allrun-do.html Best regards, Bruno
__________________
|
|
May 24, 2014, 09:29 |
|
#10 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Dear Bruno,
I can't execute any command of OF, because my OF2.2.0 was installed in root, so the "All run " didn't work, do you has any experience of running OF using normal account? Best regards! Z.Q. Niu |
|
May 24, 2014, 13:07 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Z.Q. Niu,
It's easier to help you if you can tell me which installation instructions you followed. Because this issue should be easily solved as soon as I know how you installed OpenFOAM. Best regards, Bruno
__________________
|
|
May 24, 2014, 13:10 |
|
#12 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Dear Brunoi,
Thank you very much!I installed OF2.2.0 via a Deb package. |
|
May 24, 2014, 13:27 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Try these steps:
If there is no error, then you can restore the correct user permissions to the files located on your desktop folder, by following these steps:
|
|
May 25, 2014, 07:35 |
|
#14 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Dear Bruno,
I followed your steps and finally got it! Thank you very much! Best regards! Z.Q. Niu |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tutorial for subcooled nucleate boiling | Asghari | FLUENT | 42 | December 10, 2018 11:42 |
Problem on Fluent Tutorial: Horizontal Film Boilig | Feng | FLUENT | 2 | April 13, 2013 05:34 |
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread | wyldckat | OpenFOAM Installation | 2 | July 11, 2012 16:01 |
Rotor/stator tutorial, and how to... | gilberto | CFX | 5 | January 21, 2002 09:41 |