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

Continuity Equation for LES with uniform filter.

Register Blogs Community New Posts Updated Threads Search

Like Tree14Likes
  • 2 Post By FMDenaro
  • 2 Post By sbaffini
  • 2 Post By FMDenaro
  • 2 Post By sbaffini
  • 2 Post By FMDenaro
  • 2 Post By sbaffini
  • 1 Post By FMDenaro
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2022, 04:45
Question Continuity Equation for LES with uniform filter.
  #1
Senior Member
 
-
Join Date: Oct 2021
Location: -
Posts: 139
Rep Power: 5
FluidKo is on a distinguished road
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
Attached Images
File Type: png 20220519_162926.png (145.3 KB, 12 views)
FluidKo is offline   Reply With Quote

Old   May 19, 2022, 05:20
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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.
FMDenaro is online now   Reply With Quote

Old   May 24, 2022, 00:28
Thumbs up
  #3
Senior Member
 
-
Join Date: Oct 2021
Location: -
Posts: 139
Rep Power: 5
FluidKo is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
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
File Type: jpg Turbulence Modeling(LES) P9.jpg (67.2 KB, 15 views)
File Type: jpg Turbulence Modeling(LES) P10.jpg (66.9 KB, 13 views)
FluidKo is offline   Reply With Quote

Old   May 24, 2022, 06:33
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to 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
FMDenaro and FluidKo like this.
sbaffini is offline   Reply With Quote

Old   May 24, 2022, 07:02
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by sbaffini View Post
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 and FluidKo like this.
FMDenaro is online now   Reply With Quote

Old   May 24, 2022, 07:08
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to 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
FluidKo and poly_tec like this.
sbaffini is offline   Reply With Quote

Old   May 24, 2022, 11:59
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by sbaffini View Post
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 and FluidKo like this.
FMDenaro is online now   Reply With Quote

Old   May 24, 2022, 12:15
Default
  #8
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
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.
sbaffini is offline   Reply With Quote

Old   May 24, 2022, 13:03
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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.
FMDenaro is online now   Reply With Quote

Old   May 26, 2022, 12:00
Default
  #10
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by FMDenaro View Post
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
FluidKo likes this.
sbaffini is offline   Reply With Quote

Reply

Tags
continuity, large eddy simulation, les filter


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
wallHeatFlux utility for an incompressible case Mr.Jingles OpenFOAM Post-Processing 67 April 6, 2023 04:25
mixed inflow/outflow downstream boundary condition question peob OpenFOAM Running, Solving & CFD 3 February 3, 2017 11:54
simpleFoam Floating point error (Core Dumped) sam.ho OpenFOAM Running, Solving & CFD 2 December 31, 2013 07:57
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 15:16
chtMultiRegionSimpleFoam javad814 OpenFOAM 1 September 26, 2011 14:30


All times are GMT -4. The time now is 09:53.