|
[Sponsors] |
August 3, 2009, 13:18 |
UDF parallel velocity inlet profile
|
#1 |
New Member
Jordi Armengol Masferrer
Join Date: May 2009
Posts: 1
Rep Power: 0 |
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 |
|
August 12, 2009, 11:35 |
|
#2 |
New Member
Join Date: Aug 2009
Posts: 5
Rep Power: 17 |
Hi,
It works for me. Tom |
|
September 30, 2009, 08:20 |
have you found the answer for your question ?
|
#3 |
New Member
Michał Szymański
Join Date: Sep 2009
Posts: 2
Rep Power: 0 |
I have exacly same problem with my udf . Can't interpret it on parallel mode.
|
|
September 30, 2009, 16:08 |
|
#4 |
Member
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 17 |
Do you interpret the UDF in single mode, save the case file, and then open the case file in parallel mode?
|
|
Tags |
inlet profile, parallel, udf, velocity profile |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Unsteady velocity parabolic profile | Rashad | FLUENT | 3 | October 1, 2018 16:27 |
velocity profile inlet boundary condition question | Lcw | FLUENT | 3 | August 3, 2012 06:53 |
Multi step transient UDF velocity profile problem | William177 | FLUENT | 1 | February 3, 2008 07:47 |
Fluent UDF load and apply inlet velocity b.c. | Knut Lehmann | Main CFD Forum | 2 | June 29, 2007 05:53 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |