Difference between revisions of "Assignment 5 - 2010"

From Process Model Formulation and Solution: 3E4
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{OtherSidebar
{{OtherSidebar
| due_dates = 17 November 2010
| due_dates = 17 November 2010 (''late hand-ins will not be accepted after 18 November'')
| dates_alt_text = Due date(s)
| dates_alt_text = Due date(s)
| questions_PDF = Assignment-5-2010.pdf
| questions_PDF = Assignment-5-2010.pdf

Revision as of 01:22, 15 November 2010

Due date(s): 17 November 2010 (late hand-ins will not be accepted after 18 November)
Nuvola mimetypes pdf.png (PDF) Assignment questions
Other instructions Hand-in at class.

<rst> <rst-options: 'toc' = False/> <rst-options: 'reset-figures' = False/> .. |m3| replace:: m\ :sup:`3`

Question 1 [1.5]

=====

Richardson's extrapolation allows us to accelerate convergence. The technique was used to decrease the error for the forward difference approximation for numerical differentiation.

Using Richardson's extrapolation technique, but this time with the central difference approximation -- an :math:`O(h^2)` method -- derive an improved (accelerated accuracy) approximation. What is the order of this approximation?

Question 2 [2]

==

.. note:: Adapted from the course textbook, problem 24.11

A colleague has designed a new transdermal patch to deliver insulin through the skin to diabetic patients, eliminating the need for painful injections. She has collected the following data on the mass flux, :math:`f`, of insulin being delivered through the patch (and skin), as a function of time, :math:`t`. [Mass flux is the flow rate through a unit area.]

=============================== === === === === === === === === === ===

math:`t` [hour] 0 1 2 3 4 5 6 10 14 18 24

--- --- --- --- --- --- --- --- --- --- ---

math:`f` [mg/(cm\ :sup:`2`.hr)] 15 14 12 11 9 8 7.2 5 2.5 2 1

=============================== === === === === === === === === === ===

  1. . Provide an estimate, using the trapezoidal rule, of the mass of drug delivered to the patient over a 24 hour period with a patch of 10 cm\ :sup:`2`.
  1. . Can you provide an alternate, more accurate estimate, using another technique we learned about? If so, provide the answer; if not, explain why.


Question 3 [3]

==

.. note:: This question is a little unconventional; but we strongly recommended you struggle with it, without asking for help from TA's or other group members.

The following reaction is taking place in a large, well-mixed reactor: :math:`{\sf N} \rightarrow {\sf B}` with rate expression:

.. math::

r = \displaystyle \frac{k_1 C_{\sf N}}{k_2 + C_{\sf N}} \qquad\qquad\,\, k_1 = 30.0\,\,\text{g/(m$^3$.day)}\qquad\qquad\,\, k_2 = 20.4\,\,\text{g/m$^3$}

  1. . Derive a dynamic mass balance for species :math:`{\sf N}`, given that:

* the flow into the large tank is :math:`F^\text{in}(t) = 500` m\ :sup:`3`/day * the inlet stream only contains species :math:`{\sf N}`, approximately constant at 100 g/m\ :sup:`3` * the tank is operated at constant volume, :math:`V = 2000` m\ :sup:`3`

  1. . Using techniques learned in this course up to 11 November, calculate the concentration of :math:`{\sf N}` as a function of time over the first 3 days (roughly), as the reactor is starting up. The tank was initially filled to 2000 m\ :sup:`3` with material at a concentration of :math:`C_{\sf N} = 100` g/m\ :sup:`3`.

Show your calculations, source code and plots. Please do not simply attach your source code in an appendix; your code should be worked into your solution, as part of your explanations. Also note that you should **not** use methods such as Euler's methods, or MATLAB/Python functions such as ``scipy.integrate.ode`` or ``ode45``.

Question 4 [1.5]

=====

.. note:: From the 2009 final exam, 3 points out of 50; 3 hours.

You are given a set of algorithms for numerical integration. You are also given a set of problems. You are to match every problem (1, 2, 3) with an algorithm (A, B, or C). You may use each algorithm **only once**. Motivate each of your answers **carefully**.

    • Problem**
    • 1**: Determine the integral of a very nonlinear function with high accuracy.
    • 2**: Determine the integral of a computationally expensive, black-box function with reasonable accuracy.
    • 3**: Determine the integral of a cubic model for a pure component's specific heat capacity: e.g. :math:`C_p(T) = a + bT + cT^2 + dT^3`
    • Algorithms**
    • A**: Simpson's 1/3 rule
    • B**: Romberg method
    • C**: 4-point Gauss quadrature

Question 5 [2]

===

.. note:: From the 2009 final exam, 2+1.5 points, out of 50; 3 hours. There were other parts to the question, but they are not relevant here.

Consider a CSTR, fed with one inlet stream at volumetric flow rate :math:`F^{\rm in}` and containing species :math:`{\sf A}` at concentration :math:`C_{\sf A}^{\rm in}=1` mol/L. There is no outlet from the reactor. A fluid of constant density is considered throughout this question.

The reactor is initially empty, and the fluid is fed into the tank via the inlet stream at the volumetric flow rate given by :math:`F^{\rm in}(t) = 1-\exp(-t)` [in m\ :sup:`3`/min].

  1. . Determine the volume of liquid :math:`V(t)` accumulated at :math:`t_1=5` min using Romberg integration (perform **3 steps** of Romberg's method; that is, 3 columns in the graphical depiction).
  1. . Repeat the calculation using two-point Gauss quadrature, and compare the results. Which method is likely to provide the best estimate?

.. raw:: latex

\vspace{0.5cm} \hrule \begin{center}END\end{center}


</rst>