Difference between revisions of "Assignment 2 - 2010 - Solution/Question 3"

From Process Model Formulation and Solution: 3E4
Jump to navigation Jump to search
m (Created page with "{{Navigation|Book=Assignment 2 - 2010 - Solution|previous=Question 2|current=Back to all questions|next=Question 4}} <rst> <rst-options: 'toc' = False/> <rst-options: 'reset-fig...")
 
m
Line 4: Line 4:
<rst-options: 'toc' = False/>
<rst-options: 'toc' = False/>
<rst-options: 'reset-figures' = False/>
<rst-options: 'reset-figures' = False/>
Question 3 [4]
================
.. note:: This is an example of the type of question you will get in the take-home midterm.
An impure gas stream can be cleaned, by absorbing the impurity into the liquid phase of an appropriate liquid solvent.  For example, carbon dioxide can be removed from flue gas by scrubbing it with monoethanolamine; or NO\ :sub:`2` can be absorbed into water to produce nitric acid.
In this question we will derive the model equations for a sequence of absorber stages (trays), in which a component in the gas phase is absorbed into the liquid phase.
First consider the :math:`n^\text{th}` stage in an absorber:
.. figure:: images/absorber-tray.png
:alt: images/math
:scale: 16
:align: center
where the molar gas flow is :math:`G` and the liquid molar flow is :math:`L`, and assume these are constant throughout the column.  Let the number of moles held-up in the liquid phase of the tray be :math:`H_n`, the hold-up. And let's only consider a binary system, where the species we are interested in is called A, and the absorbing liquid is species B. 
The mol **fraction** of species A, in the gas phase, leaving the tray is :math:`y_{A,n}`, and we also have :math:`y_{B,n}`, the mol fraction of B leaving:  this gives of course :math:`y_{A,n} + y_{B,n} = 1`.  But since we are interested only in species A in this question, and because we can always calculate B by subtraction from 1.0, we will drop the A and B subscripts, and only write -- for example -- :math:`y_n` to denote the gas mol fraction of A leaving the :math:`n^\text{th}` stage of the absorber.
Similarly, the mol fraction of A, in the liquid phase, leaving the stage is :math:`x_n`.  And we will denote the liquid mol fraction of A entering as :math:`x_{n+1}`, while the gas-phase mol fraction of A entering is defined as :math:`y_{n-1}`.
Using Raoult's Law, and assuming fairly ideal conditions, and that the liquid and vapour phase are well-mixed and in equilibrium, we may relate the concentrations in the gas and liquid phase as:
.. math::
y_n P_\text{total} &= x_n P_\text{A} \gamma_A \\
              y_n  &= \beta x_n
