|
[Sponsors] |
How to get the current cell and thread inform when using DEFINE_NET_REACTION_RATE |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 12, 2015, 10:19 |
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 |
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. |
|
|
|
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 |