CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   keyword filter is undefined in dictionary "" (http://www.cfd-online.com/Forums/openfoam-bugs/67068-keyword-filter-undefined-dictionary.html)

lakeat August 3, 2009 03:48

keyword filter is undefined in dictionary ""
 
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.

lakeat August 4, 2009 03:09

Sorry for the disturbance, the solution is to add keyword:

filter simple

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

Mea culpa

ksteinmill November 20, 2009 06:29

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

lakeat November 20, 2009 06:41

easy,

add entry:

dynSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

ksteinmill November 20, 2009 07:28

In which dict-file do I have to add this?
Because you wrote not in the LESProperties. Where else can I add it?

ksteinmill November 20, 2009 07:31

Okay... sorry for disturbing.

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

Thanks a lot!

panda60 January 31, 2010 23:56

Quote:

Originally Posted by ksteinmill (Post 237030)
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 ?

lakeat February 1, 2010 02:17

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.

panda60 February 2, 2010 03:16

Quote:

Originally Posted by lakeat (Post 244407)
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 ?

lakeat February 2, 2010 04:12

Quote:

Originally Posted by panda60 (Post 244525)
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,

libra July 16, 2012 23:15

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!!! :confused:
Could you please help me with that. :)

Thanks a lot
Melika

lakeat July 16, 2012 23:28

Quote:

Originally Posted by libra (Post 371768)
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!!! :confused:
Could you please help me with that. :)

Thanks a lot
Melika

Really?? Could you pls paste all the error msg here?

libra July 16, 2012 23:43

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. :)

lakeat July 16, 2012 23:45

Typo????

Replace

dynamicSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

with

dynSmagorinskyCoeffs
{
filter simple;
ce 1.048;
}

libra July 16, 2012 23:54

Thanks a lot Daniel. :)
It is working now. :p

lakeat July 17, 2012 00:13

next time get some coffee b4 programming:D


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