|
[Sponsors] |
February 5, 2009, 19:16 |
C_UDSI_G(c,t,UU) returning NAN
|
#1 |
Guest
Posts: n/a
|
I'm having trouble with a UDF. My C_UDSI_G(c,t,UU), C_UDSI_G(c,t,UV), and C_UDSI_G(c,t,VV) commands are returning NAN values, and the code is crashing.
Does anyone know why? The code starts with: #include "udf.h" enum { UU, VV, UV }; DEFINE_SOURCE(u_source, c, t, dS, eqn) { dS[eqn]=0.; source= - C_R(c,t) * ( C_UDSI_G(c,t,UU)[0] + C_UDSI_G(c,t,UV)[1]; return source; } There's lots more after that, but that's as far as the code gets before it returns errors. Thanks in advance for help! |
|
February 17, 2009, 06:51 |
Re: C_UDSI_G(c,t,UU) returning NAN
|
#2 |
Guest
Posts: n/a
|
Hi
At the first iteration C_UDSI_G(c,t,XX) is not available yet. So run fluent 1 or 2 iterations then hook your UDF to fluent. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
C_UDSI_G() use in DEFINE_ADJUST | Gemini | FLUENT | 1 | July 5, 2013 01:12 |
returning to cfd | CK | Main CFD Forum | 1 | March 4, 2008 14:49 |
C_UDSI_G() in DEFINE_ADJUST | shuqin | FLUENT | 2 | June 18, 2006 01:12 |
User Defined Scalars - Returning Values | Carlos V. | FLUENT | 0 | April 19, 2006 19:18 |