HW 6

Problem 1

A continuous stirred tank reactor reacts chemical species A according to the following ODE:

$$\frac{dA}{dt} = \frac{A_{in}-A}{\tau} - kA^2.$$

Problem 2

A $d_p=1$ mm diameter raindrop falls in still air at 300 K, 1 atm. The initial position and velocity of the drop are both 0. The drop’s velocity and position evolve according to the following 2 ODEs:

$$\frac{dv}{dt} = g - \frac{18\mu}{\rho_p d_p^2}v,$$

$$\frac{dx}{dt} = v.$$

Here, $\mu$ is the viscosity of air, $\rho_p$ is the density of water, and $g$ is the gravitational constant.

Problem 3

A reaction among species $A$, $B$, and $C$ is written as

$$A \rightarrow B \rightarrow C.$$

The first reaction has rate constant $k_1=2$ and the second reaction has rate constant $k_2=1.$

The ODEs for the concentrations of the three species are \begin{align} \frac{dA}{dt} &= -k_1A, \\ \frac{dB}{dt} &= k_1A - k_2B, \\ \frac{dC}{dt} &= k_2B. \end{align}

The initial concentrations are $A_0=1$, $B_0=C_0=0$.

On a single plot, show the concentrations of the three species to a time of 5 seconds. Use $\Delta t=0.1$. The plot should include x and y axis labels and a legend. Don’t include a chart title. Use straight lines connecting data points and no data markers.