FLUENT UDF manual might not explicitly mention using two temperatures together in a single User Defined Function (UDF). However, there are ways to achieve the non-equilibrium heat transfer with a two-energy model using UDFs. Here's how you can approach it:
1. Define UDFs for Source Terms:
Create separate UDFs for the source terms in both the solid and fluid energy equations. In these UDFs, you can access the following information:
- Cell-centered Variables: You can use
C_CENTROID(c,t)
to get the current time step values for various variables at the cell centroid, including fluid temperature (C_T(c,t)
) and other relevant properties. - Custom User Defined Memory (C_UDM): This allows you to store and access data from previous time steps. You can define separate UDFMs for solid and fluid temperatures from the previous time step (e.g.,
C_UDM(c,T_SOLID_PREV)
andC_UDM(c,T_FLUID_PREV)
) and update them within the UDFs.