In this exercise we will consider the unsteady convection-reaction equation for three components:
where the index refers to one of the 3 components , or . All species move with the (same constant) velocity. The same kinetics as in exercise 1.2 will be used:
For unsteady convection-reaction consider a first-order temporal discretization where the convection term is evaluated explicitly (using e.g. a TVD scheme) and the reaction term implicitly, i.e. an Implicit-Explicit scheme:
Here the bold-vector notation is used to indicate column vectors of 3 long where the 3 elements correspond to the 3 species. The subscript indicates the spatial cell and the superscript the time step.
Suggested approach:
Use a two dimensional array where the first index, , refers to the spatial positions and the second one, and 2 , the index of the species.
Compute the convection term using the concentration on the old time-step
Next loop over all grid cells and in each cell solve (with ):
Please, notice how close this is to the problem solved in the second part of exercise 1.2.2). Reuse the part of your code developed there.
Questions:
Implement the unsteady convection-reaction equations.
Perform simulations using the same kinetics as in exercise 1.2. Consider an initially empty column of length . At the inlet feed pure with . Vary the residence time by changing the velocity .
Plot concentration profiles in the column for the three species at different times.