CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Yi problem (https://www.cfd-online.com/Forums/fluent-udf/96045-yi-problem.html)

rubis January 11, 2012 04:08

Yi problem
 
hi all,
please i have a problem in my udf ;
#include "udf.h"
DEFINE_PROPERTY(conc,c,t)
{
real R = C_R(c,t);
real YI = C_YI(c,t,1)
C_UDMI(c,t,0) = YI*(R*1000);
return
}

is interpreted sucessfully, but after running for1 one iteration it is giving Access_violation error. but juste when i add the YI without YI the udf runing normaly.

thank
best regards

ComputerGuy January 14, 2012 20:50

Rubis,

You're not returning any values from the function. The define property macro specifies a material/fluid property, and expects a return value.

ComputerGuy

Quote:

Originally Posted by rubis (Post 338766)
hi all,
please i have a problem in my udf ;
#include "udf.h"
DEFINE_PROPERTY(conc,c,t)
{
real R = C_R(c,t);
real YI = C_YI(c,t,1)
C_UDMI(c,t,0) = YI*(R*1000);
return
}

is interpreted sucessfully, but after running for1 one iteration it is giving Access_violation error. but juste when i add the YI without YI the udf runing normaly.

thank
best regards



All times are GMT -4. The time now is 10:40.