|
[Sponsors] |
June 5, 2023, 06:03 |
UDF problem with specific heat
|
#1 |
New Member
Damir
Join Date: Apr 2023
Posts: 7
Rep Power: 3 |
I am modeling PCM using solidifcation/melting module in ANSYS FLUENT.
(laminar, transient simualtion) to define properties of the PCM, I use UDF. and for specific heat I have following: Code:
DEFINE_SPECIFIC_HEAT(cell_cp,T, Tred,h,yl) { real cp; if(T < T_m) {cp = f(T);} else {cp = 2150;} *h = cp*(T-Tref); return cp; } "Warning: invalid cp (-1.15454545 J/kgK) for PCM at temperature 230.5151 K" As you see in udf there can not be negative specific heat. best regards. Last edited by salkynbekov; June 16, 2023 at 06:40. |
|
June 8, 2023, 08:51 |
|
#2 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17 |
Check your polynome. For 230 K I get a negative value as well. Anyway, you do not have to define the specific heat with an UDF. The possibilities in the material data panal are sufficient, as you can define even stepwise polynomes for temperature depend data.
|
|
Tags |
ansys fluent, pcm modeling, specific heat, udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Domain Reference Pressure and mass flow inlet boundary | AdidaKK | CFX | 75 | August 20, 2018 06:37 |
UDF for Specific Heat - Problem | Hamjaj | Fluent UDF and Scheme Programming | 17 | June 17, 2017 02:28 |
UDF for defining specific heat ratio,gas constant,molecular weight | n.soumya | Fluent UDF and Scheme Programming | 6 | February 17, 2016 09:37 |
fluent udf problem: write specific data for every iteration in a file. | nnvoro | Fluent UDF and Scheme Programming | 1 | May 27, 2013 16:26 |
Specific Heat (Cp) cannot be calculated by UDF??? | João Fernandes | FLUENT | 0 | October 16, 2008 19:58 |