MATHEMATICA FEATURED EXAMPLE

Chemical Reactions

Model a chemical process of two species, FLB and ZHU, which are continuously mixed with carbon dioxide.

    
The inflow of carbon dioxide per unit volume is denoted by:
In[20]:=
Click for copyable input
Specify the rate equations for each of the reactions:
In[21]:=
Click for copyable input
The governing equations for the rate of change of concentrations of each chemical species depend on the rate equations and the reactions:
In[26]:=
Click for copyable input
The last reaction represents an equilibrium reaction:
In[27]:=
Click for copyable input
Define the reaction parameters for each of the reactions:
In[28]:=
Click for copyable input
Specify the initial concentrations of each species:
In[29]:=
Click for copyable input
Solve and visualize the change in concentration of the species over time:
In[30]:=
Click for copyable input
In[31]:=
Click for copyable input
Out[31]=
New to Mathematica? Find your learning path »
Have a question? Ask support »