CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   using UDS in DEFINE_SPECIFIC_HEAT (

cypsela October 26, 2010 08:05

Hey all,

I'm currently having a problem with using DEFINE_SPECIFIC_HEAT.

From the UDF guide, the macro should be defined by
DEFINE_SPECIFIC_HEAT(name, T, Tref, h,yi)

Hˇwever for my work, instead of yi, I would like to use the mass fraction entered separately as User Defined Scalars. And to access the UDS I use C_UDSI(c,t,i) of course.

Since c and t is not defined in the parentheses, i included
cell_t c;
Thread *t;
in the macro. Still, it doesnt allow me to get the values of C_UDSI(c,t,i) that I need for my calculations.

Am I doing it wrongly or is there another way to actually get the UDS values to be used in my DEFINE_SPECIFIC_HEAT?
Language used is C.
Thanks loads!

highhopes June 25, 2012 12:21

I too need an answer to this question. I am desperately trying to find a way to find the specific heat capacity of a mixture.

All times are GMT -4. The time now is 03:23.