CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   anything wrong in this udf (https://www.cfd-online.com/Forums/fluent/46668-anything-wrong-udf.html)

brusly November 26, 2007 06:02

anything wrong in this udf
 
hi all

i want to add a contant source through udf,anything wrong in this udf and how can i check it weather the udf will return any value or not

#include"udf.h"

DEFINE_SOURCE(cure_source,c,t,ds,eqn) { real x[ND_ND]; real source;

source=8000; ds[eqn]=0;

return source; }

thank you


All times are GMT -4. The time now is 18:51.