|
[Sponsors] |
keyword div(div(phi,U)) is undefined in dictionary for motorBike tutorial |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 7 ![]() |
Hello,
I am very new to this forum and CFD simulation on OpenFoam in general, this question might be slightly dumb but hopefully someone could shine some light. ![]() OpenFoam Version: 18.10 installed from cfdsupport. I am trying the OpenFoam motorBike tutorial, have finished meshing using snappyHexMesh, trying to solve first using potentialFoam then simpleFoam as I was told that this practice would increase stability in solving the case. However, while I was executing the potentialFoam solver through command: $ potentialFoam.exe -noFunctionObjects -writep the potential flow solved fine, then right after the line "Calculating approximate pressure field", OpenFoam outputs error then exits: ----- --> FOAM FATAL IO ERROR: keyword div(div(phi,U)) is undefined in dictionary "D:/Program_Files/OpenFOAM/18.10/liuni-dev/run/tutorials/motorBike/system/fvSchemes.divSchemes" file: D:/Program_Files/OpenFOAM/18.10/liuni-dev/run/tutorials/motorBike/system/fvSchemes.divSchemes from line 30 to line 35. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 566. FOAM exiting //Screenshot: ![]() ////////////////////////////////////////////////////////////// Checking in the fvSchemes dictionary, I've not changed anything from the default tutorial file, div(phi,U) seems to be defined okay? FoamFile { version 2.0; format ascii; class dictionary; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default steadyState; } gradSchemes { default Gauss linear; grad(U) cellLimited Gauss linear 1; } divSchemes { default none; div(phi,U) bounded Gauss linearUpwindV grad(U); div(phi,k) bounded Gauss upwind; div(phi,omega) bounded Gauss upwind; div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } wallDist { method meshWave; } // ************************************************** *********************** // //Screenshot: ![]() //////////////////////////////////////////////////// I'm not sure if I have described the question detailed enough, please let me know if any other information needed in order to pinpoint the problem! Thanks in advance! ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 ![]() |
Well the error appears to be telling you that a line with "div(div(phi,U))" in your div schemes does not exist (2 divs). So I would try adding one (P.s. -- the tutorials for potentialFoam include a line like "div(div(phi,U)) Gauss linear" in fvSchemes).
Caelan |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 7 ![]() |
Hi Caelan,
Thank you very much for the reply. For some reason my new version of OpenFOAM did not include the div(div(phi, U)) in the tutorial. I have added a line of div(div(phi,U)) Gauss linear; It works fine now. ![]() Thanks! Nian |
|
![]() |
![]() |
![]() |
Tags |
dictionary, div(phi, fvschemes, undefined in dictionary |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 04:28 |
problem with turbulence models after compilation? | lfgmarc | OpenFOAM Programming & Development | 19 | November 20, 2013 00:50 |
[snappyHexMesh] Undefined keyword in dictionary, snappyHexMesh | anishtain4 | OpenFOAM Meshing & Mesh Conversion | 3 | October 21, 2013 06:54 |
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 |