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

DEFINE_NET_REACTION_RATE of species reaction rate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2022, 12:50
Default DEFINE_NET_REACTION_RATE of species reaction rate
  #1
New Member
 
ZhangHaoqi
Join Date: Jul 2022
Posts: 1
Rep Power: 0
hokie zhang is on a distinguished road
Hi everyone,
I am learning how to modify the reaction rate through DEFINE_NET_REACTION_RATE while using the EDC model. I know it is used to "compute the homogeneous net molar reaction rates of all species" and I could program the rate of each reaction, but I have no idea how to program the rate of every species.

For example,
a1A+b1B->c1C;//reaction rate is r1
c2C+d1D->e1E;//reaction rate is r2
Obviously, the rate of C = c1*r1-c2*r2, but how to describe that in the UDF

The codes below are from the header file "material.h", do they help?
real stoich_product[MAX_PDF_SPECIES]; /* stoichiometric coefficients of products */
real stoich_reactant[MAX_PDF_SPECIES]; /* stoichiometric coefficients of reactants */

What's more, after I hook that UDF, should I use a new UDF to modify the source term?

Any suggestion would be appreciated. Thank you.
hokie zhang is offline   Reply With Quote

Reply

Tags
define_net_reaction_rate, edc model, reaction kinetics, udf and programming


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
Species transport for decomposition reaction achrofi FLUENT 1 August 1, 2017 13:26
Modelling species transport and implementing reaction rates res FLUENT 0 May 11, 2017 11:29
Defining reaction rate with multiple surface reaction Fred Marias FLUENT 1 September 12, 2013 05:56
calculate species reaction rate Anna_p FLUENT 2 July 1, 2013 14:10
UDF for catalyst volumetric reaction, temperature overshoot though rate is small elmcmaster FLUENT 0 October 11, 2010 10:37


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