WOLFRAM LANGUAGE 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[1]:=
Click for copyable input
Specify the rate equations for each of the reactions:
In[2]:=
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[3]:=
Click for copyable input
The last reaction represents an equilibrium reaction:
In[4]:=
Click for copyable input
Define the reaction parameters for each of the reactions:
In[5]:=
Click for copyable input
Specify the initial concentrations of each species:
In[6]:=
Click for copyable input
Solve and visualize the change in concentration of the species over time:
In[7]:=
Click for copyable input
In[8]:=
Click for copyable input
Out[8]=