CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   problem with setting laplacianSchemes (

Bob April 15, 2009 07:31

problem with setting laplacianSchemes
Dear all,

After successfully compiling boussinesqBuoyantFoam, I obtain the following message:

keyword laplacian((mu|rho0),U) is undefined in dictionary "/home/bob/OpenFOAM/bob-1.5/run/LockExchange/system/fvSchemes::laplacianSchemes"

file: /home/bob/OpenFOAM/bob-1.5/run/LockExchange/system/fvSchemes::laplacianSchemes from line 37 to line 40.

From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 213.

The fvSchemes file looks like:
default none;
laplacian(nu,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
laplacian(DT,T) Gauss linear corrected;
"nu" is defined in the readTransportProperties.H as:
dimensionedScalar rho0
dimensionedScalar nu

dimensionedScalar(transportProperties.lookup("mu") )/rho0
and in transportProperties.H I have the following:
mu mu [1 -1 -1 0 0 0 0] 1e-03;
rho0 rho0 [1 -3 0 0 0 0 0] 998.2; //density at 20C
The bizar thing is that when I change the default in the laplacianSchemes to "Gauss linear corrected", the case runs well.

Does anyone know the cause of this error, and how to solve this?

Many thanks in advance!

santos April 15, 2009 10:10


Insert the following in the laplacianSchemes section of your fvSchemes file:

laplacian((mu|rho0),U) Gauss linear corrected;

Jose Santos

Bob April 15, 2009 15:17


It worked! Many thanks for the help!


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