View Issue Details

IDProjectCategoryView StatusLast Update
0002347OpenFOAMBugpublic2016-11-22 15:32
Reportermukul92 Assigned Towyldckat  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSCentOSOS Version6.7
Summary0002347: Error while calculating forces - could not find rho
DescriptionHello,

Here is the error message:

[1]
[1] --> FOAM FATAL ERROR:
[1] Could not find rho
[1]
[1] From function void Foam::functionObjects::forces::initialise()
[1] in file forces/forces.C at line 196.
[1]
FOAM parallel run exiting


Here is the relevant part from the controlDict file:

functions
{
    forces_body1
    {
      type forces;
      functionObjectLibs ( "libforces.so");
      patches (body1);
      rhoName rhoInf;
      pName p;
      UName U;
      rhoInf 1.0;
      CofR (0 0 0);
      writeControl timeStep; //outputTime;
      writeInterval 10;
    }
    forces_body2
    {
      type forces;
      functionObjectLibs ( "libforces.so");
      patches (body2);
      rhoName rhoInf;
      pName p;
      UName U;
      rhoInf 1.0;
      CofR (6 0 0);
      writeControl timeStep; //outputTime;
      writeInterval 10;
    }
}


Is this a bug or some mistake in my inputs?

I am reporting this because I couldn't find a solution in threads and found some other people having the same issue of late:
http://www.cfd-online.com/Forums/openfoam/178985-hi-guy-i-have-problem-calculating-forces-blades-2-finding-forces.html

I'm using version 4.1.
Kindly let me know if you need more info from me on this.

Thank you!!
Steps To ReproduceTry to calculate "forces".
TagsNo tags attached.

Activities

wyldckat

2016-11-22 13:52

updater   ~0007271

Many thanks for the report and pointing out the thread where people have been asking about this! I moved that thread to here: http://www.cfd-online.com/Forums/openfoam-solving/178985-problem-calculating-forces-blades-2-finding-forces.html

Now, the problem with everyone's report so far is that no one provided detailed steps on how to reproduce the problem :( Not even which solver was used.

Therefore, please describe:

 1. Which solver you are using?

 2. What commands did you use to run the solver?

 3. If you cannot provide a simple test case that reproduces this problem, can you please let us know which tutorial case can be used to reproduce this error?

wyldckat

2016-11-22 13:54

updater   ~0007272

OK, I re-read the thread and the airfoil2D case can be used to test this.

wyldckat

2016-11-22 13:57

updater   ~0007273

OK, I then looked in more detail and the problem is that the settings have changed. If you look at the documentation: http://cpp.openfoam.org/v4/a00866.html#details - you'll see that the '*Name' entries have been changed to this:

      rho rhoInf;
      p p;
      U U;

Please try this and let us know if it solves the problem.

mukul92

2016-11-22 15:20

reporter   ~0007276

Okay, I confirm that this solves the issue.
Moving to OF-4 just helped me get around some bug which was crashing parallel runs of pimpleDyMFoam. Getting this on the thread would also help other people transitioning to OpenFOAM-4.
Thank you very much!

wyldckat

2016-11-22 15:32

updater   ~0007278

Many thanks for the feedback! OK, I'm closing this issue with "no change required".

Issue History

Date Modified Username Field Change
2016-11-21 21:53 mukul92 New Issue
2016-11-22 13:52 wyldckat Note Added: 0007271
2016-11-22 13:54 wyldckat Note Added: 0007272
2016-11-22 13:57 wyldckat Note Added: 0007273
2016-11-22 15:20 mukul92 Note Added: 0007276
2016-11-22 15:32 wyldckat Assigned To => wyldckat
2016-11-22 15:32 wyldckat Status new => closed
2016-11-22 15:32 wyldckat Resolution open => no change required
2016-11-22 15:32 wyldckat Note Added: 0007278