CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF for heat flux (https://www.cfd-online.com/Forums/fluent/36891-udf-heat-flux.html)

Kyung Han June 9, 2005 00:58

UDF for heat flux
 
Hi, I'm writing UDF for heat flux. I am a beginner in UDF and having problem what term how to deal with basic variable and function. Allan helped me to find that C_YI is the term for species and I still need to know what term to use for temperature. In my case,

heat_flux = function of temperature and species

Here is my code;

#include "udf.h" real c,t cell, thread, species; DEFINE_PROFILE(heat_flux, t,i) {

c = C_YI(cell, thread, species);

t = ;

real qid = 1*c + 2*t

}

//t should be one relating the temperature and I have no idea which is the one and I don't know how to define those cell, thread, species. Please help me out.

Best regards,

Kyung Han


All times are GMT -4. The time now is 16:23.