|
[Sponsors] |
How to understand the wall function for LES in OpenFOAM, and implement a new fun |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2024, 06:11 |
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 |
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! |
|
July 15, 2024, 09:53 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14 |
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. |
|
July 17, 2024, 02:55 |
|
#3 | |
New Member
Victor Smith
Join Date: Jun 2024
Posts: 5
Rep Power: 2 |
Quote:
hi, Tobermory, you really help me out.Thank u very much! |
||
Tags |
nutuspaldingwallfunction, openfoam, wall function, wall-modeled les, wmles |
|
|
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 |