|
[Sponsors] |
Doubt on where to set a non-default value for the turbulent Prandtl number |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 20, 2023, 07:25 |
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 |
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; } 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 |
|
April 23, 2023, 03:36 |
|
#2 |
New Member
zixin Chi
Join Date: Jan 2020
Posts: 5
Rep Power: 6 |
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_ |
|
April 23, 2023, 03:42 |
|
#3 |
New Member
zixin Chi
Join Date: Jan 2020
Posts: 5
Rep Power: 6 |
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 |
|
April 23, 2023, 05:20 |
|
#4 |
New Member
Alessandro Spreafico
Join Date: Jan 2023
Posts: 4
Rep Power: 3 |
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 |
|
April 23, 2023, 09:26 |
|
#5 |
New Member
zixin Chi
Join Date: Jan 2020
Posts: 5
Rep Power: 6 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition problem (Freestream) | KAYANO | OpenFOAM Running, Solving & CFD | 5 | June 1, 2021 06: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 14:57 |
parallel run OpenFoam | Srinath Reddy | OpenFOAM Running, Solving & CFD | 13 | February 27, 2019 10:15 |
[mesh manipulation] Mesh Refinement | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Meshing & Mesh Conversion | 42 | January 8, 2017 13:55 |
foam-extend_3.1 decompose and pyfoam warning | shipman | OpenFOAM | 3 | July 24, 2014 09:14 |