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

C_YI in DEFINE_SOURCE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2006, 06:02
Default C_YI in DEFINE_SOURCE
  #1
Sad Thomas :(
Guest
 
Posts: n/a
Hi,

I'm trying to call the mass source of a species to use as a source term. The problem exists in part of a larger code; I've included an example of the problem below.

When I run the UDF I get an access violation.

Am I right to understand that the species index i in C_YI(c,t,i) refers to the species ID in Define > Phases?

DEFINE_SOURCE(test,cell,thread,dS,eqn) real mo2; mo2 = C_YI(cell,thread,0); source=2*mo2; dS[eqn] = 0; return source;

Many thanks for any help.

Thomas
  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



All times are GMT -4. The time now is 21:37.