-
-
August 31, 2019 at 1:01 pm
Sky0101
SubscriberHello, everyone. I have some questions about DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
i get an example in udf manual, as follow:
In my case, all thermal properties,such as rho, lambda, mu, are variables about temperature.
i tested some cases, and found *h plays an key role in energy equation.
i want to know how does the pointer *h work in fluent.
thanks
-
September 2, 2019 at 5:10 am
DrAmine
Ansys EmployeeCan you reformulate your question? -
September 3, 2019 at 11:32 am
-
September 3, 2019 at 2:46 pm
Rob
Ansys EmployeeRead the example code in the manual: the code calculates cp and sets "the sensible enthalpy to the referenced value". You've set *h=0 which may mess with some of the maths in Fluent: to understand which parts read the Theory guide (energy equation) and any references used in those sections. Re the approach to define cp, I don't understand what you're trying to do: if you wanted a piecewise profile use a table.
-
September 3, 2019 at 3:23 pm
DrAmine
Ansys EmployeeFluent requires to know how to get the sensible enthalpy out of the user defined heat capacity. -
December 6, 2019 at 9:42 pm
-
December 7, 2019 at 6:51 am
DrAmine
Ansys EmployeeIs hard coded. -
December 7, 2019 at 7:09 pm
atulsbhat
SubscriberShould I Define it in My UDF ?
Like real Tref=600;
or its Not Possible to Alter it (by default its 298K) ?
In the Manual There is No Mention of how to add it..
-
December 8, 2019 at 5:14 pm
atulsbhat
SubscriberHow to Add Tref as 600K? , For Cp UDF.. -
December 9, 2019 at 5:04 pm
-
December 9, 2019 at 5:45 pm
DrAmine
Ansys EmployeeNo that is wrong. Only for multiphase there is an option because of latent heat. -
December 9, 2019 at 9:15 pm
atulsbhat
SubscriberYes You are Right, There is No Option for Single Phase Flow, So We Cannot Change Tref for Single Phase , Is That what you Mean? Or is There a Option to define it Within The Code? -
December 10, 2019 at 9:31 am
DrAmine
Ansys EmployeeTry to incorporate the changes of Tref in the way *h should be calculated.
-
December 10, 2019 at 11:04 am
ahmad91
Subscriber
Read the example code in the manual: the code calculates cp and sets "the sensible enthalpy to the referenced value". You've set *h=0 which may mess with some of the maths in Fluent: to understand which parts read the Theory guide (energy equation) and any references used in those sections. Re the approach to define cp, I don't understand what you're trying to do: if you wanted a piecewise profile use a table.
Hello rwoolhou,
how can I use a table to get piecewise profile?
-
December 10, 2019 at 3:12 pm
Rob
Ansys EmployeeIf you have cp V T data why not use a profile? Saves writing the UDF.
-
December 10, 2019 at 4:00 pm
atulsbhat
SubscriberSir, So I should Change My *h Expression in my UDF with all The Required Changes ?
Regards
-
December 10, 2019 at 4:53 pm
DrAmine
Ansys EmployeeWhich function for Cp you want to incorporate? -
December 10, 2019 at 11:38 pm
atulsbhat
Subscriber
Cp As A Function of Temperature, In Terms of Rational Polynomials,
If (T<=450K)
{Cp= polynomial 1;}
Else if ()
....
So can I Change the expression for *h for Tref =600K (Default Tref 298K)
*h= cp (T-(Tref+302));
???
Will Tref effect my Cp or its only for sensible enthalpy calculation??
-
December 11, 2019 at 6:21 am
DrAmine
Ansys EmployeeI still not understand: rational or not rational use the inbuilt function in Fluent. -
December 13, 2019 at 9:46 am
-
December 13, 2019 at 4:22 pm
DrAmine
Ansys EmployeeYou might need to limit temperature bounds at the beginning. Try that and report -
December 17, 2019 at 2:52 am
atulsbhat
SubscriberI tried That in solution control limits, It Didnt work
https://forum.ansys.com/forums/topic/invalid-cp-error-after-running-program-with-udf/
-
December 17, 2019 at 6:04 am
DrAmine
Ansys EmployeeWhat are you using now? Udf or inbuilt? -
December 17, 2019 at 6:07 am
DrAmine
Ansys EmployeeAs you created another thread I am lo king this one.
-
- 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
-
2610
-
2088
-
1321
-
1108
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.