CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Define_specific_heat (https://www.cfd-online.com/Forums/fluent/175934-define_specific_heat.html)

hamart August 8, 2016 14:20

Define_specific_heat
 
Hello dudes!

i wonder if i can define specific heat parameter based on temperature and specific volume in saturated region? i already have the Cp(T,V) plot coefficient but my written user define function is not compiled correctly in fluent? if anyone could help me i would appreciate it before :confused::confused::confused:;););)

#include "udf.h"

DEFINE_SPECIFIC_HEAT(cell_specific_heat,c,t,v)
{
real Cp;
real T=C_T(c,t);
real V=C_V(c,t);
Cp=63.438-396.8372*T+44164670*V;
return Cp;
}


All times are GMT -4. The time now is 05:14.