Hi,
I am trying to get UDF for solid (cordierite) specific heat as a function of temperature.
I made the following UDF:
DEFINE_SPECIFIC_HEAT(cell_specific_heat, T, Tref, h, yi)
{
real T = C_T(c,t);
/* Units of Cp_Porous is in J/kg/K */
real Cp_porous = 1.071 + 1.56e-4*T – 3.435e4/(T*T);
*h = Cp_porous*(T-Tref);
return Cp_porous ;
}
ReactionKineticsImplicitV2.c(268,8): error: redefinition of ‘T'
real T = C_T(c,t);
^
ReactionKineticsImplicitV2.c(265,42): note: previous definition is here
DEFINE_SPECIFIC_HEAT(cell_specific_heat, T, Tref, h, yi)
^
ReactionKineticsImplicitV2.c(268,18): error: use of undeclared identifier ‘t'
real T = C_T(c,t);
^
ReactionKineticsImplicitV2.c(268,16): error: use of undeclared identifier ‘c'
real T = C_T(c,t);
Can you help me to resolve these errors?
2. The Polynomial is Cp = a + BT + C/(T^2). Can the built-in polynomial handle this equation?
Thank you so much.
Pratheeba