|
[Sponsors] |
November 16, 2005, 19:31 |
UDF - PLease help!!
|
#1 |
Guest
Posts: n/a
|
Hi,
I'm trying to use UDF to simulate unsteady velocity in Fluent. My equation is as follows: Q = 0.35 + 0.35 * sin(2*pi*0.5*t) I wrote the following code in C in order to hook it to Fluent: #include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = 0.35 + 0.35*sin(2*pi*0.5*t); } end_f_loop(f, thread) } But Fluent refuse to read it and gives an error called PARSE ERROR - LIne 1. Also it crashes whenever I try to make it read the UDF. I have no clue why this is happening. Could anyone explain this and tell me how it can be corrected? Any help is greatly appreciated. Thanks, Vidya |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |