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

Doubt on where to set a non-default value for the turbulent Prandtl number

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By zd7s18533

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2023, 06:25
Default Doubt on where to set a non-default value for the turbulent Prandtl number
  #1
New Member
 
Alessandro Spreafico
Join Date: Jan 2023
Posts: 4
Rep Power: 3
Ale1542 is on a distinguished road
Hi everyone, I'm currently working on a simulation involving liquid metals usign rhoSimpleFoam as a solver (and OpenFOAM v9). I need to change the Prt from the default value to 1.5. I did it by setting this value in constant/thermophysicalTransport.
Code:
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "constant";
    object      thermophysicalTransport;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

RAS
{
    model   eddyDiffusivity;

    Prt     1.5;
}
I've searched through the tutorials and, apart the from the definition of Prt in the alphatWallFunction boundary condition, this is the only way I've found up to now.
Hence, my question is: Is it correct ro set a value for the Prt in the way I did? Or it's wrong and there is another way?
Thank you
Ale1542 is offline   Reply With Quote

Old   April 23, 2023, 02:36
Default
  #2
New Member
 
zixin Chi
Join Date: Jan 2020
Posts: 5
Rep Power: 6
zd7s18533 is on a distinguished road
dear Ale1542

you are using eddyDiffusivity for RANS model, thus the diffusion term in energy equation is as following:

thermophysicalTransport->divq(he);

the calculation of divq(he) in eddyDiffusivity.C is as following:

-correction(fvm::laplacian(this->alpha()*this->alphaEff(), he))
-fvc::laplacian(this->alpha()*this->kappaEff(), this->thermo().T());

where alpha is phase fraction used in multiphase(for rhoSimpleFoam this term equals to unity), alphaEff is Effective thermal diffusivity of enthalpy, kappaEff is Effective Effective thermal turbulent diffusivity

the calculation of kappaEff and alphaEff in heThermo.C is shown as follows(assuming that you are solving enthalpy equation):

alphaEff = this->kappa_/Cp_ + alphat;
kappaEff = this->kappa_ + Cp_*alphat;

the calculation of alphat in eddyDiffusivity.C is shown as follows:
alphat_ =
this->momentumTransport().rho()
*this->momentumTransport().nut()/Prt_;

in short, you did the right thing, you can see that Prt_ is used to calculate alphat_
zd7s18533 is offline   Reply With Quote

Old   April 23, 2023, 02:42
Default
  #3
New Member
 
zixin Chi
Join Date: Jan 2020
Posts: 5
Rep Power: 6
zd7s18533 is on a distinguished road
dear Ale1542

you did the right thing and Prt_ is used to calculate alphat_: turbulent thermal diffusivity of energy of mixture.

you can inspect the code in heThermo.H, heThermo.C, eddyDiffusivity.H and eddyDiffusivity.C to find more information
zd7s18533 is offline   Reply With Quote

Old   April 23, 2023, 04:20
Default
  #4
New Member
 
Alessandro Spreafico
Join Date: Jan 2023
Posts: 4
Rep Power: 3
Ale1542 is on a distinguished road
Thank you very much for your answer!
One last question if you don't mind: the "compressible::alphatWallFunction" can be used in a low-Re approach? My y+ is lower than 1 and I'm not sure if this formulation can handle a wall resolving approach (for example, referring to the kOmegaSST model, I'm sure that the "omegaWallFunction" can handle both low and high-Re approaches).

Thank you again for your time
Ale1542 is offline   Reply With Quote

Old   April 23, 2023, 08:26
Default
  #5
New Member
 
zixin Chi
Join Date: Jan 2020
Posts: 5
Rep Power: 6
zd7s18533 is on a distinguished road
I guess it depends on which nutwallfunction is used, you can inspect the code in alphatWallFunctionFvPatchScalarField.H:

operator==(rhow*tnutw/Prt_);

obviously the wall alphat is calculated from the density on the wall, turbulent viscosity on the wall and Prandtl number, thus if you use lowRe nut wall function, then alphat is calculated from low-Re approach
Ale1542 likes this.
zd7s18533 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
Boundary condition problem (Freestream) KAYANO OpenFOAM Running, Solving & CFD 5 June 1, 2021 05:57
How do I set a turbulent prandtl number(for example 4.22 instead of the default 0.85, IET Fluent UDF and Scheme Programming 1 March 8, 2021 13:57
parallel run OpenFoam Srinath Reddy OpenFOAM Running, Solving & CFD 13 February 27, 2019 09:15
[mesh manipulation] Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Meshing & Mesh Conversion 42 January 8, 2017 12:55
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 08:14


All times are GMT -4. The time now is 21:15.