|
[Sponsors] |
December 7, 2019, 04:42 |
Inplement yPlus on the turbulence model MK
|
#1 |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
I am now trying to implant the turbulence model MK into openfoam to use it to simulate the heat transfer of supercritical CO2.
In MK model, there is yPlus in the formula of fMu: (scalar(1) - exp(-yPlus/30))*(scalar(1)+3.45/pow(Rt,0.65)); So I am wondering how to define yPlus in this formula? Now I have some code: volScalarField Dist(wallDist::New(this->mesh_).y()); dimensionedScalar uTau("uTau", dimVelocity, 0.025); volScalarField yPlus(Dist*uTau/this->nu()); return (scalar(1) - exp(-yPlus/30))*(scalar(1)+3.45/pow(Rt,0.65)); I am not sure whether it should work or not. I think uTau should be calculated from wallshearstress. There are some code about tauw and yPlus in openfoam. But I can not quote them properly. Some of the code are based on wall. How can I define yPlus beyond the wall? Any hint is highly appreciated. |
|
December 9, 2019, 06:00 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
You can probably use the same formula as in the nutkwallfunction:
Code:
scalar yPlus = Cmu25*y[facei]*sqrt(k[celli])/nuw[facei]; A good explanation of various derivations of wall models can be found here: https://www.google.com/url?sa=t&rct=...Nial_7Fsigp3V5 |
|
December 9, 2019, 06:44 |
|
#3 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
|
||
December 9, 2019, 06:51 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
There is also a damping term based on ystar in the incompressible/turbulentTransportModels/RAS/LienCubicKE/LienCubicKE.C model.
This damping function is also meant to correctly reproduce the decrease of the turbulence quantities towards the wall |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of k-epsilon and k-omega Models | Jade M | Main CFD Forum | 40 | January 27, 2023 08:18 |
Error in Two phase (condensation) modeling | adilsyyed | CFX | 15 | June 24, 2015 20:42 |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 15:32 |
Spalarat - Allmaras turbulence model | saisanthoshm88 | Main CFD Forum | 1 | June 16, 2014 17:33 |
What model of turbulence choose to study an external aerodynamics case | raffale | OpenFOAM | 0 | August 23, 2012 06:45 |