# Continuity Equation for LES with uniform filter.

 Register Blogs Members List Search Today's Posts Mark Forums Read

May 19, 2022, 03:45
Continuity Equation for LES with uniform filter.
#1
Senior Member

-
Join Date: Oct 2021
Location: -
Posts: 139
Rep Power: 4
I have a question of continuity equation for LES with uniform filter.
I've heard that in uniform filter,

And I want to know why.
In the uploaded figure, there is my guess.

What I guess is if ,
then it means that .
And this means that .
And this can be reasonable because the spatial trend of and is very very similar for uniform filter.
(Because LES generates very fine mesh in comparison to RANS, it can imitate the similar graph to which means the real velocity in real world.)
()
Cause of filter, velocity value can be little different between and .
(ex: )
And also value of can depends on which weighting function user choose.
But the spatial trend of them(slope of graph, differentiation with respect to x) can be very similar.

In conclusion, I've guessed that in uniform filter,
can be satisfied at first and we can see it from slope of graph.
So is zero.

Here was my guess.
Is this guess reasonable? or is there any other reason why is zero?
Thanks
Attached Images
 20220519_162926.png (145.3 KB, 12 views)

 May 19, 2022, 04:20 #2 Senior Member   Filippo Maria Denaro Join Date: Jul 2010 Posts: 6,818 Rep Power: 73 There is a simple and rigorous route. Start from the divergence-free constraint Div v = 0 and apply the filter. Now only if the the filter width is homogeneous you can commute filtering and divergence. This results in a divergence-free filtered velocity. sbaffini and FluidKo like this.

May 23, 2022, 23:28
#3
Senior Member

-
Join Date: Oct 2021
Location: -
Posts: 139
Rep Power: 4
Quote:
 Originally Posted by FMDenaro There is a simple and rigorous route. Start from the divergence-free constraint Div v = 0 and apply the filter. Now only if the the filter width is homogeneous you can commute filtering and divergence. This results in a divergence-free filtered velocity.
Now I've got it!
Attached Images
 Turbulence Modeling(LES) P9.jpg (67.2 KB, 15 views) Turbulence Modeling(LES) P10.jpg (66.9 KB, 13 views)

 May 24, 2022, 05:33 #4 Senior Member     Paolo Lampitella Join Date: Mar 2009 Location: Italy Posts: 2,169 Blog Entries: 29 Rep Power: 39 Admittedly, I haven't read what you wrote in detail, but what Filippo was referring to is a purely mathematical derivation whose result is present in several LES textbooks and papers. The idea is that you apply the filter to the continuity equation then ask: does this filter commute with the derivarive? The constant filter width is not sufficient to ensure this, you need a constant kernel (the whole shape of the filter cannot change). If your filter commutes with the derivative then your continuity equation is just one for the filtered velocity, meaning that fluctuations must be divergence free as well. If it doesn't, the commutation error defines the divergence of the fluctuation field FMDenaro and FluidKo like this.

May 24, 2022, 06:02
#5
Senior Member

Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,818
Rep Power: 73
Quote:
 Originally Posted by sbaffini Admittedly, I haven't read what you wrote in detail, but what Filippo was referring to is a purely mathematical derivation whose result is present in several LES textbooks and papers. The idea is that you apply the filter to the continuity equation then ask: does this filter commute with the derivarive? The constant filter width is not sufficient to ensure this, you need a constant kernel (the whole shape of the filter cannot change). If your filter commutes with the derivative then your continuity equation is just one for the filtered velocity, meaning that fluctuations must be divergence free as well. If it doesn't, the commutation error defines the divergence of the fluctuation field

yes, but the continuity equation is an example of why the LES has the devil inside... Just consider a FV code like Fluent for example, where the NSE equations are described to be solved in integral form (https://www.afs.enea.it/project/nept...th/node363.htm) while the filtered equations are described in differential form (https://www.afs.enea.it/project/nept.../th/node94.htm).

Formally, the kernel is arbitrarily out of the convolution and that does not result in the divergence of the filtered velocity.

 May 24, 2022, 06:08 #6 Senior Member     Paolo Lampitella Join Date: Mar 2009 Location: Italy Posts: 2,169 Blog Entries: 29 Rep Power: 39 Honestly, I don't feel like blaming Fluent technical documentation for this when the large majority of LES material has the same limitation, but I see what you mean FluidKo and poly_tec like this.

May 24, 2022, 10:59
#7
Senior Member

Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,818
Rep Power: 73
Quote:
 Originally Posted by sbaffini Honestly, I don't feel like blaming Fluent technical documentation for this when the large majority of LES material has the same limitation, but I see what you mean

Paolo, you're right but this issue should be reported massively by the users.

 May 24, 2022, 11:15 #8 Senior Member     Paolo Lampitella Join Date: Mar 2009 Location: Italy Posts: 2,169 Blog Entries: 29 Rep Power: 39 I'm now writing the manual for my code and, while I don't have LES in it, I'm telling you, I would still code it in the correct way but I would have a hard time figuring out the best way to present it. If it is a selling point, and I am deeply convinced that documentation is or should be a selling point for any mathematical software, you must be very careful in what you write and how you do it. Or, more simply, it might happen that the one in charge has just left the company, or any other non technical issue. It happens and the company can't simply afford someone else to go trough the same development to figure details out unless strictly necessary. This assuming that the one in charge of the development was indeed expert in LES in the first place, but it is largely unlikely to have a specialized developer for each code feature. In the end, they just used the good, old LES presentation which is in every paper or book. Who's gonna note or care about that beyond the two of us when, in practice, it also kind of works? At least they have a very well written manual that says almost everything about what the code does, which is very uncommon. FMDenaro and FluidKo like this.

 May 24, 2022, 12:03 #9 Senior Member   Filippo Maria Denaro Join Date: Jul 2010 Posts: 6,818 Rep Power: 73 Paolo but is that only a lack in documentation or something in the implementation is not really well done and the users are not aware of that? Grids for LES are practically never uniform and no explicit uniform filter is supplied in the codes. Just to be more direct, should be addressed in the documentation that the residual of the continuity equation is satisfied only up to the magnitude of the order of the commutation term? Why an user should have a headache trying to drive the residual lower? FluidKo likes this.

May 26, 2022, 11:00
#10
Senior Member

Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,169
Blog Entries: 29
Rep Power: 39
Quote:
 Originally Posted by FMDenaro Paolo but is that only a lack in documentation or something in the implementation is not really well done and the users are not aware of that? Grids for LES are practically never uniform and no explicit uniform filter is supplied in the codes. Just to be more direct, should be addressed in the documentation that the residual of the continuity equation is satisfied only up to the magnitude of the order of the commutation term? Why an user should have a headache trying to drive the residual lower?
I think that the LES equations in the manual are not to be taken seriously. While I can't be 100% sure, I am pretty sure that Fluent just implements implicitly filtered LES as any other FV code, in particular: no SGS term in continuity equation, an additional eddy viscosity in the momentum equation, an additional eddy conductivity in the energy equation.

We know that solving a correctly coded set of FV equations is like doing a correct LES with a certain top-hat filter. So, I don't think that Fluent has any issue in its FV LES formalism. Where it might have problems is in its SGS models but that, again, is not a Fluent issue, it is pretty common as we know.

Of course, there might be other numerical issues, like how certain equations are solved, etc., but again, I see no peculiarity in Fluent

 Tags continuity, large eddy simulation, les filter