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

Define turbulent Prandtl Number

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2018, 06:23
Default Define turbulent Prandtl Number
  #1
New Member
 
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 7
meshingpumpkins is on a distinguished road
Where can i define the turbulent Prandtl number? What is the default value?
meshingpumpkins is offline   Reply With Quote

Old   June 18, 2018, 09:38
Default
  #2
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
You need to define it in transportProperties. There are several threads in this forum which discuss this issue. For syntax etc. please search the forum.
Bazinga is offline   Reply With Quote

Old   June 18, 2018, 09:59
Default
  #3
New Member
 
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 7
meshingpumpkins is on a distinguished road
sorry i couldn`t find anithing about this topic.

actually i found a solution outside of the forum where you define the Prandtl number in the boundary conditions.
meshingpumpkins is offline   Reply With Quote

Old   June 19, 2018, 08:57
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

There is, in fact, two default values for turbulent Prandtl number.

Code:
$ cd $FOAM_SRC
$ ack Prt
TurbulenceModels/compressible/EddyDiffusivity/EddyDiffusivity.C
...
74:    Prt_("Prt", dimless, 1.0),
...
TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C
142:    Prt_(0.85),
...
175:    Prt_(dict.lookupOrDefault<scalar>("Prt", 0.85)),
...
TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C
48:    Prt_(0.85)
...
73:    Prt_(dict.lookupOrDefault<scalar>("Prt", 0.85))
...
TurbulenceModels/incompressible/turbulentTransportModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C
143:    Prt_(0.85),
...
functionObjects/solvers/energyTransport/energyTransport.C
252:    Prt_(dict.lookupOrDefault("Prt", dimensionedScalar("Prt", dimless, 1))),
regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.C
...
99:    Prt_(dict.lookupOrDefault("Prt", 0.85))
alexeym is offline   Reply With Quote

Old   June 19, 2018, 09:20
Default
  #5
New Member
 
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 7
meshingpumpkins is on a distinguished road
ok. actually i am simulating a heatsink so i use the chtmultiregion solver.
with the adaption of the Prt i want wo fit the simulation results to my experiment. the simulation overpredicts the temperature at the heatsink.

i see this result in all my heatsink simulations in a low reynoldsnumber regime (RE=2000-12000)

i currently use SSTkomega turbulence model. in the past i have tried different turbulence models without any success.

in the future i want to try LES simulation to see if i get better results.
i also tried to refine the boundary mesh to fare beyond yplus 1. the result gehts closer to the experiment but is also 10% different (Tsim is hotter than Texperiment)

The heatsink is cooled with an axial fan(impingement setup) (120mm diameter)
meshingpumpkins is offline   Reply With Quote

Old   June 19, 2018, 17:23
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Did you try to check if your results depend on turbulent Prandtl number at all? I can imagine if your mesh is not quite OK, and flow is highly turbulent, heat diffusivity can be overestimated near walls and heat removal is also overestimated.

BUT I would start with convergence check and then with a check of BC.
alexeym is offline   Reply With Quote

Old   April 19, 2019, 07:18
Default
  #7
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 7
calf.Z is on a distinguished road
So if I want to redefine Prt. I should just change the Prt number in nutWallFunciton/ nutLowReWallFunciton/....? So I needn't change code?
calf.Z is offline   Reply With Quote

Old   April 19, 2019, 16:20
Default
  #8
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You want to redefine turbulent Prandtl number for what? Neither nutWallFunction, nor nutLowReWallFunction use Prt.
alexeym is offline   Reply With Quote

Old   April 19, 2019, 22:49
Default
  #9
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 7
calf.Z is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

You want to redefine turbulent Prandtl number for what? Neither nutWallFunction, nor nutLowReWallFunction use Prt.
Sorry I made a mistake. It should be alphatWallFunction.

If I use turbulence models to simulate, there are some terms related to Prt in equations. So I want to change the default value of it.
calf.Z is offline   Reply With Quote

Old   April 20, 2019, 12:04
Default
  #10
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
You can change turbulent Prandtl number, used in alphatWallFunction by putting Ptr in boundary field dictionary. There are lots of examples in tutorials:

Code:
$ pwd
$WM_PROJECT_DIR/tutorials
$ grep -r Prt *
combustion/PDRFoam/flamePropagationWithObstacles/0/alphat.orig:        Prt             0.85;
combustion/PDRFoam/flamePropagationWithObstacles/0/alphat.orig:        Prt             0.85;
combustion/PDRFoam/flamePropagationWithObstacles/0/alphat.orig:        Prt             0.85;
combustion/XiEngineFoam/kivaTest/-180/alphat:        Prt             0.85;
combustion/XiEngineFoam/kivaTest/-180/alphat:        Prt             0.85;
combustion/XiEngineFoam/kivaTest/-180/alphat:        Prt             0.85;
combustion/coldEngineFoam/freePiston/0/include/boundaryConditions:        Prt             0.85;
combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/turbulenceProperties:        Prt             1;
combustion/fireFoam/LES/oppositeBurningPanels/constant/turbulenceProperties:        Prt             1;
combustion/reactingFoam/RAS/DLR_A_LTS/0/alphat:        Prt             0.85;
combustion/reactingFoam/RAS/DLR_A_LTS/0/alphat:        Prt             0.85;
combustion/reactingFoam/RAS/DLR_A_LTS/0/alphat:        Prt             0.85;
combustion/reactingFoam/RAS/DLR_A_LTS/constant/turbulenceProperties:        Prt 0.85;
combustion/reactingFoam/RAS/SandiaD_LTS/0/alphat:        Prt             0.85;
combustion/reactingFoam/RAS/SandiaD_LTS/0/alphat:        Prt             0.85;
combustion/reactingFoam/RAS/membrane/0/alphat:        Prt             0.85;
compressible/rhoPimpleFoam/RAS/annularThermalMixer/constant/boundaryConditions:        Prt             0.85;
compressible/rhoPimpleFoam/RAS/cavity/0/alphat:        Prt             0.85;
compressible/rhoPimpleFoam/RAS/cavity/0/alphat:        Prt             0.85;
compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/alphat:        Prt             0.85;
compressible/rhoPimpleFoam/RAS/mixerVessel2D/0/alphat:        Prt             0.85;
compressible/rhoPimpleFoam/RAS/squareBendLiq/0/alphat:        Prt             0.85;
compressible/rhoSimpleFoam/squareBend/0/alphat:        Prt             0.85;
compressible/rhoSimpleFoam/squareBendLiq/0/alphat:        Prt             0.85;
compressible/sonicFoam/RAS/nacaAirfoil/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/constant/transportProperties:Prt             [0 0 0 0 0 0 0] 1.0;
heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/constant/transportProperties:Prt             [0 0 0 0 0 0 0] 0.85;
heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/constant/transportProperties:Prt             [0 0 0 0 0 0 0] 0.85;
heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/0/alphat:        Prt             0.85;
heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/constant/transportProperties:Prt             [0 0 0 0 0 0 0] 0.85;
heatTransfer/buoyantSimpleFoam/buoyantCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/buoyantCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/buoyantCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/buoyantCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/circuitBoardCooling/0.orig/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/circuitBoardCooling/0.orig/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/externalCoupledCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/externalCoupledCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/externalCoupledCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/externalCoupledCavity/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/0/alphat:        Prt             0.85;
heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/0/alphat:        Prt             0.85;
lagrangian/reactingParcelFoam/hotBoxes/0.orig/alphat:        Prt             0.85;
lagrangian/reactingParcelFoam/hotBoxes/0.orig/alphat:        Prt             0.85;
lagrangian/reactingParcelFoam/verticalChannel/0/alphat:        Prt             0.85;
lagrangian/reactingParcelFoam/verticalChannelLTS/0/alphat:        Prt             0.85;
lagrangian/simpleReactingParcelFoam/verticalChannel/0/alphat:        Prt             0.85;
mesh/snappyHexMesh/iglooWithFridges/0/alphat:        Prt             0.85;
mesh/snappyHexMesh/iglooWithFridges/constant/transportProperties:Prt             [0 0 0 0 0 0 0] 0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/0/alphat.gas:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/0/alphat.gas:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/0/alphat.liquid:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/0/alphat.liquid:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/0/alphat.gas:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/0/alphat.gas:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/0/alphat.gas2:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/0/alphat.gas2:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/0/alphat.liquid:        Prt             0.85;
multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/LES/bubbleColumn/0/alphat.air:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/LES/bubbleColumn/0/alphat.water:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/LBend/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumn/0/alphat.air:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumn/0/alphat.water:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnEvaporatingReacting/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnPolydisperse/0/alphat.air:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnPolydisperse/0/alphat.water:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/fluidisedBed/0/alphat.air:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingPolyDisperse/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingPolyDisperse/0/alphat.gas:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingPolyDisperse/0/alphat.liquid:        Prt             0.85;
multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingPolyDisperse/0/alphat.liquid:        Prt             0.85;
multiphase/twoPhaseEulerFoam/LES/bubbleColumn/0/alphat.air:        Prt             0.85;
multiphase/twoPhaseEulerFoam/LES/bubbleColumn/0/alphat.water:        Prt             0.85;
multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/0/alphat.air:        Prt             0.85;
multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/0/alphat.water:        Prt             0.85;
multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/0/alphat.air:        Prt             0.85;
Gerhard likes this.
alexeym is offline   Reply With Quote

Old   February 27, 2023, 22:41
Default
  #11
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 107
Rep Power: 5
dasith0001 is on a distinguished road
Hi Foamers,

I do not want to start a different tread because my issue is very related, apologies for hijacking though.

I am running a model with significant pressure drops in the system. with the pressure drops, fluid properties, particularly the thermal conductivity changes. I am updating my thermophysical properties on the run using NIST data.

All was good so far ( even the results ) until I wanted to try turbulence in RAS model.

my first question is, do the thermophysical properties ( say conductivity ) defined in 'thermophysicalProperties' files get washed out by the 'turbulent Prt number' defined in 'alphat' ?

If yes, is there anyway forcing the model to read property data from 'thermophysicalProperties' whilst the turbulence is on ?

Is the Prt used only at boundary layers and the rest of the fluid region assigned with properties from thermophysicalProperties ?

Thank you in advance.
Dasith
dasith0001 is offline   Reply With Quote

Old   February 28, 2023, 19:15
Default
  #12
Senior Member
 
shinji nakagawa
Join Date: Mar 2009
Location: Japan
Posts: 113
Blog Entries: 1
Rep Power: 18
snak is on a distinguished road
Quote:
my first question is, do the thermophysical properties ( say conductivity ) defined in 'thermophysicalProperties' files get washed out by the 'turbulent Prt number' defined in 'alphat' ?
No.

Turbulent Prandtl number Prt is used as alphat = turbulence->nut()/Prt.

Effective thermal diffusivity alphaEff is obtained from alphaEff = turbulence->nu()/Pr + turbulence->nut()/Prt. Contribution of turbulence is added to laminar one (turbulence->nu()/Pr) .

https://develop.openfoam.com/Develop...pleFoam/TEqn.H
snak is offline   Reply With Quote

Old   March 1, 2023, 18:39
Default
  #13
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 107
Rep Power: 5
dasith0001 is on a distinguished road
Quote:
Originally Posted by snak View Post
No.

Turbulent Prandtl number Prt is used as alphat = turbulence->nut()/Prt.

Effective thermal diffusivity alphaEff is obtained from alphaEff = turbulence->nu()/Pr + turbulence->nut()/Prt. Contribution of turbulence is added to laminar one (turbulence->nu()/Pr) .

https://develop.openfoam.com/Develop...pleFoam/TEqn.H
Thank you for the response.

Thank you

Last edited by dasith0001; March 5, 2023 at 22:32.
dasith0001 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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 21:00
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 22:29
Turbulent Prandtl number Ravenn FLUENT 14 June 20, 2017 11:13
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49


All times are GMT -4. The time now is 14:42.