-
-
April 11, 2019 at 8:16 am
Max4
SubscriberHello,
I have a question about the UDF for the specific heat in FLUENT.
The unit of the Temperature is Kelvin?
Moreover the value of Tref should be set in the Materials Panel?
I wrote this UDF for calculating the specific heat ( in J/kg.K):
#include "udf.h"
DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
{
   real cp;
   cp = 5.661*T + 551,21;
   *h = cp*(T-Tref);
   return cp;
}
Â
Regards,
Maxime
-
April 11, 2019 at 8:51 am
Amine Ben Hadj Ali
Ansys EmployeeYes it is in Kelvin. Yes Tref is set in the material panel.
For a simple formulation that you have it is enough to use polynomial function.
-
April 11, 2019 at 9:00 am
Max4
SubscriberThank you for your answer.
Maxime
-
Viewing 2 reply threads
- The topic ‘Specific Heat Capacity – UDF’ is closed to new replies.
Innovation Space
Trending discussions
Top Contributors
-
4999
-
1676
-
1387
-
1248
-
1021
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
