We’re updating our badges platform. Badge issuance is temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Specific Heat Capacity – UDF

    • Max4
      Subscriber

      Hello,


      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

    • Amine Ben Hadj Ali
      Ansys Employee

      Yes 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.

    • Max4
      Subscriber

      Thank you for your answer.


      Maxime

Viewing 2 reply threads
  • The topic ‘Specific Heat Capacity – UDF’ is closed to new replies.