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

C_YI in DEFINE_SOURCE

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 8, 2006, 07: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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 16:02.