-
-
December 9, 2019 at 6:35 am
rjoshi
SubscriberHow is temperature calculated in DEFINE_SPECIFIC_HEAT for a material in UDF.
DEFINE_SPECIFIC_HEAT(xxx,T,Tref,h,yi)
{
real cp2 = 2000;
*h=cp2*(T-Tref); // How is T called here as we don't define cell and thread inside the macro //
return cp2;
}
Also since *h is calculated why do i return cp ?
Regards,
Rahul
-
December 9, 2019 at 4:34 pm
DrAmine
Ansys EmployeeThe second why is what Fluent internally wants to know. The first part of the question the actual cell temperature is passed from Fluent to the macro and ready to use. -
December 10, 2019 at 7:44 am
rjoshi
SubscriberHi abenhadj,
So if Cp function of temperature I can just directly write the equation under DEFINE_SPECIFIC_HEAT and use it for calculation of Cp without assigning a constant value to it ?
Regards,
Rahul
-
December 10, 2019 at 3:19 pm
Rob
Ansys EmployeeWhy not use a piecewise linear or polynomial over the UDF?
-
December 10, 2019 at 4:57 pm
DrAmine
Ansys EmployeeStick to what rwoolhou suggested. If the function is very complex then udf. -
December 11, 2019 at 3:35 am
rjoshi
SubscriberHI rwoolhou,
Will try to implement your suggestion.
Regards,
Rahul
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5290
-
3311
-
2471
-
1308
-
1016
© 2023 Copyright ANSYS, Inc. All rights reserved.