CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

keyword div(div(phi,U)) is undefined in dictionary for motorBike tutorial

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By clapointe

LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2019, 05:57
Default keyword div(div(phi,U)) is undefined in dictionary for motorBike tutorial
New Member
Join Date: Jun 2019
Posts: 15
Rep Power: 6
noodleluvmay is on a distinguished road

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:


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



Checking in the fvSchemes dictionary, I've not changed anything from the default tutorial file, div(phi,U) seems to be defined okay?

version 2.0;
format ascii;
class dictionary;
object fvSchemes;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

default steadyState;

default Gauss linear;
grad(U) cellLimited Gauss linear 1;

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;

default Gauss linear corrected;

default linear;

default corrected;

method meshWave;

// ************************************************** *********************** //



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!
noodleluvmay is offline   Reply With Quote

Old   October 17, 2019, 16:41
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
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).

noodleluvmay likes this.
clapointe is offline   Reply With Quote

Old   October 25, 2019, 07:33
New Member
Join Date: Jun 2019
Posts: 15
Rep Power: 6
noodleluvmay is on a distinguished road
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.


noodleluvmay is offline   Reply With Quote


dictionary, div(phi, fvschemes, undefined in dictionary

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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

All times are GMT -4. The time now is 01:08.