CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Accessing previous time step temperature in UDF (http://www.cfd-online.com/Forums/fluent/39857-accessing-previous-time-step-temperature-udf.html)

Sam Bennett February 27, 2006 11:46

Accessing previous time step temperature in UDF
 
Hi everyone,

I'm trying to access the temperature from the previous time step on a face. I think I need to define a UDS but I'm not sure how. At present I have a line in a DEFINE_PROFILE UDF that says:

F_UDSI(f,t1,0)= F_T_M1(f,t1);

face_temp = F_UDSI(f,t1,0);

When I try to compile this I get the message "F_T_M1: undeclared variable"

Do I need to 1) #INCLUDE something more than udf.h. 2) Define the UDS somewhere else. 3) Do something else?

Thanks in advance for your help, Sam


All times are GMT -4. The time now is 17:45.