CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Source (multi-step chemical reaction) (https://www.cfd-online.com/Forums/fluent-udf/129887-source-multi-step-chemical-reaction.html)

Laexzzz February 15, 2014 07:24

Source (multi-step chemical reaction)
 
Hello!
I have a question about UDF for chemical reaction modelling

Scheme of my reaction:

dA/dt = -k1*A[t]
dB/dt = -k2*R(0)[t]*B[t]-k2*Mm0[t]*B[t]
dR(0)/dt = k1*A[t]-k2*R(0)[t]*B[t]
dMM0/dt = k2*R(0)[t]*B[t]

dA/dt, dB/dt, dR(0)/dt, dMM0/dt is the change of components concentrations in time.
A[t], B[t], R(0)[t], Mm0[t] - concentration of the component at time t
k1 k2 is reaction rate constant

Components A and B are continuously received in the tube.

http://s006.radikal.ru/i214/1402/af/f84496b1d07c.png

Next I will need to know the concentration of each component at the tube

How can I solve this system of differential equations?
What UDF should I use?
Define_source and DEFINE_UDS_UNSTEADY?

Thank you in advance

Sara28 July 1, 2015 02:16

Hello,

did you solve the Problem? Could you please explain how? It could be helpful for my task. Please contact me. :)


All times are GMT -4. The time now is 10:47.