CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   error about uds in udf (

a.maroofi September 22, 2010 02:23

error about uds in udf
Hi, I have such udf that use uds :
uds is a temperature quantity and it's unit is kelvin. I see error when I compile it. Please, help me to solve the error

#include "udf.h"
#define h 2.0
real temp, source, phi;
source = h*(phi-temp);
dS[eqn] = -h;
return source;

All times are GMT -4. The time now is 05:30.