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/)
-   -   Age of air (https://www.cfd-online.com/Forums/fluent-udf/157665-age-air.html)

asal August 4, 2015 17:31

Age of air
 
Hello my dear friends.

I want to have a contour plot of air age in a room. I try many things, but I didn't got result. I tried the following UDF and user defined scalar (UDS).

#include "udf.h"

DEFINE_DIFFUSIVITY(mean_age_diff,c,t,i)
{
return C_R(c,t) * 2.88e-05 + C_MU_EFF(c,t) / 0.7;
}

But I got the following error during the iterations:

chip-exec: mean_age_diff: argument 3: incorrect type (5): pointer expectedchip-exec: mean_age_diff: argument 4: incorrect type (65802): int expectedchip-exec: mean_age_diff: argument 3:

Is there anyone here can kindly help me in the case?
Thanks.


All times are GMT -4. The time now is 06:41.