|
[Sponsors] |
icoFoam "keyword pFinal is undefined in dictionary" |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Mar 2019
Posts: 8
Rep Power: 7 ![]() |
Dear forum members,
I am a beginner in OpenFOAM and am working on the couette flow tutorial from The Foam House: https://www.thefoamhouse.es/products...l-plates-case/ I am at the stage of running icoFOAM from the case directory. However, I keep getting this error message: Code:
alfred@alfred-VirtualBox:~/OpenFOAM/alfred-6/run/FoamCases/ppWall$ icoFoam /*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 6-e29811f5dff8 Exec : icoFoam Date : Mar 24 2019 Time : 13:36:59 Host : "alfred-VirtualBox" PID : 19364 I/O : uncollated Case : /home/alfred/OpenFOAM/alfred-6/run/FoamCases/ppWall nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading transportProperties Reading field p Reading field U Reading/calculating face flux field phi Starting time loop Time = 0.005 Courant Number mean: 0 max: 0 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 2.21638e-06, No Iterations 2 DILUPBiCG: Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0 DICPCG: Solving for p, Initial residual = 1, Final residual = 1.27547e-07, No Iterations 24 time step continuity errors : sum local = 1.18442e-16, global = 8.25654e-19, cumulative = 8.25654e-19 --> FOAM FATAL IO ERROR: keyword pFinal is undefined in dictionary "/home/alfred/OpenFOAM/alfred-6/run/FoamCases/ppWall/system/fvSolution.solvers" file: /home/alfred/OpenFOAM/alfred-6/run/FoamCases/ppWall/system/fvSolution.solvers from line 14 to line 25. From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const in file db/dictionary/dictionary.C at line 701. FOAM exiting fvSolution: Code:
FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object fvSolution; } solvers { p { solver PCG; preconditioner DIC; tolerance 1e-06; relTol 0; } U { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0; } } PISO { nCorrectors 2; nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; } Code:
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 none; 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 ; } Thank you so much! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
As with many OpenFOAM errors it is what it reads. In your fvSolution under solvers { } you have U and p but are missing pFinal. So either copy/paste your p entry and replace p with pFinal or write "(p|pFinal)" instead of p.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return ![]() |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 04:28 |
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 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 00:34 |