|
[Sponsors] |
UDF for specific heat as a function of pressure and temperature |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 13, 2019, 21:25 |
UDF for specific heat as a function of pressure and temperature
|
#1 |
New Member
Prikane
Join Date: Mar 2016
Posts: 28
Rep Power: 10 |
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 |
|
Tags |
fluent, specific heat, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for specific heat as function of pressure | ghobold | Fluent UDF and Scheme Programming | 20 | August 22, 2019 09:19 |
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion | faizan_habib7 | CFX | 4 | February 1, 2016 18:00 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |