CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

C_UDSI_G(c,t,UU) returning NAN

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2009, 18:16
Default C_UDSI_G(c,t,UU) returning NAN
  #1
Travis
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!

  Reply With Quote

Old   February 17, 2009, 05:51
Default Re: C_UDSI_G(c,t,UU) returning NAN
  #2
Mustapha
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.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
C_UDSI_G() use in DEFINE_ADJUST Gemini FLUENT 1 July 5, 2013 00:12
returning to cfd CK Main CFD Forum 1 March 4, 2008 13:49
C_UDSI_G() in DEFINE_ADJUST shuqin FLUENT 2 June 18, 2006 00:12
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 18:18


All times are GMT -4. The time now is 23:04.