|
[Sponsors] |
April 11, 2013, 00:45 |
surface reaction UDF
|
#1 |
New Member
tjut-wx
Join Date: May 2009
Posts: 14
Rep Power: 17 |
hey!i am modelling the surface reaction,the overal reaction equation:2O3 -> 3O2. and its reaction rate formular is: r = K*b*O3/(1+b*O3); my UDF code as follows:
#include "udf.h" #define K 6.8586e-11 #define b 15296.9e3 DEFINE_SR_RATE(my_rate,f,t,r,mw,yi,rr) { Thread *t0 = t->t0; cell_t c0 = F_C0(f,t); real o3 = yi[0]; real rho_w = 1.0, T_w = 300.0; T_w = F_T(f,t); rho_w = C_R(c0,t0)*C_T(c0,t0)/T_w; o3 *=rho_w/mw[0]; *rr = K*b*o3/(1+b*o3); } the problem is:after compile and hook the UDF,the calcucation results showed that the reaction rate on the defined surface was zero。is there anyone who can help me analyse where the problem is and how to solve it? thanks! |
|
April 11, 2013, 04:10 |
|
#2 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
The *rr calculated is in order of 10^-8 , isnt that too low?
|
|
April 11, 2013, 04:33 |
|
#3 |
New Member
tjut-wx
Join Date: May 2009
Posts: 14
Rep Power: 17 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 12:12 |
Wall surface reaction, definition issue | GBNB | Fluent UDF and Scheme Programming | 2 | February 23, 2013 03:09 |
question about udf for "particle surface reaction rate" | lili | Fluent UDF and Scheme Programming | 0 | January 9, 2013 04:37 |
udf for partical surface reaction | blaid | FLUENT | 0 | April 25, 2011 08:24 |
chemical reaction - decompostition | La S. Hyuck | CFX | 1 | May 23, 2001 01:07 |