CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF for specific heat as a function of pressure and temperature (https://www.cfd-online.com/Forums/fluent/217472-udf-specific-heat-function-pressure-temperature.html)

Prikane May 13, 2019 20:25

UDF for specific heat as a function of pressure and temperature
 
Dear All,

I am trying to write a UDF for computing specific heat as a function and pressure and temperature. For this purpose, Fluent recommends using DEFINE_SPECIFIC_HEAT macro instead of the DEFINE_PROPERTY macros which can be used for other properties, such as viscosity, density, and thermal conductivity.

However, for the DEFINE_SPECIFIC_HEAT macro, only Temperature (T), Reference Temperature (Tref), Enthalpy (h) and mass fractions of gas-phase species (yi) are passed by the Fluent solver.

I have tried many things but it seems that is almost impossible to access the pressure at exactly the same cell where the Temperature is obtained. Does anyone has any idea?

DEFINE_SPECIFIC_HEAT macro link: https://www.sharcnet.ca/Software/Ans...e_sp_heat.html

Many thanks in advance!

Kind regards,

Prikane


All times are GMT -4. The time now is 02:42.