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) { F_CENTROID(x,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! Armengol |
Hi,
It works for me. Tom |
have you found the answer for your question ?
I have exacly same problem with my udf . Can't interpret it on parallel mode.
|
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 07:14. |