Skip to content
In this page

LES

What is LES?

Turbulent flows contain eddies with a range of sizes and energies.
In LES we will going to resolve eddies with a mesh.
This is called Large Eddies Simulation, LES.

How do we do LES?

Problem

Of course we can resolve eddies bigger than a mesh using velocity vectors.
But how about eddies smaller than a mesh?
The below picture shows the concept of the problem. alt text [1]
We will going to use sub-grid model that represent eddies smaller than a single mesh size

Basic Concept of Eddies

Wave number

Wave number indicates the size of the eddy. Actually, it is the reciprocal of the size of the eddy.

Wavenumber

IDK why the wavenumber is defined like this, but it is how it is.

WARNING

can also stand for turbulent kinetic energy, so do not be confused.

Turbulent Energy Cascade This section will tell you what turbulend energy cascade is.
You

The below diagram shows the relation between the size of the eddy(wavenumber) and the kinetic energy density. turbulent_energy_cascade

The area under the curve is the turbulent kinetic energy, TKE. TKE_curve

TKE_resolved As we can't shrink the size of the mash to infinitesimal size, there's a certain point that we cannot resolve eddies using cells.
If the blue area is smaller than 20%, we call it Good LES.
IDK know why, but this is kind of convention.

bad&good_LES

Integral length scale The eddy size and energy will obviously vary throughout the domain. It means, each domain has different TKE, because they all have different kinetic energy density.



So we will have something called 'integral length scale which is representative of all the eddies at a location.
Because it is easier to look at a single value than the spectrum. integral_length_scale

integral length scale is simply size of the averaged energy density eddy.
The area devided by integral length scale is the same.
We can calculate it by mathematical expression. integral_length_scale_definition

But the above mathematical expression is a bit absurd,as we don't know the function of energy density.
So how can we calculate it?
We can calculate from a precursor RANS calculation using either or model.

Question

So in order to do LES, do we have to do RANS first? what if RANS is not accurate?

calculate_l0setting_LES_mesh

We said the good LES should resolve more than 80% of energy density.
In order to to this, the size of a cell should be smaller than one fifth of the integral length scale.
So that we can resolve more than 80% of the turbulent kinetic energy. integral_length_scale_cellsize

So if we want to evaluate if the mesh is good or not, we can define a new function f with variable integral length scale and cell volume

and is from the relations above.

How LES works - Process

0. Approach

As we discussed above, good LES should resolve more than 80% of the TKE.
So our goal is to resolve more than 80% of the TKE.

1. Calculate the Mean Velocity

First, we will going to calculate the mean velocity of the flow.
As the CFD Code computes the instantaneous velocity , we will going to time average and get mean velocity alt text

Question

How do we get U? What if U is inaccurate?

We will average the velocity after the trasient phase.

2. Fluctuating Velocity

We will do almost the same process as RANS

TIP

Difference between RANS and LES is,
RANS models the fluctuation terms using time averaged velocity terms,
But LES calculates TKE in the fluctuation terms.


As we all know, kinetic energy per mass is ,
So we can multiply fluctuating velocity components together, and it will lead us to some kinetic energy term.

We have three veolcity components, in each directions, so we will have 9 possible combinations,
, , , , , , , ,
There are instaneous Reynolds-Stresses that are resolved by the mesh
But, only normal components are used to calcaulte the resolved TKE.(, , )

Question

IDK why we only use normal components for the TKE.
This is probably because of the definition of energy

And then, we time-average all those Reynolds-Stresses, and get Reynolds Stress tensor per unit density.

Question

IDK why we time-average reynolds stresses.

Anyways, we get Reynolds STress tensor per unit density.

3. Resolved Turbulent Kinetic Energy

From the diagonal components, we get resolved TKE,

just using normal components.


The reason why it is called resolved TKE is, we resolved turbulent kinetic energy only by using out mesh.
This is the best we can do here.
We can't resolve TKE smaller then a cell right now, but we will do this later.

TIP

OpenFoam will calcaulte the resolved turbulent kinetic energy directly from the mesh, adding up diagonal components.
However, in ANSYS, they will calculate which is RMSE(Root Mean Square Error) so you have to square it and then add up the components.
So be aware of which components you are adding up.

The image shows the rewolved TKE alt text

4. Total Turbulent Kinetic Energy We now have the resolved inetic energy which is only a portion of total TKE.
We still don't have sub-grid scale TKE, $k_{sgs}$

alt text


So our next goal is to get sub-grid scale TKE.

5. Sub-Grid Scale Turbulent Kinetic Energy

is the TKE of the eddies smaller than the mesh size.
But how do we do this?

depends on the method you choose to determine it.
There are several methods like smagorinky, WALE, etc.
We will cover this later on.

But the easiest one is solving kinetic energy transport model. alt text
What about other methods?
One way is to calculate from sub-grid legnth scale
has the same concept as integral length scale
$l_{sgs} represents the size of eddies within the cell. alt text

