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/)
-   -   Heterogeneous reaction rate UDF (https://www.cfd-online.com/Forums/fluent-udf/113568-heterogeneous-reaction-rate-udf.html)

snh February 22, 2013 00:43

Heterogeneous reaction rate UDF
 
Hi

I am new to using UDF in fluent and I am trying to interpret a heterogeneous reaction rate UDF which is provided in UDF manual. But when I interpret the UDF i get the following message:

cpp -I"C:\Fluent.Inc\fluent6.3.26/src" -I"C:\Fluent.Inc\fluent6.3.26/cortex/src" -I"C:\Fluent.Inc\fluent6.3.26/client/src" -I"C:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "C:\Fluent.Inc\ntbin\ntx86\rate.c"
Error: C:\Fluent.Inc\ntbin\ntx86\rate.c: line 2: parse error.

Can anyone help me out with this error ?

timjm February 22, 2013 10:33

You may either be missing pointers, or you do not have a return function in your UDF.

msaeedsadeghi February 23, 2013 02:15

Quote:

Originally Posted by snh (Post 409433)
Hi

I am new to using UDF in fluent and I am trying to interpret a heterogeneous reaction rate UDF which is provided in UDF manual. But when I interpret the UDF i get the following message:

cpp -I"C:\Fluent.Inc\fluent6.3.26/src" -I"C:\Fluent.Inc\fluent6.3.26/cortex/src" -I"C:\Fluent.Inc\fluent6.3.26/client/src" -I"C:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "C:\Fluent.Inc\ntbin\ntx86\rate.c"
Error: C:\Fluent.Inc\ntbin\ntx86\rate.c: line 2: parse error.

Can anyone help me out with this error ?

You should not copy paste the UDF from manual. Rewrite it by yourself. Also share if there was any new error.


All times are GMT -4. The time now is 15:11.