CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF Interpreting Error (

Mohsen Keshavarzian August 21, 2008 06:50

UDF Interpreting Error
Dear everybody I face with following error as I interpret my UDF in Fluent.

Error: 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:\Documents and Settings\home\Desktop\mohsen\Samp e\unsteady_velocity.c"

The UDF is:

#include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f;

begin_f_loop(f, thread)


real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = t;

} end_f_loop(f, thread) }

Please help me.

CDE August 21, 2008 17:11

Re: UDF Interpreting Error
try putting the "real t = RP_Get_Real("flow-time");" line before the begin_f_loop line

Mohsen Keshavarzian August 22, 2008 03:51

Re: UDF Interpreting Error
Dear CDE Thank you for your responce. I had done that, but there were no change in error. Regards.

All times are GMT -4. The time now is 08:56.