TIP

OpenFOAM calculates for you. But in ANSYS, you have to calculate it by yourself in post-processor.

6. Sub-Grid Length Scale

is defined as

If this is Smagornisky coefficient.


But, if we look at some of CFD mannuals, we can see that formula is slightly modified.
This is because near the walls, eddies are damped, so we modify the function.
If we are so close to the wall, we will have smaller eddies than we calculated from above.
So, modified formula is


This also represents the effect of high aspect ratio.
This will have better approximation.

7. Turbulent Kineitc Energy

Now, we have calculated and
Below two picture shows and alt text


If we want to check the quality of our CFD, we can calculate the ratio and we want >0.8 in the entire domain.

8. Mesh Refinement

If we don't have good quality, we can refine the mesh and increase so that we can resolve tubulent kinetic energy.

LES Sub-Grid Model

What is Sub-Grid Model? In LES, we looked at resolved TKE and sub-grid TKE.
There are several sub-grid models, and we have to select one of those models.
Why do we need Sub-Grid Model? The below picture shows the reason why we need sub-grid model.
In CFD Solver, the size of eddy cannot be smaller than the size of the cell, and eddies will persist and will not break down.
But we have to break it down, because that's how mother nature works.
Eddies get smaller and dissipate into heat.

cannot_resolve_eddies_anymore


What can we do to remove eddies from the mesh?

We can do this by increasing the turbulence dissipation rate.

What is Turbulence Dissipation Rate?

Turbulence Dissipation rate, is the rate that turbulence is converted to thermal energy.
It has units of turbulent kinetic energy per unit time.
We have large , eddies will quickly be dissipated into heat.
It's quite straightforward.

Then what's the mathmatical expression?
In real turbulence,

But this is just mathamteical deifintion.
How do we calculate it?
In RANS, we solve transport equation for , and this was shown in model
But this is different in LES.

If we look at below picture, we can see that velocity gradient gets larger as eddies get smaller.
This means, at first, as velocity grdient is not large, turbulenece dissipation rate is also not large and it takes a while for the eddies to be dissipated.
However, as time goes by, eddies get smaller and velocity gradient also gets smaller and turbulence dissipation rate will accelerate.

turbulence_dissipation_rate_velocity_gradient


We know that eddies just bigger than the cell size are not being dissipated, and it means velocity gradient is not decreasing anymore, leading to constant turbulence dissipation rate.
But our goal is to dissipate eddies.
So, we can increase molecular viscosity , and it will lead to larger turbulence dissipation rate.
If the turbulence dissipate rate is high enough, eddies will be dissipated.
So the mathmatical expression of turbulence dissipation rate will be

If we select adequte to dissipate eddies just larger than the cell size, our goal is achieved.
But we should remind that we're not solving turbulence dissipation rate in LES.
How can we reflect this concept to the real CFD?

Reminder

we're not solving in LES.
solving is for RANS equation.
And above mathematical expression is for real-world fluid.
We also have to 'model' this in LES.

Turbulence Dissipation in real LES CFD


We looked at the concept of how to dissipate eddies in LES.
But it was only a concept.
How do we increase molecular viscoity in LES simulation?
We do this by modyfing N-S equation


We can see that extra stress term is added to the N-S equation.
viscosity stress term does the same role as molecular viscosity.
As we increased to , turbulence dissipation will also be increased, and it will dissipate eddies.
This can be derived by filtering the N-S equation, but we'll going to skip this.


It's important to know the meaning of sub-grid stress, which is here.

Sub-Grid Stress


Molecular viscosity can be represented as Sub-Grid Stress in N-S equation.
We're going to look at the meaning of Sub-Grid Stress here.
If we think of eddies smaller than the size of cells, they can be considered as stresses.
Because eddies exert stresses to fluid particles and wall.
So we're substituing the concept of eddies into stresses instead of considering the real velocity of the eddies.

sub_grid_stress


Sub-Grid Stress can be modeled as

And this is from eddy viscosity model.
You can find this on RANS page
If we see the equation, as the eddies get smaller, velocity gradient increases and it makes Stress tensor bigger.
But term depends on the size of the eddy, which means we don't have control for it.
Instead, we can control .
By controlling we can dissipate the eddy just bigger than the cell size.
This also means if we have larger cell size, also have to be bigger. nu_sgs_cellsize

extra info

is scalar value if we assume that eddies are isotropic, which means shape of the eddies are all same.

Question

Isn't the eddy viscosity model from the RANS equation?
so we use eddy viscosity model from the RANS?
Isn't the RANS inaccuarate?

Because of the cell size - dependence, meshing and LES is incorporated.
In RANS, we can change the mesh and use the same turbulence model.
But in LES, as we change the mesh, molecular viscosity also changes.
This is the characteristic of the LES.

Smagorinsky Model

