CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   EngineFoam OpenFoam v2.2.1 (https://www.cfd-online.com/Forums/openfoam-solving/123267-enginefoam-openfoam-v2-2-1-a.html)

AA29 September 8, 2013 16:51

EngineFoam OpenFoam v2.2.1
 
Hi everyone,

I am trying to use engineFoam (OpenFoam v2.2.1)solver which is basically a RANS solver, for LES modeling. But once i specify the turbulence model as LES, provide LES properties file, and try and run the solver i get the following error :

--> FOAM FATAL ERROR:

request for volScalarField mut from objectRegistry region0 failed
available objects of type volScalarField are

20
(
thermo:mu
thermo:psi
b
hau
rho
sqr(((-(0.666667*tr(symm(grad(U))))+sqrt((sqr((0.666667*t r(symm(grad(U)))))+((4*(ce|delta))*(((2*ck)*delta) *(dev(symm(grad(U)))&&symm(grad(U))))))))|(2*(ce|d elta))))
(((2*ck)*delta)*(dev(symm(grad(U)))&&symm(grad(U)) ))
delta
(0.666667*tr(symm(grad(U))))
ha
thermo:psi_0
p
T
Tu
alphaSgs
geometricDelta
(ce|delta)
muSgs
thermo:alpha
ft
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /usr/apps1/openfoam-2.2.1/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 164.


Since "mut" is defined for RANS modeling i am confused.Do I need to modify the turbulenceModel.C file in this case?
I tried adding a volScalarfield "mut" to the createFields.H file , just to get things going but i still get the same error.

Please note that I had been switching to LES in version 2.1.1 of the same solver , in the same way without any errors.

Any help will be appreciated.

Thanks in Advance.

hcx552362 September 8, 2013 20:06

Quote:

Originally Posted by AA29 (Post 450534)
Hi everyone,

I am trying to use engineFoam (OpenFoam v2.2.1)solver which is basically a RANS solver, for LES modeling. But once i specify the turbulence model as LES, provide LES properties file, and try and run the solver i get the following error :

--> FOAM FATAL ERROR:

request for volScalarField mut from objectRegistry region0 failed
available objects of type volScalarField are

20
(
thermo:mu
thermo:psi
b
hau
rho
sqr(((-(0.666667*tr(symm(grad(U))))+sqrt((sqr((0.666667*t r(symm(grad(U)))))+((4*(ce|delta))*(((2*ck)*delta) *(dev(symm(grad(U)))&&symm(grad(U))))))))|(2*(ce|d elta))))
(((2*ck)*delta)*(dev(symm(grad(U)))&&symm(grad(U)) ))
delta
(0.666667*tr(symm(grad(U))))
ha
thermo:psi_0
p
T
Tu
alphaSgs
geometricDelta
(ce|delta)
muSgs
thermo:alpha
ft
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /usr/apps1/openfoam-2.2.1/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 164.


Since "mut" is defined for RANS modeling i am confused.Do I need to modify the turbulenceModel.C file in this case?
I tried adding a volScalarfield "mut" to the createFields.H file , just to get things going but i still get the same error.

Please note that I had been switching to LES in version 2.1.1 of the same solver , in the same way without any errors.

Any help will be appreciated.

Thanks in Advance.

Hi
I think your 0 files has some question, Maybe you should check it.
good luck

infinity September 28, 2015 10:27

hi I've got same problem did you solve the problem
Did you try changing nuSgs to muSgs in source files code?

Eslam Reda January 1, 2016 22:06

Try this
 
I know it's too late to reply but just for future users.
This problem happens due to the misuse of wall functions, try using suitable ones for your model.

sheaker January 2, 2016 03:57

I have just run engineFoam for LES turbulence model without errors in openFoam 2.2.1.
Remember that openFoam 2.1.1 is bugged.

1. Copy LESProperties to your constant folder.
2. Change in turbulenceProperties to LESModel.
3. Copy files muSgs and alphaSgs to -180 folder.
3. Change names of boundaryField to piston, liner and cylinderHead (as You call the group of outer faces) in Your files muSgs and alphaSgs.

I haven't done analyse of results yet.

renaul4 January 25, 2018 15:04

Quote:

Originally Posted by sheaker (Post 579284)
I have just run engineFoam for LES turbulence model without errors in openFoam 2.2.1.
Remember that openFoam 2.1.1 is bugged.

1. Copy LESProperties to your constant folder.
2. Change in turbulenceProperties to LESModel.
3. Copy files muSgs and alphaSgs to -180 folder.
3. Change names of boundaryField to piston, liner and cylinderHead (as You call the group of outer faces) in Your files muSgs and alphaSgs.

I haven't done analyse of results yet.

Hello Oskar,

I'm working on similar application of LES turbulence model in my engineFoam solver in openFoam version 2.4. I'm curious if the above steps lead to correct solution or you made further changes in the solver.
Please advise.


Thanks

sheaker January 25, 2018 15:16

Hello.
I just run it. I haven't validate results.
Here is comparison of RANS and LES but no changes for LES settings were made:
https://www.youtube.com/watch?v=HLiJbf95QG4
https://www.youtube.com/watch?v=KA--7CpiCTA


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