CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to understand the wall function for LES in OpenFOAM, and implement a new fun

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By Tobermory
  • 1 Post By oaklet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2024, 06:11
Question How to understand the wall function for LES in OpenFOAM, and implement a new fun
  #1
New Member
 
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2
oaklet is on a distinguished road
Hello everybody. I dived into OpenFOAM recently. I don't understand the wall function for LES in Openfoam. When I search nutUSpaldingWallFunction in the $FOAM_TUTORIALS dir, I find the following cases used it.
incompressible/simpleFoam/airFoil2D
combustion/fireFoam/LES/compartmentFire/0.orig/
combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0.orig/
combustion/fireFoam/LES/oppositeBurningPanels/0.orig/
compressible/acousticFoam/obliqueAirJet/precursor/0.orig/
incompressible/pimpleFoam/LES/periodicHill/steadyState/0.orig/
incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/0.orig/
incompressible/pimpleFoam/LES/vortexShed/0.orig/
incompressible/pimpleFoam/LES/wallMountedHump/setups.orig/common/0.orig/
incompressible/pisoFoam/LES/motorBike/motorBike/0.orig/
incompressible/simpleFoam/airFoil2D/0.orig/
incompressible/simpleFoam/turbulentFlatPlate/setups.orig/kOmegaSST/0.orig/
multiphase/cavitatingFoam/LES/throttle/0.orig/
multiphase/cavitatingFoam/LES/throttle3D/0.orig/
These cases use the SpalartAllmarasDDES DES model. Does it mean the nutUSpaldingWallFunction should be used with the SpalartAllmarasDDES DES model? Can nutUSpaldingWallFunction be used when a Smagorinsky or WALE SGS model is used?
Besides, my research is mainly related to the wall-modeled LES. So, I would like to know how to implement a new wall model/function for LES in Openfoam.
When I travel around the source code of OpenFOAM, I feel so complex and confused. I desperately need help to figure it out. Thank you very much!
oaklet is offline   Reply With Quote

Old   July 15, 2024, 09:53
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
Victor - these are really questions about LES & DES rather than OpenFOAM. Here are my thoughts.

The Smagorinsky closure scheme is a SGS model (pretty much the simplest model) for LES simulations, and simply correlates the effect of the ummodelled stresses to the modelled stresses. It has no ability to account for wall-specific effects, other than changes in the mean velocity gradient, and so if you use it for modelling a boundary layer then you need to maintain an appropriate cell resolution (kepping the majority of the energy in the resolved scales) all the way down to the wall surface, where you will apply the noSlip condition. I.e. you need y+ values of around 1 at the wall and your LES effectively turns into a DNS.

The WALE model, as far as I am aware, behaves better than the Smagorinsky model as you approach the wall, but it is a basic LES model and is not compatible with a wall function approach, i.e. you still need to apply a no-slip condition on the wall cell and have y+ ~ 1 for accurate implementation.

DES is designed to counter this situation, in that the hybrid approach uses RANS modelling close to the wall(s), with an appropriate wall function (e.g. nutUSpaldingWallFunction), and then transitions back to LES in the core flow. The simple benefit of the wall function is that you can use much larfger cells since you are not trying to resolve the near wall processes (of order y+~1), but are instead modelling them.

Hope that helps.
tariq and oaklet like this.
Tobermory is offline   Reply With Quote

Old   July 17, 2024, 02:55
Default
  #3
New Member
 
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2
oaklet is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
Victor - these are really questions about LES & DES rather than OpenFOAM. Here are my thoughts.

The Smagorinsky closure scheme is a SGS model (pretty much the simplest model) for LES simulations, and simply correlates the effect of the ummodelled stresses to the modelled stresses. It has no ability to account for wall-specific effects, other than changes in the mean velocity gradient, and so if you use it for modelling a boundary layer then you need to maintain an appropriate cell resolution (kepping the majority of the energy in the resolved scales) all the way down to the wall surface, where you will apply the noSlip condition. I.e. you need y+ values of around 1 at the wall and your LES effectively turns into a DNS.

The WALE model, as far as I am aware, behaves better than the Smagorinsky model as you approach the wall, but it is a basic LES model and is not compatible with a wall function approach, i.e. you still need to apply a no-slip condition on the wall cell and have y+ ~ 1 for accurate implementation.

DES is designed to counter this situation, in that the hybrid approach uses RANS modelling close to the wall(s), with an appropriate wall function (e.g. nutUSpaldingWallFunction), and then transitions back to LES in the core flow. The simple benefit of the wall function is that you can use much larfger cells since you are not trying to resolve the near wall processes (of order y+~1), but are instead modelling them.

Hope that helps.

hi, Tobermory, you really help me out.Thank u very much!
Tobermory likes this.
oaklet is offline   Reply With Quote

Reply

Tags
nutuspaldingwallfunction, openfoam, wall function, wall-modeled les, wmles


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
implementing a new wall function romant OpenFOAM Programming & Development 20 March 4, 2020 05:40
Trying to manipulate rough wall function OpenFOAM leotsixri OpenFOAM Running, Solving & CFD 2 April 3, 2017 07:21
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
How to implement function "trunc()" in OpenFOAM killsecond OpenFOAM Programming & Development 0 September 1, 2014 05:49


All times are GMT -4. The time now is 16:12.