CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF parallel velocity inlet profile (

Armengol August 3, 2009 12:18

UDF parallel velocity inlet profile
Hi there,

I've got a problem programming a udf to define a logarithmic velocity profile for a BC. Down here you'll find my udf which works on single mode but i got the following error when trying to interpret my vinlet.c file in fluent.

home/apps/Fluent.Inc/fluent6.3.26/src" -I"/home/apps/Fluent.Inc/fluent6.3.26/cortex/src" -I"/home/apps/Fluent.Inc/fluent6.3.26/client/src" -I"/home/apps/Fluent.Inc/fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig-host.h>" "/home/jarmengol/vent/vinlet.c"
Error: /home/jarmengol/vent/vinlet.c: line 2: syntax error.)

#include "udf.h"
DEFINE_PROFILE(vinlet, thread, index)
real x[ND_ND];
real z;
face_t f;
begin_f_loop(f, thread)
z = x[2];
F_PROFILE(f, thread, index) = log( z / 0.1 ) * .58 / .41;
end_f_loop(f, thread)

I have also tried with #if RP_NODE loop as in a previous threat but is not working... i got the same error.

Thanks in advance!


Tom38 August 12, 2009 10:35


It works for me.


szyman September 30, 2009 07:20

have you found the answer for your question ?
I have exacly same problem with my udf . Can't interpret it on parallel mode.

ivanbuz September 30, 2009 15:08

Do you interpret the UDF in single mode, save the case file, and then open the case file in parallel mode?

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