|
[Sponsors] |
Problem calculating forces on blades 2 (for finding forces) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
bye bye my blue
Join Date: Sep 2016
Posts: 37
Rep Power: 9 ![]() |
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.2 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // libs ( "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so" ); application pimpleDyMFoam; startFrom latestTime; startTime 0; stopAt endTime; endTime 3.15; deltaT 1e-3; writeControl adjustableRunTime; writeInterval 0.01; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; adjustTimeStep yes; maxCo 20.0; functions ( forces_blade { type forces; functionObjectLibs ("libforces.so"); patches (blades); CofR (0 0 0); //pName p; //UName U; //verbose true; rhoName rhoInf; rhoInf 1.225; //factor 19.7363; outputControl timeStep; outputInterval 100; } ); // ************************************************** *********************** // --> FOAM FATAL IO ERROR: 'functions' entry is not a dictionary file: /home/pcl/OpenFOAM/pcl-4.0/run/OpenFOAM-2D-VAWT-master/system/controlDict from line 18 to line 75. From function bool Foam::functionObjectList::read() in file db/functionObjects/functionObjectList/functionObjectList.C at line 555. FOAM exiting this message appeared... -0-;; how can i solve it ? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 13 ![]() |
Use different brackets {}. See http://cfd.direct/openfoam/user-guid...ction-objects/
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
bye bye my blue
Join Date: Sep 2016
Posts: 37
Rep Power: 9 ![]() |
in contolDict,
functions { forces_blade { type forces; functionObjectLibs ("libforces.so"); patches (blades); CofR (0 0 0); //pName p; //UName U; //verbose true; rhoName rhoInf; rhoInf 1.225; //factor 19.7363; outputControl timeStep; outputInterval 100; } }; --> FOAM FATAL ERROR: Could not find rho From function void Foam::functionObjects::forces::initialise() in file forces/forces.C at line 197. FOAM exiting how can I solve it ?? why this message occurs????????? |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#5 |
Member
bye bye my blue
Join Date: Sep 2016
Posts: 37
Rep Power: 9 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Ben
Join Date: Oct 2016
Posts: 25
Rep Power: 9 ![]() |
I have the exact same error, but for a 2D airfoil case (with reference to the airfoil2D tutorial). It would be great if someone could provide a solution to this.
Thank you, Ben |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Tom D.
Join Date: Nov 2016
Posts: 7
Rep Power: 9 ![]() |
I am getting the exact same problem, and I don't understand why since I have triple-checked for typos, and I am using what others have claimed works online...
Might this be a bug? Anyone ever managed to solve this one? |
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Tom D.
Join Date: Nov 2016
Posts: 7
Rep Power: 9 ![]() |
Hello all,
I've been researching this issue for 2 days now, and can't seem to figure out what I am doing wrong. I am attempting to record the forces on a particular item in my simple icoFoam run. (A streamlined bulbous shape in a simple water "tunnel"). The issue I hit is I when the solver tries to write the output to a file I get the error "could not find rho". If I have writeInterval = 1 then I will get this error after the first timestep is complete. If I have writeInteral = 5 then it happens after 5 timesteps. --> FOAM FATAL ERROR: I also tried to run the run with no force output and then do a -postProcess and I get the exact same error, immediately after loading the mesh. forces forces: Here is my "forces" file: forces I am getting to grips with OpenFoam and wish I could figure this out for myself, but I am stuck... Thanks for any pointers! Tom. |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51 ![]() ![]() ![]() |
I do not know which OpenFOAM version you are using but the rhoName is wrong if you use the latest one. Also your message tells you that you cannot find the entry rho
![]() Code:
rho rhoInf; rhoInf 1000; By the way ... you should use code - tags for your posts. Cheers.
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
Tom D.
Join Date: Nov 2016
Posts: 7
Rep Power: 9 ![]() |
Hello Tobias,
Many thanks for such a quick response. It is much appreciated. I saw the rhoName variable so often in examples it never occurred to me the solution would be so simple...! Your comments are also duly noted with regards to quoting text! Kind regards, Tom. |
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Greetings to all,
This has come to my attention, thanks to the following bug report: http://bugs.openfoam.org/view.php?id=2347 Unfortunately, no one in this thread provided detailed steps on how to reproduce the same error, therefore I'm going to focus on the bug report, until this is fixed or at least understood. edit: Wait, sorry, bentkj did mention which tutorial can be used, namely the airfoil2D case. edit 2: OK, I've noticed just now what the problem is and here is what I wrote on the bug report: Quote:
edit 3: the previous 3 posts from another thread, given these are all in the same topic. Best regards, Bruno
__________________
Last edited by wyldckat; November 22, 2016 at 17:11. Reason: see "edit:", "edit 2:" and "edit 3:" |
||
![]() |
![]() |
![]() |
![]() |
#12 |
New Member
Mukul
Join Date: Nov 2016
Posts: 6
Rep Power: 9 ![]() |
Okay, I confirm that making the above changes solves the issue.
![]() Moving to OF-4 just helped us get around some bug which was crashing parallel runs of pimpleDyMFoam. Thank you very much! |
|
![]() |
![]() |
![]() |
![]() |
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Hopefully I've merged the remaining other thread onto this one that was on this topic.
Ironically, the problem was that people used the search engine and found the outdated information... |
|
![]() |
![]() |
![]() |
![]() |
#15 |
New Member
Tom D.
Join Date: Nov 2016
Posts: 7
Rep Power: 9 ![]() |
Yup - plenty of examples of rhoName all over the place, not too many showing just rho... In any case this thread will be a useful reference. Perhaps the error message could be amended - "could not find rho (rhoName has been deprecated)"? Thanks much to the fast responses.
|
|
![]() |
![]() |
![]() |
![]() |
#16 |
New Member
Zhenlan GAO
Join Date: Oct 2015
Location: France
Posts: 17
Rep Power: 10 ![]() |
I just had the same problem. It comes with the Visual CFD case set up.
I haven't experienced this problem when I run the motobike example by coping the tutorials, but have this error when I use Visual CFD for the case set up. Maybe it should be told to ESI GROUP. |
|
![]() |
![]() |
![]() |
![]() |
#17 | |
New Member
jan tore
Join Date: Mar 2018
Posts: 1
Rep Power: 0 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rotating blades fan problem | Luk | FLUENT | 1 | June 27, 2006 09:56 |
a problem in calculating pressure drop in Fluent? | yu chun | FLUENT | 1 | May 18, 2004 03:40 |
Problem in calculating drag coefficient | Sohail Ahmed | FLUENT | 2 | March 18, 2004 00:40 |
2d foil pressure forces problem | mayor | FLUENT | 4 | December 1, 2003 03:57 |
Valve Forces in CFdesign | Mike Clapp | Main CFD Forum | 3 | March 8, 2001 14:09 |