-
-
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
Amine Ben Hadj Ali
Ansys EmployeeCan you reformulate your question? -
September 3, 2019 at 11:32 am
-
September 3, 2019 at 2:46 pm
Rob
Forum ModeratorRead 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
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
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
Forum ModeratorIf 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
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
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
Amine Ben Hadj Ali
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
Â
/forum/forums/topic/invalid-cp-error-after-running-program-with-udf/
-
December 17, 2019 at 6:04 am
Amine Ben Hadj Ali
Ansys EmployeeWhat are you using now? Udf or inbuilt? -
December 17, 2019 at 6:07 am
Amine Ben Hadj Ali
Ansys EmployeeAs you created another thread I am lo king this one.
-
- The topic ‘Some questions about user defined specific heat’ is closed to new replies.
-
4994
-
1675
-
1386
-
1248
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.





