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

keyword pFinal is undefined in dictionary

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Tobi
  • 1 Post By HappyS5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2016, 05:45
Post keyword pFinal is undefined in dictionary
  #1
New Member
 
Joan Castelló
Join Date: Sep 2016
Posts: 2
Rep Power: 0
jcastello is on a distinguished road
Hello!

I'm new on OpenFoam and I've been practicing and reading a lot about it, but now I've had a problem that I couldn't solve, and I've been looking a lot about it.

I followed a tutorial from The Foam House, the chapter 2, Plane parallel plates case.
(http://the-foam-house5.webnode.es/pr...l-plates-case/)

I've followed everything they said, and when I run icoFoam, appears this.

FOAM FATAL IO ERROR:
keyword pFinal is undefined in dictionary "/home/joan/FoamCases/ppWall/system/fvSolution.solvers"

This is the fvSolution:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1606+ |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii ;
class dictionary ;
location "system" ;
object fvSchemes ;
}
// ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ //
solvers
{
p
{
solver PCG;
preconditioner DIC;
toleance 1e-06;
relTol 0;
}
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
}

PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
// ************************************************** ******************************* //

Also before this problem I had another one similar that I think I solved, console showed me this:

FOAM FATAL IO ERROR:
keyword laplacian(nu[0,U) is undefined in dictionary "/home/joan/FoamCases/ppWall/system/fvSchemes.laplacianSchemes"

fvSchemes:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1606+ |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii ;
class dictionary ;
location "system" ;
object fvSchemes ;
}
// ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ //

ddtSchemes
{
default Euler ;
}
gradSchemes
{
default Gauss linear ;

grad ( p ) Gauss linear ;
}
divSchemes
{
default none ;
div(phi,U) Gauss linear ;
}

laplacianSchemes
{
default Gauss linear orthogonal ;
laplacian (nu,U) Gauss linear orthogonal ;
laplacian ((1|A(U)),p) Gauss linear orthogonal ;
}
interpolationSchemes
{
default linear ;
interpolate (HbyA) linear ;
}
snGradSchemes
{
default orthogonal ;
}
fluxRequired
{
default no;
p ;
}

// ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ //


For solving it I replaced on laplacianSchemes the line of default none; for default Gauss linear orthogonal ;

I showed the last problem thinking that can be useful to solve the problem of pFinal.

Hope you can help me with this!

Thank you for your time!
jcastello is offline   Reply With Quote

Old   September 5, 2016, 06:31
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hello Jcastello,

  • There are code-Tags for representing code (or file content); this is a better formating than using italic fonts.
  • The following problem:
Code:
FOAM FATAL IO ERROR: 
keyword laplacian(nu[0,U) is undefined in dictionary "/home/joan/FoamCases/ppWall/system/fvSchemes.laplacianSchemes"
is related to the fact that you did something interesting. I don't know what you changed (and I will not check your link) but it seems that you implemented a new equation or changed the laplacian guy from
Code:
fvm::laplacian(nu, U)
to something like that:
Code:
fvm::laplacian(nu, U, "laplacian(nu[0,U)")
The third argument is the name of the discretization scheme that you need to define in fvSchemes. If we do not write the third argument, FOAM will build the default one which whould be laplacian(nu,U). But sometimes it is better to define an own one like (just an example):
Code:
fvm::laplacian(nu, U, "laplacian(foobar-I-Am-A-Rabbit,PleaseSolveMe)")
Doing so, you will overwrite the default name with the new one. Hence, you need to define the discretization scheme for that term based on the new name.

  • The problem with pFinal is also wired because pFinal is normally used if you use the PIMPLE algorithm. However, to get rid of that problem you have to add the following line to your fvSolution:
Code:
pFinal
{
   $p;
   relTol 0;
}
Note
The things that I mentioned above may solve your problem but I highly recommend to check the stuff you did again because it seems really strange and that you did something wrong. To know if you are running in PISO or PIMPLE mode, you can check the output of the solver.
überschwupper likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 5, 2016, 07:18
Default
  #3
New Member
 
Joan Castelló
Join Date: Sep 2016
Posts: 2
Rep Power: 0
jcastello is on a distinguished road
Ok! I will try to change all this that you are saying.

Also thank you for the tips!
jcastello is offline   Reply With Quote

Old   June 16, 2019, 22:58
Default Thank you!
  #4
New Member
 
Michael Franklin
Join Date: Nov 2011
Posts: 4
Rep Power: 14
mbfranklin@gmail.com is on a distinguished road
Thank you for the pFinal tip, saved my icoFoam/a$$
mbfranklin@gmail.com is offline   Reply With Quote

Old   July 18, 2019, 19:21
Default Also, Remember fVSchemes ddt
  #5
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Hello,

I thought this information might help another newbie.

As a simple reminder, when using icoFoam, a transient solver, make sure you change the ddtScheme in fvSchemes to something other than steadystate. Euler is often used.
sourav90 likes this.
HappyS5 is offline   Reply With Quote

Reply

Tags
laplacian, laplacianschemes, openfoam, pfinal, undefined in dectionary


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
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 06:05.