|
[Sponsors] |
November 6, 2005, 19:24 |
UDF Error Message
|
#1 |
Guest
Posts: n/a
|
Hi everyone. I have written a UDF to allow me to vary the inertial resistance of a porous zone at a particular time step. However, when I try interpreting the UDF into Fluent, I get the following error message:
"chip-exec: valve_1: wrong return type: void udf function expected" Can anyone tell me what I am doing wrong? My UDF is below... Thanks! #include "udf.h" DEFINE_SOURCE(valve_1, c, t, dS, eqn) { int timestep; real inertia_term; timestep = N_TIME; inertia_term = 10000.; if (timestep == 3) inertia_term = 0.; else inertia_term = 10000.; return inertia_term; } |
|
|
|
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 |