CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF Interpreting Error (https://www.cfd-online.com/Forums/fluent/49065-udf-interpreting-error.html)

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 23:44.