CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

A question on Smagorinsky-Lilly model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2014, 01:48
Question A question on Smagorinsky-Lilly model
  #1
New Member
 
Join Date: Jul 2014
Posts: 11
Rep Power: 11
Ezekhiel is on a distinguished road
Hello all,

I'm simulating a classical turbulent incompressible channel flow with DNS pseudo spectral-code and I would like to switch to LES using the Smagorinsky-Lilly model.
Now, even if I studied it many years ago, I actually didn't ever had the chance to implement it, so before making some stupid mistakes I prefer to aks to someone who already implemented it how it is better (or what is the common way) to proceed.

In accordance with Smagorinsky-Lilly model, stresses are expresed as: tau = -2*(Cs*delta)^2*S*Sij where Cs is a constant, delta is a measure of the grid usually taken as (volume)^1/3, S is the magnitude of the rate-of-strain tensor (radq(2*Sij*Sij)) and Sij the rate-of-strain tensor components.

By renaming 2*(Cs*delta)^2*S = SMG, for the X coordinate momentum equation for example calculating the divergence (i.e. the additional terms I need for LES) of this term I obtain the following:

2*dSMG/dx*du/dx + 2*SMG*d2u/dx2 + dSMG/dy*du/dy + dSMG/dy*dv/dx + SMG*d2u/dy2 + SMG*d2v/dxdy + dSMG/dz*du/dz + dSMG/dz*dw/dx + SMG*d2u/dz2 + SMG*d2w/dxdz

which, since the divergence of the velocity field is zero, reduces to:

SMG*lambda(V) + 2*dSMG/dx*du/dx + dSMG/dy*du/dy + dSMG/dy*dv/dx + dSMG/dz*du/dz + dSMG/dz*dw/dx

if SMG is constant, obviously the only term remaining is the one multiplying labda(V), which results in an additional constant eddy viscosity in the entire flowfield.

Now, How is this tipically implemented?
Is the SMG term considered constant, by identifying a characteristic global measure of the grid for 'delta' and a specific averaging operator to obtain a constant S, or are all the previous terms considered in NS equations?

I have the feeling I'm doing something completely wrong...


Thanks in advance!
Ezekhiel is offline   Reply With Quote

Old   July 26, 2014, 06:01
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Hello,
First I strongly suggest using the dynamic procedure.

Then, the correct way is to discretize the divergence of the SGS flux without any mathematical manipulation...

Therefore Div (2* Ni_sgs*Grad v_bar) must be discretized as the same as the convective and diffusive fluxes, in a conservative form
Ezekhiel likes this.
FMDenaro is offline   Reply With Quote

Old   July 27, 2014, 02:32
Default
  #3
New Member
 
Join Date: Jul 2014
Posts: 11
Rep Power: 11
Ezekhiel is on a distinguished road
Thanks for the reply.

I see. So basically I just calculate derivatives of the flux.

As per the dynamic procedure, for the time being I think I'll stick using a constant Cs. As I get some consistent results I'll switch to it.
Ezekhiel is offline   Reply With Quote

Old   July 29, 2014, 04:41
Default
  #4
New Member
 
Join Date: Jul 2014
Posts: 11
Rep Power: 11
Ezekhiel is on a distinguished road
It is normal that by calculating the additional terms for LES in a conservative way I can use only Cs equal to maximum 0.01 otherwise calculation crashes? (channel flow Re_tau 150?!)

If I manipulate all derivatives terms as in the first post I can instead use Cs=0.2 without problems...I'm adding so much numerical diffusivity this way??
Ezekhiel is offline   Reply With Quote

Old   July 29, 2014, 04:52
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Consider you are modifying the total viscosity and changing the viscous stability constraint, the time step required would be smaller, especially in refined zones of the grid near walls
FMDenaro is offline   Reply With Quote

Old   July 29, 2014, 04:58
Default
  #6
New Member
 
Join Date: Jul 2014
Posts: 11
Rep Power: 11
Ezekhiel is on a distinguished road
Yeah I know. I tried also a ridiculous small time step just to check.

I'm just surprised how sensitive is the code to the conservative and non-conservative treatment...
I expected of course this difference but with a reduced, let's say, "magnitude".
Ezekhiel is offline   Reply With Quote

Old   July 29, 2014, 05:05
Default
  #7
New Member
 
Join Date: Jul 2014
Posts: 11
Rep Power: 11
Ezekhiel is on a distinguished road
Since the elements are very stretched near the wall I just used the minimum edge length to estimate 'delta' and now seems to run fine also with Cs=0.2.

Still surprised about the difference of the two approaches thus...
Ezekhiel is offline   Reply With Quote

Old   July 29, 2014, 09:23
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Actually, the divergence-based (i.e. conservative) form is well known to produce much more stable numerical algorithms than the differential form
FMDenaro is offline   Reply With Quote

Old   July 29, 2014, 10:05
Default
  #9
New Member
 
Join Date: Jul 2014
Posts: 11
Rep Power: 11
Ezekhiel is on a distinguished road
indeed that's what I expected.
I feel I'm doing something wrong
Ezekhiel is offline   Reply With Quote

Reply

Tags
les, smagorinsky model


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
Question regarding Gamma Re Theta Model CFXstudent26 CFX 9 May 15, 2014 13:59
A question about SA-DES model mbt Main CFD Forum 0 November 12, 2012 02:56
second and final question about flamelet combustion model AdidaKK CFX 0 October 17, 2009 07:25
Smagorinsky model and Sij terms James Main CFD Forum 3 December 7, 2004 10:20
Smagorinsky Sub-grid Model Craig Johansen CFX 1 October 13, 2004 03:10


All times are GMT -4. The time now is 10:48.