more than 3 piecewise polynomial
I want to define a property which has more than 3 ranges of temperature. In fluent, for density if we choose piecewise polynomial then we can give maximum 3 ranges.
I want to use 5 ranges. then how could i input 2 more ranges. Can anyone help me with this? 
Re: more than 3 piecewise polynomial
udf can do

Re: more than 3 piecewise polynomial
i can use UDF for other properties. but not for Specific heat(Cp). For Cp i have 5 piece wise polynomial. So, kindly let me know how to use 5 piece wise polynomial or UDF to define Cp property.
Thank you. 
Re: more than 3 piecewise polynomial
sorry, I have never used UDF for Cp. but, I tried something by creating UserDefined Database. There we can give UDF for Cp, but I don't have any idea about which UDF we can use. Follow the screenshot, it may give some clue. http://home.iitk.ac.in/~sathees/ Good Luck

Re: more than 3 piecewise polynomial
thanks, Do u think in similar way i can write a UDF for electrical conductivity, which is going to be part of source term in UDS for my vector potential equation.
How can i add entalpy udf. as there is no listing of enthalpy in properties list. 
Re: In v12, use DEFINE_SPECIFIC_HEAT
See the udf.h for the prototype. Also, the enthalpy is required in the UDF. Compute the integral of Cp from T_ref to T and assign that to *h. Heat of formation is added outside the call.

piecewise poynomial
1 Attachment(s)
hi friends,
ı simulate melting problem inside annulor geometry. ı use paraffin (melting range 5658oC) as a phase change material. first, ı have boussinesq approximation. and also my material properties depends on temperature like Cp (spesific heat) and k (thermal conductivity). my problem here is that, if ı use piecewisepolynomial for k and Cp (solid value and liquid value), ı have a convergence problem (figure attached). but if ı use constant value for Cp and k, ı have no problem and it is still converging (iteration going on) what's the reason of this. what's wrong. thanks for help 
All times are GMT 4. The time now is 09:12. 