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

udf for reaction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2014, 03:43
Default udf for reaction
  #1
New Member
 
sarighulikhan
Join Date: Mar 2014
Posts: 15
Rep Power: 12
hane is on a distinguished road
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
hane is offline   Reply With Quote

Reply

Tags
"udf"


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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 11:09.