CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

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

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By decah

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2017, 08:05
Default Error: keyword laplacian(nu,U) is undefined in dictionary
  #1
New Member
 
Michal
Join Date: Jan 2017
Location: Trondheim, Norway
Posts: 9
Rep Power: 9
mizo is on a distinguished road
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
mizo is offline   Reply With Quote

Old   January 24, 2017, 11:05
Default
  #2
Member
 
Declan
Join Date: Oct 2016
Location: Ireland
Posts: 40
Rep Power: 9
decah is on a distinguished road
Quote:
Originally Posted by mizo View Post
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 ;
}
mizo likes this.
decah is offline   Reply With Quote

Old   May 11, 2023, 05:09
Default
  #3
TGS
New Member
 
TGS
Join Date: May 2023
Location: United Kingdom
Posts: 27
Rep Power: 2
TGS is on a distinguished road
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
TGS is offline   Reply With Quote

Old   May 16, 2023, 00:53
Default
  #4
New Member
 
ChrisBrown
Join Date: May 2023
Posts: 1
Rep Power: 0
ChrisBrown is on a distinguished road
Did you guys solve it?
__________________
ChrisBrown is offline   Reply With Quote

Old   May 19, 2023, 10:15
Default
  #5
Member
 
Vinzenz Götz
Join Date: Mar 2021
Location: Munich, Germany
Posts: 31
Rep Power: 5
Vinzmann is on a distinguished road
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
Vinzmann is offline   Reply With Quote

Reply


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
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
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 15:31.