As we looked at sub-grid model, we now know that sub-grid stress is modelled using an eddy viscosity approach.
And sub-grid viscosity is the CONTROL of dissipation of eddy depending on the cell size.
So how is sub-grid kinematic viscosity calculated?
There are several methods, but here, we're considering Smagorinsky model.

Expressing Sub-Grid Kinematic Viscosity Model

We can express sub-gird kinematic viscosity model as velocity multiplied by length according to the units of kinematic viscosity.

This simple approach was proposed by Smagorinky. So,

As eddies are isotropic, we only need a length to categorise their shape.


So our goal is to determine and to get

Velocity Scale

We are going to take velocity difference as a velocity scale here. Veolcity_Scale
Velocity difference will be,


But what if we draw a horizontal line across the eddy?

Veolcity_Scale_horizontal


Velocity difference will be

We can express this term in strain rate tensor


But, the problem is, we need a scalar value for the velocity scale.
What if we just take magnitude of ?
If we look at the simple case(Couette Flow), we can know that

So we have to multiply to the velocity gradient.

Problem of Simple Smagorinsky Model

Smagorinsky Model doesn't take wall effect into consideration.
Wall makes eddy small

How can we modify sub-grid kinematic viscosity to take wall effect into account?

There are several ways.
But we're only going to cover modifying


we can change , , or
Simplest way is to modify .
We can do this by using RANS equation - eddy viscosity model

Question

Still can't get it.
RANS in LES....
Why is LES accurate then?

from and relation, and especially in logarithmic region, we can get velocity gradient.
And in log region, reynolds stress is constant which is wall shear stress.
From these relations, we can quantify the size of the eddy with the varient
The result will be shown in next section.

Question

why is reynolds stress constant in log region?

Quantifying the size of eddy

In logarithmic region, the mean velocity profile is modelled by

alt text The dots are given from DNS simulation.
Also, in logarithmic region, Reynolds shear stress is relatively constant, hence,

TIP

is wall shear stress
is friction velocity which is
But IDK the physical meaning of these terms.

So, if we plug those equations to Eddy Viscosity Equation , we get

The Turbulent Viscosity can be written as the product of a length scale and a velocity scale, so,

Turbulent Viscosity has the dimension of product of length and velocity.
So what will be the adequate choice for and to represent eddies?
will be the mixing length and will be the reynolds stress

Question

I'm not sure about how and relates to mixing length and reynolds stress


Anyways, if we massage the equation, we get

So what does it mean?
As we get close to the wall, will decrease, and it will make smaller.
So this is the behavior that we wanted.
Taking wall effect into account.
Now we will return to where we start from, modeling sub-grid scale molecular viscosity which is the control of the dssipation of the eddy.

Revisiting Sub-Grid Scale

Now we have more accurate model for the sub-grid scale eddies.
So when modeling sub-grid length scale , instead of just using Smagorinsky Coefficient , we can use function. So,

But our was just for logarithmic region.
How can we consider other region?
We can do this by using Van Driest Solution.
We can get general equation that rerpresent relation between and Van_Driest

So the final Sub-Grid Length Scale will be

Summary of LES

In LES, we have to solve to parts.

  1. Resolving larger-than-grid-size-eddies turbulent kinetic energy
    These values can be solved with 100% accuracy. And it is better to resolve TKE as much as possible.
  2. Modelling Sub-grid-sclae Turbulent Kinetic Energy.
    This is the trickies part of LES.

We used turbulence dissipation rate to dissipate eddies that are smaller than the cell size.
By physical definition of , we can choose adequate molecular viscosity to control the dissipation of eddies.


But in real CFD, we can't use this.
In order to solve in real CFD, we will use N-S equation to reflect the same phenomenon.
We can do this by modifying viscost stress term


And can be modeled as


If we control , it will effect and this will effect N-S equation and finally reflect the turbulent dissipation rate.


So how is can be modelled?
We can do this by using Smagorinsky model, which models as product of .
is velocity scale and is sub-grid length scale.


is


Next step is to model length scale
The simplest approach is to add some Coffecient to the cell size because sub-grid eddies is smaller than the size of the Cell.
So,
And C_s is Sagorinksy Coefficient.
But the problem is, it cannot take wall effect into account.
Eddies will get smaller as they approach the wall.
So, we use reynolds stress to model this.

Question

This is the huge missing link of LES.
Why do we use RANS eddy viscosity model to LES?
Why does this work?

Anyways, if we do some simple math with RANS eddy viscosity model, we get mxing length as the resprentative of size of the eddies.


So as a result we get sub-grid length which represents the size of sub-grid eddies as,

And this takes wall effect into account.


I will resummary the above summary. sub-grid length scale represents the size of the eddy and this will effect molecular viscosity and this will effect viscous stress term and finally effecting N-S equation.

testing pdf


  1. [CFD] Large Eddy Simulation (LES): An Introduction / Fluid Mechanics 101 / link ↩︎