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

CEL and variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2016, 11:55
Default CEL and variable
  #1
New Member
 
Casper
Join Date: Nov 2015
Posts: 14
Rep Power: 10
Casper_07 is on a distinguished road
Hi All!

How to define density or thermal conductivity variables? When I defined value in CEL expression, it doesn't change like a constant. How Can I define it?
Casper_07 is offline   Reply With Quote

Old   August 2, 2016, 16:27
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Quote:
Originally Posted by Casper_07 View Post
It doesn't change like a constant.
....I'm confused, can you explain a little more what you are trying to do exactly?

Are you trying to make it a variable of temperature or something?
You have to make an expression in the format: 0.2 [W/m/K^3]*T^2+ 0.2 [W/m/K^2]*T + 0.5[W/m/K]

Last edited by evcelica; August 3, 2016 at 13:43.
evcelica is offline   Reply With Quote

Old   August 2, 2016, 21:38
Default
  #3
New Member
 
Casper
Join Date: Nov 2015
Posts: 14
Rep Power: 10
Casper_07 is on a distinguished road
is it polynomial function? which you described it . I am going to define two points. And then it should be found variables.
For instance, T= 300[K] , rho=1.17[kg/m^3], cp=1005.7[J/kg/K], thermal conductivity 0.02624[W/(m/K)] dynamic viscosity 18.46x10^-6
T= 1500[K] , rho=0.235[kg/m^3], cp=1230[J/kg/K], thermal conductivity 0.094[W/(m/K)] dynamic viscosity 54.46x10^-6[Pa/S]
How to create like variables?
Casper_07 is offline   Reply With Quote

Old   August 2, 2016, 22:46
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can define functions for all these properties (CEL expressions, interpolation functions, user fortran etc) and then you make them define the material properties in the materials tab.
ghorrocks is offline   Reply With Quote

Old   August 3, 2016, 13:43
Default
  #5
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Be careful using functions for both density and specific heat, it can lead to thermodynamic inconsistencies. Use ideal gas instead to avoid this. (Or Constant Specific Heat, which you probably don't want to do)

For your conductivity, if using linear curve fit, it would be:
(5.64667*10^-5)[W/m/K^2]*T + 0.0093[W/m/K]
evcelica 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
How to integrate a variable in CEL ? thu_wang CFX 1 June 16, 2016 10:32
Problem with CEL syntax for additional variable rbezerra CFX 4 July 31, 2015 10:47
Angle variable under CEL. Gloria Gaynor CFX 11 November 26, 2012 06:29
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
CEL Variable "sstrnr" Mgtripple CFX 1 April 3, 2006 05:49


All times are GMT -4. The time now is 12:43.