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

keyword filter is undefined in dictionary ""

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By lakeat
  • 1 Post By lakeat
  • 1 Post By lakeat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2009, 04:48
Default keyword filter is undefined in dictionary ""
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Dear all,

version: 1.6

I met a problem, I'm not sure how to figure it out, in LES dynamic models,
it complains:
keyword filter is undefined in dictionary ""

without any infomation between the quotes, let's say in a channelFoam case.
filter simple
added in the LESProperties won't work, I'm not sure what is going wrong here.


Thanks for your patience. And BTW, I love version 1.6 very much. Turbulence models LES and RANS are reconstructed in a more consistent way, precisely reflecting the current RANS-LES tendency.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   August 4, 2009, 04:09
Default
  #2
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Sorry for the disturbance, the solution is to add keyword:

filter simple

to the dict of dyn*Coeff, not dict of LESProperties.

Mea culpa
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   November 20, 2009, 06:29
Default
  #3
New Member
 
Klaus Steinmill
Join Date: Nov 2009
Location: Germany
Posts: 3
Rep Power: 17
ksteinmill is on a distinguished road
Hi Daniel,

I've got the same problem.
I'm doing some comparisations of the different LESModels. With models "oneEqEddy" and "Smagorisnky" it works fine, but if I try dynSmagorinsky, I get the same error message.

keyword filter is undefined in dictionary ""

You said, you found a solution. Can you tell me, in which directory the dict-file is, where I can add the filter?

Thanks a lot.

Klaus
ksteinmill is offline   Reply With Quote

Old   November 20, 2009, 06:41
Default
  #4
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
easy,

add entry:

dynSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}
hoseinhd likes this.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   November 20, 2009, 07:28
Default
  #5
New Member
 
Klaus Steinmill
Join Date: Nov 2009
Location: Germany
Posts: 3
Rep Power: 17
ksteinmill is on a distinguished road
In which dict-file do I have to add this?
Because you wrote not in the LESProperties. Where else can I add it?
ksteinmill is offline   Reply With Quote

Old   November 20, 2009, 07:31
Default
  #6
New Member
 
Klaus Steinmill
Join Date: Nov 2009
Location: Germany
Posts: 3
Rep Power: 17
ksteinmill is on a distinguished road
Okay... sorry for disturbing.

