|
[Sponsors] |
September 5, 2016, 05:45 |
keyword pFinal is undefined in dictionary
|
#1 |
New Member
Joan Castelló
Join Date: Sep 2016
Posts: 2
Rep Power: 0 |
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! |
|
September 5, 2016, 06:31 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hello Jcastello,
Code:
FOAM FATAL IO ERROR: keyword laplacian(nu[0,U) is undefined in dictionary "/home/joan/FoamCases/ppWall/system/fvSchemes.laplacianSchemes" Code:
fvm::laplacian(nu, U) Code:
fvm::laplacian(nu, U, "laplacian(nu[0,U)") Code:
fvm::laplacian(nu, U, "laplacian(foobar-I-Am-A-Rabbit,PleaseSolveMe)")
Code:
pFinal { $p; relTol 0; } 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.
__________________
Keep foaming, Tobias Holzmann |
|
September 5, 2016, 07:18 |
|
#3 |
New Member
Joan Castelló
Join Date: Sep 2016
Posts: 2
Rep Power: 0 |
Ok! I will try to change all this that you are saying.
Also thank you for the tips! |
|
June 16, 2019, 22:58 |
Thank you!
|
#4 |
New Member
Michael Franklin
Join Date: Nov 2011
Posts: 4
Rep Power: 14 |
Thank you for the pFinal tip, saved my icoFoam/a$$
|
|
July 18, 2019, 19:21 |
Also, Remember fVSchemes ddt
|
#5 |
Member
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9 |
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. |
|
Tags |
laplacian, laplacianschemes, openfoam, pfinal, undefined in dectionary |
|
|
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 |