where :math:`P_\text{total}` is the total pressure in the absorber, and :math:`P_\text{A}` is the pure-component vapour pressure of A, at the given conditions, and :math:`\gamma_A` is an activity coefficient that corrects for non-idealities (cross-reference your thermodynamics course for more background on this equation).  In this question you may assume that :math:`\beta` is constant throughout the absorber.
#. Write down a **dynamic** mass balance for species A, in terms of the nomenclature above, for this :math:`n^\text{th}` stage in the absorber tower.
#. Now write down the **steady-state** mass-balance equation for the above, but only in terms of liquid-phase mol fractions.  Also divide the steady-state tray balance equations through by :math:`\beta G` and simplify them using the term :math:`\delta = \displaystyle \frac{L}{\beta G}`
#. Now repeat this previous step, and write the steady-state mass-balance equations for the five-stage system shown here.
.. figure:: images/absorber-column.png
:scale: 25
:align: center
#. Rewrite these mass-balance equations in matrix form, :math:`Ax = b`, where:
.. math::
x = \left[\begin{array}{c} y_F \\ x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \\ x_F \\ y_5 \end{array}\right]
#. Write a function that will generate the :math:`A` matrix and :math:`b` vector, given the variables in the system.  Use this function and solve the system of equations for the two cases below:
======= ========= ========= ============= =========== ===========
Case    :math:`G` :math:`L` :math:`\beta` :math:`x_F` :math:`y_F`
======= ========= ========= ============= =========== ===========
Case I  100      150      0.6          0.05        0.35
------- --------- --------- ------------- ----------- -----------
Case II 100      50        0.6          0.05        0.35
======= ========= ========= ============= =========== ===========
In each case, we are obviously interested in the liquid-phase concentration profile along the column, :math:`x_F` down to :math:`x_1`.  Report these values and explain whether your answers make physical sense, or not, for the two cases.
Solution
---------
#. The dynamic mass balance for the :math:`n^\text{th}` tray:
.. math::
\frac{H dx_n}{dt} &= L x_{n+1} + Gy_{n-1} - Lx_n - Gy_n \\
H \frac{dx_n}{dt} &= L(x_{n+1} - x_n) + G(y_{n-1} - y_n)
#. At steady state we have :math:`\displaystyle \frac{dx_n}{dt} = 0`.  Further, using that :math:`y_n = \beta x_n`, and the definition of :math:`\delta = \displaystyle \frac{L}{G\beta}`, we can simplify the previous equation to:
.. math::
0 &= L(x_{n+1} - x_n) + G \beta (x_{n-1} - x_n) \\
0 &= x_{n-1} - \delta x_n - x_n + \delta x_{n+1} \\
0 &= x_{n-1} - (\delta + 1) x_n + \delta x_{n+1}
#. For the system with 5 trays, we have:
#. :math:`0 = \displaystyle \frac{y_F}{\beta} - (\delta + 1)x_1 + \delta x_2`
#. :math:`0 = x_1 - (\delta + 1)x_2 + \delta x_3`
#. :math:`0 = x_2 - (\delta + 1)x_3 + \delta x_4`
#. :math:`0 = x_3 - (\delta + 1)x_4 + \delta x_5`
#. :math:`0 = x_4 - (\delta + 1)x_5 + \delta x_F`
#. We require a square matrix for :math:`A`, so we add 3 other equations to the above 5 tray balances. These three equations correspond to the known fractions of :math:`A` in the inlet gas and liquid streams, as well as the equation that relates :math:`y_5` to :math:`x_5`.
.. math::
Ax &= b \\
\left(
\begin{array}{cccccccc}
1                            & 0  & 0 & 0 & 0 & 0 & 0 & 0 \\
\displaystyle \frac{1}{\beta} & -(\delta + 1) & \delta & 0 & 0 & 0 & 0 & 0 \\
0               & 1 & -(\delta + 1) & \delta & 0 & 0 & 0 & 0 \\
0               & 0 & 1 & -(\delta + 1) & \delta & 0 & 0 & 0 \\
0               & 0 & 0 & 1 & -(\delta + 1) & \delta & 0 & 0 \\
0               & 0 & 0 & 0 & 1 & -(\delta + 1) & \delta& 0 \\
0               & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\
0               & 0 & 0 & 0 & 0 & -\beta & 0 & 1 \\
\end{array}
\right)
\left(
\begin{array}{c}
y_F \\ x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \\ x_F \\ y_5
\end{array}
\right)
&=
\left(
\begin{array}{c}
y_F \\ 0 \\ 0 \\ 0 \\ 0 \\ 0 \\ x_F \\ 0
\end{array}
\right)
**Note**: Assuming :math:`y_5=0` (complete separation) instead of making the equilibrium assumption :math:`y_5-\beta x_5=0` will change the last row of the above matrix as having zero element instead of :math:`-\beta`. This approach only affects the result of :math:`y_5` itself because :math:`y_5` does not participate in any other equations. **Both solutions will be accepted**.
#. The code below defines functions for the :math:`A` matrix and the :math:`b` vector, and then solves the system for the two cases. The liquid concentration profiles through the column are obtained as follow:
Case I (:math:`L=150`):  Impurity [%] in the liquid stream, top to bottom: 5.00, 5.33, 6.15, 8.21, 13.3, 26.2; :math:`y_5 = 3.20`
Case II (:math:`L=50`): Impurity [%] in the liquid stream, top to bottom: 5.00, 18.4, 29.5, 38.8, 46.5, 53.0; :math:`y_5 = 11.0`
**Discussion**: The only difference between Case I and case II is the amount of the liquid solvent :math:`L` used in the absorber.  One expects that if a lower flow rate of solvent is used, yet the hold-up on each tray is the same, that the concentrations of the impurity in the liquid phase will be higher on each tray.  This is indeed shown in the results.  However, the outlet concentration of impurity in the gas phase is going to be higher (less impurity is removed) at the lower liquid flow rate, since absorption of the impurity into the liquid phase is inversely proportional to the impurity already in the liquid phase (due to concentration gradients).
You can verify for yourself that as the liquid flow rate is increased, keeping the gas flow constant, that the limiting outlet concentration in the gas phase is 3.0%, the amount that is in equilibrium with an "infinite" liquid composition of 5%.  Also, the outlet liquid-phase concentration tends to 5% across all trays as :math:`L \rightarrow \infty`.
.. twocolumncode::
    :code1: ../che3e4/Assignments/Assignment-2/code/absorber_question.m
    :language1: matlab
    :header1: MATLAB code
    :code2: ../che3e4/Assignments/Assignment-2/code/absorber-question.py
    :language2: python
    :header2: Python code
