|
[Sponsors] |
April 12, 2014, 04:43 |
udf for reaction
|
#1 |
New Member
sarighulikhan
Join Date: Mar 2014
Posts: 15
Rep Power: 12 |
hello Mr.ghorrocks
please help me in writing udf codes i have the reaction rate for the hetrogenous reaction i selected "user define" in reaction tab in fluent now i dont know how to write udf for that this is my reaction rate by concentration, below: this is reaction: phenol+oxygen+microorganism=>co2 and this is rate of phenol consumption that is important for us r:rate c:concentration of phenol r = ka*(((225-ka*vaq*(225/pphenol-75)*((C-75)/((ka*(225/pphenol-75)-(139875/2)*mmax/(ya*(ks+75+5625/ki)*(ko+373/10)))))/vorg)/pphenol)-C)-mmax*C*(373/10+(kla*(csat-373/10)-(139875/2)*mmax/(yb*(ks+75+5625/ki)*(ko+373/10)))*((C-75)/((ka*(225/pphenol-75)-(139875/2)*mmax/(ya*(ks+75+5625/ki)*(ko+373/10))))))*(25+(139875/2)*mmax*((C-75)/((ka*(225/pphenol-75)-(139875/2)*mmax/(ya*(ks+75+5625/ki)*(ko+373/10)))))/((ks+75+5625/ki)*(ko+373/10)))/(ya*(ks+C+(1/ki)*(C^2))*(ko+(373/10+(kla*(csat-373/10)-(139875/2)*mmax/(yb*(ks+75+5625/ki)*(ko+373/10)))*((C-75)/((ka*(225/pphenol-75)-(139875/2)*mmax/(ya*(ks+75+5625/ki)*(ko+373/10)))))))) except "r" and "C" all parameters are constant,which i have the value of them i have red some tutorials on udf writing, the only thing i know is, we have to use this macro DEFINE_HET_RXN_RATE(user_evap_condens_react, c, t, hr, mw, yi, rr, rr_t)would you please help me how to write udf this is for my thesis , & i got into a trouble i would be very thankful if you kindly give me any hint,or write just a couple of code lines as a basis of my project tanx and regards Hamed from university of tabriz |
|
Tags |
"udf" |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |