CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

cavity tutorial problem in OF 3.0.x

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2016, 13:44
Exclamation cavity tutorial problem in OF 3.0.x
  #1
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 13
mohsen.boojari is on a distinguished road
hi everyone,
i tried to run the tutorial example of openFoam 3.0.x but i got this error.

Code:
--> FOAM FATAL IO ERROR: 
keyword pFinal is undefined in dictionary "/home/mohen/OpenFOAM/mohen-3.0.x/run/tutorials/incompressible/icoFoam/cavity/system/fvSolution.solvers"

file: /home/mohen/OpenFOAM/mohen-3.0.x/run/tutorials/incompressible/icoFoam/cavity/system/fvSolution.solvers from line 22 to line 33.

    From function dictionary::subDict(const word& keyword) const
    in file db/dictionary/dictionary.C at line 648.

FOAM exiting
any idea whats wrong?? i searched throw the fvsolution script but i didn't see any pFinal there. i also copied the cavity tutorial from other versions but nothing changed

thanks all
mohsen.boojari is offline   Reply With Quote

Old   February 14, 2016, 04:20
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

cavity tutorial is meant to be run with icoFoam, yet it seems you are trying to run PISO/PIMPLE family solver. As of commit a2e25d5, icoFoam runs smoothly in cavity tutorial.
alexeym is offline   Reply With Quote

Old   February 14, 2016, 04:55
Default
  #3
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 13
mohsen.boojari is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

cavity tutorial is meant to be run with icoFoam, yet it seems you are trying to run PISO/PIMPLE family solver. As of commit a2e25d5, icoFoam runs smoothly in cavity tutorial.
Hi
I followed exactly the commands in the openfoam website, i'm sure i entered icoFoam to solve.
mohsen.boojari is offline   Reply With Quote

Old   February 14, 2016, 05:32
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You are right, I should have recompiled icoFoam with newly checked out source. As a workaround for the problem, you can change this part of fvSolution:

Code:
    p
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
    }
and make it

Code:
    "p.*"
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
    }
(so PCG linear solver is used for p and pFinal). Also you can report broken tutorial case in Mantis (http://openfoam.org/mantisbt).
alexeym is offline   Reply With Quote

Old   February 14, 2016, 10:45
Default
  #5
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 13
mohsen.boojari is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

You are right, I should have recompiled icoFoam with newly checked out source. As a workaround for the problem, you can change this part of fvSolution:

Code:
    p
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
    }
and make it

Code:
    "p.*"
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
    }
(so PCG linear solver is used for p and pFinal). Also you can report broken tutorial case in Mantis (http://openfoam.org/mantisbt).
Hi
thanks for your useful reply. I have another question. is there a problem with icoFoam in this version? or this error was just for the cavity tutorial?

Thanks
mohsen.boojari is offline   Reply With Quote

Old   February 14, 2016, 11:03
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I think all icoFoam tutorials became broken after commit 21cbbf7. I.e. after this source modification:

Code:
commit 21cbbf7beb561ce13a67790ce4c36a1371b17cd0
Author: Henry Weller <http://cfd.direct>
Date:   Thu Jan 28 09:03:51 2016 +0000

    pisoControl: Corrected handling of final inner (PISO) iteration control
...
+inline bool Foam::pisoControl::finalInnerIter() const
+{
+    return
+       corrPISO_ == nCorrPISO_
+    && corrNonOrtho_ == nNonOrthCorr_ + 1;
+}
fvSolution files in all icoFoam tutorials have to be modified ("p.*" instead of p, as I have written in previous post).
alexeym is offline   Reply With Quote

Reply

Tags
cavity, fatal error, tutorial


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convergence problem in 2D cavity problem dreamz Main CFD Forum 0 December 9, 2013 17:55
Viscositymodel tutorial, problems when changing test case to cavity sur4j OpenFOAM Programming & Development 1 December 8, 2013 09:53
Vessel tutorial problem hosseinhgf CFX 1 March 17, 2013 11:39
[OpenFOAM] display panal dosn't refresh in tutorial 2.1 Cavity kEpsilon ParaView 0 February 27, 2012 10:43
radiation problem for square cavity using fluent john Main CFD Forum 0 September 30, 2005 07:40


All times are GMT -4. The time now is 16:17.