</rst>
</rst>
{{Navigation|Book=Assignment 2 - 2010 - Solution|previous=Question 2|current=Back to all questions|next=Question 4}}
{{Navigation|Book=Assignment 2 - 2010 - Solution|previous=Question 2|current=Back to all questions|next=Question 4}}

Revision as of 00:57, 16 October 2010

← Question 2 (previous step) Back to all questions Next step: Question 4 →

<rst> <rst-options: 'toc' = False/> <rst-options: 'reset-figures' = False/> Question 3 [4]

====

.. note:: This is an example of the type of question you will get in the take-home midterm.

An impure gas stream can be cleaned, by absorbing the impurity into the liquid phase of an appropriate liquid solvent. For example, carbon dioxide can be removed from flue gas by scrubbing it with monoethanolamine; or NO\ :sub:`2` can be absorbed into water to produce nitric acid.

In this question we will derive the model equations for a sequence of absorber stages (trays), in which a component in the gas phase is absorbed into the liquid phase.

First consider the :math:`n^\text{th}` stage in an absorber:

.. figure:: images/absorber-tray.png :alt: images/math :scale: 16 :align: center

where the molar gas flow is :math:`G` and the liquid molar flow is :math:`L`, and assume these are constant throughout the column. Let the number of moles held-up in the liquid phase of the tray be :math:`H_n`, the hold-up. And let's only consider a binary system, where the species we are interested in is called A, and the absorbing liquid is species B.

The mol **fraction** of species A, in the gas phase, leaving the tray is :math:`y_{A,n}`, and we also have :math:`y_{B,n}`, the mol fraction of B leaving: this gives of course :math:`y_{A,n} + y_{B,n} = 1`. But since we are interested only in species A in this question, and because we can always calculate B by subtraction from 1.0, we will drop the A and B subscripts, and only write -- for example -- :math:`y_n` to denote the gas mol fraction of A leaving the :math:`n^\text{th}` stage of the absorber.

Similarly, the mol fraction of A, in the liquid phase, leaving the stage is :math:`x_n`. And we will denote the liquid mol fraction of A entering as :math:`x_{n+1}`, while the gas-phase mol fraction of A entering is defined as :math:`y_{n-1}`.

Using Raoult's Law, and assuming fairly ideal conditions, and that the liquid and vapour phase are well-mixed and in equilibrium, we may relate the concentrations in the gas and liquid phase as:

.. math::

y_n P_\text{total} &= x_n P_\text{A} \gamma_A \\ y_n &= \beta x_n

where :math:`P_\text{total}` is the total pressure in the absorber, and :math:`P_\text{A}` is the pure-component vapour pressure of A, at the given conditions, and :math:`\gamma_A` is an activity coefficient that corrects for non-idealities (cross-reference your thermodynamics course for more background on this equation). In this question you may assume that :math:`\beta` is constant throughout the absorber.

  1. . Write down a **dynamic** mass balance for species A, in terms of the nomenclature above, for this :math:`n^\text{th}` stage in the absorber tower.
  2. . Now write down the **steady-state** mass-balance equation for the above, but only in terms of liquid-phase mol fractions. Also divide the steady-state tray balance equations through by :math:`\beta G` and simplify them using the term :math:`\delta = \displaystyle \frac{L}{\beta G}`
  3. . Now repeat this previous step, and write the steady-state mass-balance equations for the five-stage system shown here.

.. figure:: images/absorber-column.png :scale: 25

		:align: center
  1. . Rewrite these mass-balance equations in matrix form, :math:`Ax = b`, where:

.. math::

x = \left[\begin{array}{c} y_F \\ x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \\ x_F \\ y_5 \end{array}\right]

  1. . Write a function that will generate the :math:`A` matrix and :math:`b` vector, given the variables in the system. Use this function and solve the system of equations for the two cases below:

======= ========= ========= ============= =========== =========== Case :math:`G` :math:`L` :math:`\beta` :math:`x_F` :math:`y_F` ======= ========= ========= ============= =========== =========== Case I 100 150 0.6 0.05 0.35 ------- --------- --------- ------------- ----------- -----------

	Case II 100       50        0.6           0.05        0.35

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

