CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   How to compute consumption/production rate of species (http://www.cfd-online.com/Forums/fluent-udf/115851-how-compute-consumption-production-rate-species.html)

atoof April 8, 2013 10:01

How to compute consumption/production rate of species
 
Dears,

How can I compute consumption or production rate of a specific species using UDF? I guess I should use the DEFINE_VR_RATE and I know the algorithm of calculation of O2 consumption rate for instance:
forAll Reactions
{
O2_consumption +=reaction->reaction rate * stoichiometric coefficient;
}


All times are GMT -4. The time now is 22:40.