CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Error: keyword laplacian(nu,U) is undefined in dictionary (https://www.cfd-online.com/Forums/openfoam-pre-processing/182852-error-keyword-laplacian-nu-u-undefined-dictionary.html)

mizo January 20, 2017 08:05

Error: keyword laplacian(nu,U) is undefined in dictionary
 
Hello,

I have just started to learn how to work with openFoam. I am trying to solve a simple case of a flow between two parallel plates following a tutorial. When I try to run icoFoam I get the following error message:
Quote:

--> FOAM FATAL IO ERROR:
keyword laplacian(nu,U) is undefined in dictionary "/home/michal/OpenFOAM/michal-4.1/run/plane/system/fvSchemes.laplacianSchemes"

file: /home/michal/OpenFOAM/michal-4.1/run/plane/system/fvSchemes.laplacianSchemes from line 37 to line 39.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 441.

FOAM exiting
This is my whole fvSchemes file. I have checked it but I was not able to find any errors. Can anyone tell me what am I doing wrong?

Quote:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ 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 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;
}


// ************************************************** *********************** //
Thanks,

mizo

decah January 24, 2017 11:05

Quote:

Originally Posted by mizo (Post 634097)
Hello,

I have just started to learn how to work with openFoam. I am trying to solve a simple case of a flow between two parallel plates following a tutorial. When I try to run icoFoam I get the following error message:
This is my whole fvSchemes file. I have checked it but I was not able to find any errors. Can anyone tell me what am I doing wrong?

Thanks,

mizo

Try simply
Code:

laplacianSchemes
{
default Gauss linear orthogonal ;
}


TGS May 11, 2023 05:09

Hi, I also have the same problem. this is my fvscheme file.

ddtSchemes
{
default steadyState;
}

gradSchemes
{
default Gauss linear;
}

divSchemes
{
default none;
}

laplacianSchemes
{
default Gauss linear corrected;
laplacian(alphae,e) Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}



But when I run it with chtMultiRegionFoam it gives me an error as

keyword laplacian(alphae,e) is undefined in dictionary "/home/thamasha/OpenFOAM/thamasha -10/run/plane/system/fvSchemes.laplacianSchemes".



So I run by correcting alpha to alphae too and when I did it the terminal was disappeared. when I run the program without laplacian(alphae,e) Gauss linear corrected; and with default Gauss linear corrected; only still the terminal disappear. could you please help me to solve this problem

ChrisBrown May 16, 2023 00:53

Did you guys solve it?

Vinzmann May 19, 2023 10:15

Try reading:
https://www.openfoam.com/documentati...erical-schemes

Also just copy the scheme OpenFOAM cannot find, paste it into the respective subdicionary and add one of the schemes from the user guide. Otherwise OpenFOAM won't know how to discretize the equations.

A much simpler way is yoinking an fVSchemes file from a tutorial that uses your desired solver ;)

Best regards,
Vinz


All times are GMT -4. The time now is 22:03.