I inserted it in LESProperties (allthough I thought I shouldn't) and it worked.

Thanks a lot!
ksteinmill is offline   Reply With Quote

Old   January 31, 2010, 23:56
Default
  #7
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
Quote:
Originally Posted by ksteinmill View Post
Okay... sorry for disturbing.

I inserted it in LESProperties (allthough I thought I shouldn't) and it worked.

Thanks a lot!
Dear ksteinmill,

I don't know why dynSmagorinky model need k file ?
panda60 is offline   Reply With Quote

Old   February 1, 2010, 02:17
Default
  #8
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Quote:
I don't know why dynSmagorinky model need k file ?
In DS model, k is for calculating subgrid stress. As you can see from the source code. And Germano's paper.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   February 2, 2010, 03:16
Default
  #9
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
Quote:
Originally Posted by lakeat View Post
In DS model, k is for calculating subgrid stress. As you can see from the source code. And Germano's paper.
Dear lakeat,

And how we could set k boundary condition?
If using RANS model, we can get inlet condition for k from experiment.
But in LES, how we set k for inlet condition ? or just use a small guess value ?

My dynSmagorinsky model always diverge, and don't know why.
Because I firft using Smagorinsky modek ,and then change to dynSmagorinsky model, and use the same dt, but several thousands later, the corrant number became larger and lager , and diverge.

Could you give me some suggestions ?
panda60 is offline   Reply With Quote

Old   February 2, 2010, 04:12
Default
  #10
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Quote:
Originally Posted by panda60 View Post
Dear lakeat,

And how we could set k boundary condition?
If using RANS model, we can get inlet condition for k from experiment.
But in LES, how we set k for inlet condition ? or just use a small guess value ?

My dynSmagorinsky model always diverge, and don't know why.
Because I firft using Smagorinsky modek ,and then change to dynSmagorinsky model, and use the same dt, but several thousands later, the corrant number became larger and lager , and diverge.

Could you give me some suggestions ?
a small value or not, that depends on your case, I perceive you are trying to use turbulent inlet, so k should not be arbitrarily set.
You know k have a definite physical meaning, it value reflects the turbulence intensity, so as you can imagine in a wind tunnel case, so I said it depends on your case.

Many cases are sensitive to inlet condition, such as flow past a cylinder, its separation under critical Re is very dependent on the inlet turbulence.

Concerning the diverge, don't be upset, check you mesh and check your boundary setting.

Cheers,
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   July 17, 2012, 00:15
Default
  #11
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
Dear Daniel
I have got some problems running my case with Dynamic Smagorinsky model. I get this error "keyword filter is undefined in dictionary" and I have

dynamicSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

in constant/LES properties.
I don't know what the problem is!!!
Could you please help me with that.

Thanks a lot
Melika
libra is offline   Reply With Quote

Old   July 17, 2012, 00:28
Default
  #12
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Quote:
Originally Posted by libra View Post
Dear Daniel
I have got some problems running my case with Dynamic Smagorinsky model. I get this error "keyword filter is undefined in dictionary" and I have

dynamicSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

in constant/LES properties.
I don't know what the problem is!!!
Could you please help me with that.

Thanks a lot
Melika
Really?? Could you pls paste all the error msg here?
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   July 17, 2012, 00:43
Default
  #13
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
Dear Daniel
Thanks for your reply.
This is what I get:

Create time

Create mesh for time = 2.092

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type LESModel
Selecting LES turbulence model dynSmagorinsky
[2]
[2]
[2] --> FOAM FATAL IO ERROR:
[2] keyword filter is undefined in dictionary "/home/naka/OpenFOAM/naka-1.6.x/run/melika/case12/processor2/constant/LESProperties::dynSmagorinskyCoeffs"
[2]
[2] file: /home/naka/OpenFOAM/naka-1.6.x/run/melika/case12/processor2/constant/LESProperties::dynSmagorinskyCoeffs from line 0 to line 0.
[2]
[2] From function dictionary::lookupEntry(const word&, bool, bool) const
[2] in file db/dictionary/dictionary.C at line 396.
[2]
FOAM parallel run exiting
[2]
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun has exited due to process rank 2 with PID 704 on
node olcs02 exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------

I hope it helps.
libra is offline   Reply With Quote

Old   July 17, 2012, 00:45
Default
  #14
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Typo????

Replace

dynamicSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

with

dynSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}
songwukong likes this.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   July 17, 2012, 00:54
Default
  #15
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
Thanks a lot Daniel.
It is working now.
libra is offline   Reply With Quote

Old   July 17, 2012, 01:13
Default
  #16
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
next time get some coffee b4 programming
ykanani likes this.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   November 16, 2022, 05:27
Default
  #17
New Member
 
Hongxiang Yu
Join Date: Jun 2018
Posts: 8
Rep Power: 8
Nicole Yu is on a distinguished road
Quote:
Originally Posted by libra View Post
Dear Daniel
I have got some problems running my case with Dynamic Smagorinsky model. I get this error "keyword filter is undefined in dictionary" and I have

dynamicSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

in constant/LES properties.
I don't know what the problem is!!!
Could you please help me with that.

Thanks a lot
Melika
I also got the same erro, try to extract filter out of the braket like this:
filter simple;

dynamicSmagorinskyCoeffs
{
ce 1.048;
}
Nicole Yu 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
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34
Building OpenFoAm on SGI Altix 64bits anne OpenFOAM Installation 8 June 15, 2006 10:27


All times are GMT -4. The time now is 20:53.