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

Add additional scalar to turbulence model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2010, 12:58
Default Add additional scalar to turbulence model
  #1
New Member
 
John Weaver
Join Date: Mar 2009
Posts: 6
Rep Power: 17
john_w is on a distinguished road
I am in the process of modifying one of the compressible turbulence models (k-omega SST) to utilize a variable Prandtl number. As Prt is a function of kinematic eddy viscosity and the thermal diffusivity (alphat_), it is first necessary to calculate local values of alphat_. To do this, it is necessary to have access to the scalar temperature.

In order to do this, I have added the following lines to my modified version of the k-Omega SST turbulence model header file

//- Return the temperature
virtual tmp<volScalarField> thermophysicalModel_.T() const
{
return T_;
}
However, this addition causes a compilation error -

error: ‘thermophysicalModel_’ declared as a ‘virtual’ field

How should this field be declared?

I have wondered if it is necessary to also add an additional expression to the turbulenceModel.H base class as well? If so, what might that expression be?

Any thoughts here would be much appreciated.

Thanks in advance,

John
john_w is offline   Reply With Quote

Old   December 23, 2010, 13:45
Default
  #2
Member
 
Join Date: Nov 2010
Posts: 54
Rep Power: 16
usergk is on a distinguished road
Hi

Does anyone know how to implement variable Prandtl number?

Thanks,
gk
usergk is offline   Reply With Quote

Reply

Tags
scalar, turbulence model


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
question about turbulence model selection and sensitivity karananand Main CFD Forum 1 February 26, 2010 05:41
Discussion: Reason of Turbulence!! Wen Long Main CFD Forum 3 May 15, 2009 10:52
Turbulence model Herry Phoenics 1 May 29, 2003 14:19
turbulence model question Jason Wei Main CFD Forum 1 May 6, 2003 01:45
Why Turbulence models are not universal. Senthil Main CFD Forum 4 July 5, 2000 05:34


All times are GMT -4. The time now is 13:22.