CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Continuity Equation for LES with uniform filter. (https://www.cfd-online.com/Forums/main/242916-continuity-equation-les-uniform-filter.html)

FluidKo May 19, 2022 04:45

Continuity Equation for LES with uniform filter.
 
1 Attachment(s)
I have a question of continuity equation for LES with uniform filter.
I've heard that in uniform filter,
\frac{\partial u'_{i}}{\partial x_{i}}=0
And I want to know why.
In the uploaded figure, there is my guess.

What I guess is if \frac{\partial u'_{i}}{\partial x_{i}}=0,
then it means that \frac{\partial u_{i}}{\partial x_{i}}-\frac{\partial \bar{u}_{i}}{\partial x_{i}}=0.
And this means that \frac{\partial u_{i}}{\partial x_{i}}=\frac{\partial \bar{u}_{i}}{\partial x_{i}}.
And this can be reasonable because the spatial trend of \bar{u}_{i} and u_{i} is very very similar for uniform filter.
(Because LES generates very fine mesh in comparison to RANS, it can imitate the similar graph to u which means the real velocity in real world.)
(\frac{\partial u_{i}}{\partial x_{i}}=\frac{\partial \bar{u}_{i}}{\partial x_{i}})
Cause of filter, velocity value can be little different between \bar{u}_{i} and u_{i}.
(ex: \bar{u}_{i}=n\times u_{i})
And also value of \bar{u}_{i} 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,
\frac{\partial u_{i}}{\partial x_{i}}-\frac{\partial \bar{u}_{i}}{\partial x_{i}}=0 can be satisfied at first and we can see it from slope of graph.
So \frac{\partial u'_{i}}{\partial x_{i}} is zero.

Here was my guess.
Is this guess reasonable? or is there any other reason why \frac{\partial u'_{i}}{\partial x_{i}} is zero?
Thanks :)

FMDenaro May 19, 2022 05:20

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.

FluidKo May 24, 2022 00:28

2 Attachment(s)
Quote:

Originally Posted by FMDenaro (Post 828284)
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!

sbaffini May 24, 2022 06:33

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 May 24, 2022 07:02

Quote:

Originally Posted by sbaffini (Post 828542)
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.

sbaffini May 24, 2022 07:08

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

FMDenaro May 24, 2022 11:59

Quote:

Originally Posted by sbaffini (Post 828547)
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.

sbaffini May 24, 2022 12:15

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 May 24, 2022 13:03

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?

sbaffini May 26, 2022 12:00

Quote:

Originally Posted by FMDenaro (Post 828585)
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


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