In each case, we are obviously interested in the liquid-phase concentration profile along the column, :math:`x_F` down to :math:`x_1`. Report these values and explain whether your answers make physical sense, or not, for the two cases.

Solution


  1. . The dynamic mass balance for the :math:`n^\text{th}` tray:

.. math::

\frac{H dx_n}{dt} &= L x_{n+1} + Gy_{n-1} - Lx_n - Gy_n \\ H \frac{dx_n}{dt} &= L(x_{n+1} - x_n) + G(y_{n-1} - y_n)

  1. . At steady state we have :math:`\displaystyle \frac{dx_n}{dt} = 0`. Further, using that :math:`y_n = \beta x_n`, and the definition of :math:`\delta = \displaystyle \frac{L}{G\beta}`, we can simplify the previous equation to:

.. math::

0 &= L(x_{n+1} - x_n) + G \beta (x_{n-1} - x_n) \\ 0 &= x_{n-1} - \delta x_n - x_n + \delta x_{n+1} \\ 0 &= x_{n-1} - (\delta + 1) x_n + \delta x_{n+1}

  1. . For the system with 5 trays, we have:

#. :math:`0 = \displaystyle \frac{y_F}{\beta} - (\delta + 1)x_1 + \delta x_2` #. :math:`0 = x_1 - (\delta + 1)x_2 + \delta x_3` #. :math:`0 = x_2 - (\delta + 1)x_3 + \delta x_4` #. :math:`0 = x_3 - (\delta + 1)x_4 + \delta x_5` #. :math:`0 = x_4 - (\delta + 1)x_5 + \delta x_F`

  1. . We require a square matrix for :math:`A`, so we add 3 other equations to the above 5 tray balances. These three equations correspond to the known fractions of :math:`A` in the inlet gas and liquid streams, as well as the equation that relates :math:`y_5` to :math:`x_5`.


.. math::

Ax &= b \\ \left( \begin{array}{cccccccc} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ \displaystyle \frac{1}{\beta} & -(\delta + 1) & \delta & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & -(\delta + 1) & \delta & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & -(\delta + 1) & \delta & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & -(\delta + 1) & \delta & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & -(\delta + 1) & \delta& 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & -\beta & 0 & 1 \\ \end{array} \right) \left( \begin{array}{c} y_F \\ x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \\ x_F \\ y_5 \end{array} \right) &= \left( \begin{array}{c} y_F \\ 0 \\ 0 \\ 0 \\ 0 \\ 0 \\ x_F \\ 0 \end{array} \right)

    • Note**: Assuming :math:`y_5=0` (complete separation) instead of making the equilibrium assumption :math:`y_5-\beta x_5=0` will change the last row of the above matrix as having zero element instead of :math:`-\beta`. This approach only affects the result of :math:`y_5` itself because :math:`y_5` does not participate in any other equations. **Both solutions will be accepted**.
  1. . The code below defines functions for the :math:`A` matrix and the :math:`b` vector, and then solves the system for the two cases. The liquid concentration profiles through the column are obtained as follow:

Case I (:math:`L=150`): Impurity [%] in the liquid stream, top to bottom: 5.00, 5.33, 6.15, 8.21, 13.3, 26.2; :math:`y_5 = 3.20`

Case II (:math:`L=50`): Impurity [%] in the liquid stream, top to bottom: 5.00, 18.4, 29.5, 38.8, 46.5, 53.0; :math:`y_5 = 11.0`

    • Discussion**: The only difference between Case I and case II is the amount of the liquid solvent :math:`L` used in the absorber. One expects that if a lower flow rate of solvent is used, yet the hold-up on each tray is the same, that the concentrations of the impurity in the liquid phase will be higher on each tray. This is indeed shown in the results. However, the outlet concentration of impurity in the gas phase is going to be higher (less impurity is removed) at the lower liquid flow rate, since absorption of the impurity into the liquid phase is inversely proportional to the impurity already in the liquid phase (due to concentration gradients).

You can verify for yourself that as the liquid flow rate is increased, keeping the gas flow constant, that the limiting outlet concentration in the gas phase is 3.0%, the amount that is in equilibrium with an "infinite" liquid composition of 5%. Also, the outlet liquid-phase concentration tends to 5% across all trays as :math:`L \rightarrow \infty`.

.. twocolumncode:: :code1: ../che3e4/Assignments/Assignment-2/code/absorber_question.m :language1: matlab :header1: MATLAB code :code2: ../che3e4/Assignments/Assignment-2/code/absorber-question.py :language2: python :header2: Python code

</rst>

← Question 2 (previous step) Back to all questions Next step: Question 4 →