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/)
-   -   Udf (https://www.cfd-online.com/Forums/fluent-udf/176198-udf.html)

Ribes August 13, 2016 08:06

Udf
 
Hi!
i wrote this UDF
#include "udf.h"
DEFINE_UDS_FLUX(my_UDS_function,f,t,i)
{
cell_t c;
return 2.31e-5*101325*C_R(c,t)/C_P(c,t)*pow(C_T(c,t)/273.15,1.81)*C_YI_G(c,t,i)
}
(the last lines are all part of the same line)
but when i interpret it it gives:
invalid type for binary expression: double * array 2 of double
Can anybody tell me what the problem is?


All times are GMT -4. The time now is 07:24.