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

Temperature dependent thermal conductivity in partially premixed model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2021, 14:27
Exclamation Temperature dependent thermal conductivity in partially premixed model
  #1
New Member
 
Join Date: Oct 2019
Posts: 3
Rep Power: 6
Giunto94 is on a distinguished road
Hello everyone, I am working on a combustor for my PhD project and I want to use the partially premixed combustion model for my simulations.
For this combustion model, Fluent automatically creates a "pdf-mixture" in the Material section where the viscosity and thermal conductivity are set constant by default.
However, I would like to define a UDF to make these two properties temperature dependent. I wrote an UDF like this:

DEFINE_PROPERTY(thermal_conductivity,c,t){
real k;
real temp;
temp = C_T(c,t);
k=function of temp;
return k;
}

The UDF is successfully compiled, with no errors, but when I click on "Recalculate properties", in the Partially premixed model window, FLuent crashes. Instead, If I write k=constant in the UDF, it works well. I can't figure out why it doesn't work...
I need your help, please.

Lorenzo
Giunto94 is offline   Reply With Quote

Old   October 5, 2021, 15:50
Default
  #2
Senior Member
 
Lorenzo Galieti
Join Date: Mar 2018
Posts: 373
Rep Power: 12
LoGaL is on a distinguished road
In partially premixed model the temperature is not a primary variable (i.e. you calculate it as post processing step, you don’t solve for it)
LoGaL is offline   Reply With Quote

Old   October 5, 2021, 16:35
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
C_T is a cell thread, needs a mesh, which has nothing to do with the creation of a pdf table
LuckyTran is offline   Reply With Quote

Old   October 5, 2021, 16:43
Default
  #4
New Member
 
Join Date: Oct 2019
Posts: 3
Rep Power: 6
Giunto94 is on a distinguished road
I understand what you mean and It makes sense, but...if there is the possibility to use polynomial/piecewise polynomial/etc... correlations to define thermal conductivity as a function of temperature, why with the UDF doesn't work?
Giunto94 is offline   Reply With Quote

Old   October 5, 2021, 17:30
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
It's really simple... except it contradicts the partially premixed combustion model. There's two things going on

First is that the PDF table is a lookup table generated once. You are defining the thermal conductivity using a UDF that cells for local cell temperatures which makes no sense. To appreciate what this means, open up microsoft excel and type in C_T into a cell. Nothing happens, it makes no sense to call for a cell thread in a PDF table. And even if it id, the local cell temperatures would change each iteration, whereas the PDF table should never change.

Second is the PDF is generated as a function of mixture fraction. Even for non-adiabatic cases what Fluent does is it generates a stack of PDF's each functions of mixture fraction (one table at each enthalpy) and then interpolates between different enthalpies.


You need to get more creative if you want temperature dependent thermal conductivities in your simulation. And just FYI there is a set of macro's for overwriting the PDF table ( of the form DEFINE_PDF_TABLE) that might be of some use to you.
Giunto94 likes this.
LuckyTran is offline   Reply With Quote

Reply

Tags
fluent, temperature dependent, thermal conductivity, udf


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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
effective thermal conductivity and mass weighted thermal conductivity Weiqiang Liu FLUENT 8 June 19, 2020 00:08
Temperature dependent thermal conductivity and specific heat Property of mixture of t rohan@123 FLUENT 0 April 17, 2020 10:34
Thermal conductivity issue Jared1986 CFX 3 March 20, 2014 10:38
convergenceof natural convection prob. in cfx cpkewat CFX 15 January 31, 2014 06:29


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