-
-
September 1, 2018 at 9:40 am
Devank12
Subscriber
I have given a udf which define the specific heat of fluid. i have one doubt in this udf. here how to define the Tref in the UDF. explain in detail
#include "udf.h"
DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
{
real cp=2000.;
*h = cp*(T-Tref);
return cp;
}
-
September 2, 2018 at 3:29 am
raul.raghav
Subscriber
Solution updated based on abenhadj's comment below. My apologies!
Tref is available inside the Fluent solver under the Materials tab. See attached screenshot.
-
September 2, 2018 at 6:29 am
DrAmine
Ansys EmployeeNo that is not correct. Tref is the reference temperature for enthalpy calculation from material definition
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2614
-
2088
-
1321
-
1108
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.