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

Inplement yPlus on the turbulence model MK

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2019, 04:42
Default Inplement yPlus on the turbulence model MK
  #1
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
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.
calf.Z is offline   Reply With Quote

Old   December 9, 2019, 06:00
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
You can probably use the same formula as in the nutkwallfunction:


Code:
scalar yPlus = Cmu25*y[facei]*sqrt(k[celli])/nuw[facei];
This formula is only valid for k epsiolon models and flow which are in equilibrium. but i think for attached flows it is ok.



A good explanation of various derivations of wall models can be found here:



https://www.google.com/url?sa=t&rct=...Nial_7Fsigp3V5
mAlletto is offline   Reply With Quote

Old   December 9, 2019, 06:44
Default
  #3
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
You can probably use the same formula as in the nutkwallfunction:


Code:
scalar yPlus = Cmu25*y[facei]*sqrt(k[celli])/nuw[facei];
This formula is only valid for k epsiolon models and flow which are in equilibrium. but i think for attached flows it is ok.



A good explanation of various derivations of wall models can be found here:



https://www.google.com/url?sa=t&rct=...Nial_7Fsigp3V5
Thank you. I will have a try.
calf.Z is offline   Reply With Quote

Old   December 9, 2019, 06:51
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
mAlletto is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 03:56.