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

How to get the current cell and thread inform when using DEFINE_NET_REACTION_RATE

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By malcolmcheong

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 12, 2015, 10:19
Question How to get the current cell and thread inform when using DEFINE_NET_REACTION_RATE
  #1
New Member
 
Join Date: Dec 2012
Posts: 4
Rep Power: 13
malcolmcheong is on a distinguished road
Hello everybody!

Recently I am trying to modified the reaction rates when using the EDC model in fluent. The UDF manual of fluent shows that I can implement that by using DEFINE_NET_REACTION_RATE. And here is the example provided in the UDF manual :

#include "udf.h"

DEFINE_NET_REACTION_RATE(user_net_reaction_rate, p, temp, yi, rr, jac)
{
int i;
for(i=0;i<n_spe;i++)
rr[i] = 1./(real)n_spe - yi[i];
}

However, in my own scheme I need to call the viscosity of the current cell and I will use the macro C_MU_L(c, t), which means I need to know the information of the current cell and thread. But this reaction rate function does not providing the information. How can I solve this problem? or how can I acquire the cell and thread information when I use DEFINE_NET_REACTION_RATE?

Any suggestions will be appreciated. Thank you.
Ety likes this.
malcolmcheong is offline   Reply With Quote

 


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
udf problem jane Fluent UDF and Scheme Programming 37 February 20, 2018 04:17
Possible to loop a face thread inside a cell thread loop? MarcusW FLUENT 3 March 7, 2012 06:32
Accessing cell thread from a boundary face thread? Vishal FLUENT 2 March 21, 2006 07:29
thread facet cell in flunt peter FLUENT 2 September 27, 2005 22:16
how to connect faces(only one adjacent cell thread BC FLUENT 8 July 13, 2005 16:07


All times are GMT -4. The time now is 22:44.