|
[Sponsors] |
Reading temperature in compressible k-omega SST |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 14, 2019, 00:28 |
Reading temperature in compressible k-omega SST
|
#1 |
Member
Join Date: Dec 2012
Posts: 33
Rep Power: 13 |
Hi all,
I'm trying to modify and build a version of k-omega SST (compressible) where I need to compute temperature gradients to evaluate and construct a new turbulent Prandtl number. I'm not sure how to get the turbulence solver to read in the temperature field to perform the processing. I tried adding T using: Code:
rhoKOmegaSSTAlt ( const volScalarField& rho, const volVectorField& U, const surfaceScalarField& phi, const volScalarField& T, const fluidThermo& thermophysicalModel, const word& turbulenceModelName = turbulenceModel::typeName, const word& modelName = typeName ); but the compilation fails saying no matching function call which leads me to RASModel.H where the T line doesn't exist. I could modify that as well but seems like a complicated thing. Is there a simpler way to read the temperature field into the solver? Thanks |
|
October 14, 2019, 07:47 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
You can lookup T by
Code:
volScalarField Thelp = U.mesh().lookupObject<volScalarField>("T"); |
|
October 15, 2019, 02:08 |
|
#3 |
Member
Join Date: Dec 2012
Posts: 33
Rep Power: 13 |
Hi Michael,
Thanks for this, I can confirm I was able to compile the solver with a slight modification: Code:
volScalarField THelp = U_.mesh().lookupObject<volScalarField>("T"); |
|
October 15, 2019, 02:16 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
What you're getting is the temperature which is stored in the database. It is a constant reference. It means it cannot be modified. The temperature is updated only when the temperature equation is solved.
|
|
October 15, 2019, 19:26 |
|
#5 |
Member
Join Date: Dec 2012
Posts: 33
Rep Power: 13 |
I understand. I fixed the issue and now it updates the Prt every iteration.
The issue came from the fact the updating was happening in a conditional loop which wasn't being entered into. Thanks for the help Michael! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
k and omega at inlet for k-omega SST | driu | OpenFOAM Running, Solving & CFD | 10 | March 5, 2021 11:48 |
Temperature loss in compressible solvers in high speed flows | vkrastev | OpenFOAM Running, Solving & CFD | 1 | June 16, 2018 08:10 |
At high Y+ values does the K Omega SST model just behave like the K Epsilon model? | JuPa | CFX | 0 | December 22, 2015 07:44 |
Temperature increment at wall in compressible flow | Yogini | CFX | 1 | April 1, 2015 18:52 |
Temperature field error in compressible LES | aljo | OpenFOAM Running, Solving & CFD | 4 | December 10, 2013 04:30 |