Problem with interpreting UDF
Hi, I am trying to write a UDF to define a temperature gradient along a boundary. When I try to interpret my UDF a message appears saying "line 7: parse error." which is the DEFINE_PROFILE(temperature_profile,t,i) line of my UDF shown below. I am relatively new to UDFs and can't see what is wrong with it. Can anybody help? Thank you.
#define TMAX 400.0
#define TATM 300.0
#define A 0.00001
real r, k ,h;
k = x;
h = x;
r = sqrt(k*k+h*h);
F_PROFILE(f,t,i) = (TMAX-TATM)*(exp(-(A/3)*r*r))+TATM;
This is typing mistake. Change #inlcude "udf.h" to #include "udf.h"
|All times are GMT -4. The time now is 19:41.|