13.2: Objective Function and Newton-Raphson Procedure
- Page ID
- 503
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
We have seen that from a molar material balance applied to a two-phase system in equilibrium, and the definition of Ki, we can derive the Rachford and Rice Objective Function:
\[F\left(\alpha_g\right)=\sum_{i=1}^n \dfrac{z_i\left(K_i-1\right)}{1+\alpha_g\left(K_i-1\right)}=0 \nonumber \]
Equation \(\PageIndex{1}\) is a non-linear equation in one variable, and the Newton Raphson procedure is usually implemented to solve it. In general, Newton Raphson is an iterative procedure with a fast rate of convergence. The method calculates a new estimate, \(\alpha_g{ }^{\text {new }}\), which is closer to the real answer than the previous guess, \(\alpha_g{ }^{\text {old }}\), as follows:
\[\alpha_g^{\text {new }}=\alpha_g^{\text {old }}-d\frac{F\left(\alpha_g^{\text {old }}\right)}{F^{\prime}\left(\alpha_g^{\text {old }}\right)} \nonumber \]
Substituting \(\PageIndex{1}\) and (13.4) into \(\PageIndex{2}\),
\[\alpha_g^{\text {new }}=\alpha_g^{\text {old }}+\dfrac{\sum_{i=1}^n \frac{z_i\left(K_i-1\right)}{1+\alpha_g^{\text {old }}\left(K_i-1\right)}}{\sum_{i=1}^n \dfrac{z_i\left(K_i-1\right)^2}{\left[1+\alpha_g^{\text {od }}\left(K_i-1\right)\right]^2}} \nonumber \]
In this iterative scheme, convergence is achieved when
\[\left|\alpha_g^{\text {new }}-\alpha_g^{\text {old }}\right|<\varepsilon \nonumber \]
where \(\varepsilon\) is a small number ( \(\varepsilon=1.0 x 10^{-9}\) is usually adequate). After solving for \(\alpha_g\), the liquid molar fraction and composition of each of the phases can be calculated as follows:
Liquid Molar Fraction: \(\alpha_l=1-\alpha_g\)
Percentage of Liquid: \(\% L=100 * \alpha_l\)
Percentage of Vapor: \(\% V=100 * \alpha_g\)
Vapor Phase Composition: \(y_i=\dfrac{z_i K_i}{1+\alpha_g\left(K_i-1\right)}\)
Liquid Phase Composition: \(x_i=\dfrac{z_i}{1+\alpha_g\left(K_i-1\right)}\)


