Professional Documents
Culture Documents
S
0=
∑ σ s⋅ C
s
s =1
You will note that the coefficients for products are positive, while
those for reactants are negative. For the above reaction: σNH3 = 2,
σN2 = -1, σH2 = -3.
Reaction Rate Let the molar flowrates of species s into and out of a reactor be ns,0 and
ns,1 respectively. Then the reaction rate r is independent of the species
selected and is defined as
n −n
s, 1 s, 0
r=
σs
For example:
We can compute the rate of the reaction using any species for which
information is known in both reactant and product streams.
Limiting The reactant species for which the quantity [ ns,0 / (-σs) ] is a
Reactant minimum is called the limiting reactant.
For the reactor above, there are two reactants. [ nH2,0 /(-σH2)] =
40/3 while [ nN2,0 / (-σN2) ] = 12/1, so that for the feed shown, N2 is
the limiting reactant.
Note that the term "limiting reactant" is only defined for a fully specified
set of feed streams.
Fractional The term fractional conversion applies only to reactants. Using inlet
Conversion and exit streams numbered 0 and 1 respectively, the fractional
conversion of species s is defined as
n −n
s, 0 s, 1
X =
s n
s, 0
40 − 28
For example, the fractional conversion of H2 is XH2 := = 0.3
40
12 − 8 1
The fractional conversion of N2 is XN2 := =
12 3
Multiple Feed, If a reactor has more than one feed stream and several product streams
Product Streams the definitions presented above can be unambiguously extended.
I+ J I
∑ n
s, i
−
∑ n
s, i
i = I+ 1 i =1
r= s = H2, N2, NH3
σs
I I+ J
∑ n
s, i
−
∑ n
s, i
i =1 i = I+ 1
X =
s
s = H2, N2
I
∑ n
s, i
i=1
The limiting reactant is the reactant species for which the following
quantity is a minimum.
I
∑ n
s, i
i =1
s = H2, N2
−σ s
Combustion of Many industrial processes involve the combustion of a fuel, usually with air.
Fuels Many different methods for designating the amount of air used have been
devised. These are reviewed here, first for simple fuels consisting of a
single, well-defined species and then for complex fuels such as the fossil
fuels: coal, oil.
CH4 Combustion The stoichiometric amount of oxygen required to burn a fuel is defined to
be that amount necessary to convert all carbon in the fuel to CO2, all
hydrogen to H2O and all sulfur to SO2. If the fuel contains any nitrogen, it
is assumed to leave as N2 in the product stream. Note, that this definition
says nothing about the reactions that actually occur in the combustion
process. The "combustion" reaction is that defined above. For
example, the combustion reaction for methane is
CH4 + σ O2 = CO2 + 2 H2O
Notice that the coefficients for CO2 and H2O are determined by the
molecular formula for methane. The stoichiometric coefficient for oxygen is
determined by an O-balance. In this case σ = 2.
Stoichiometric Now consider a fuel with an elemental composition given by a set of atomic
Oxygen coefficients α. Let the elements occur in the order C, H, S, O, N. So
that the fuel has the formula Cα0 Hα1 Sα2 Oα3 Nα4.
α1
(
2⋅ α 0 + α 2 +) 2
− α3
σ =
2
Stoichiometric The molar amount of air required per mol of fuel is simply the
Air Ratio stoichiometric coefficient of oxygen in the combustion reaction divided by
the concentration of oxygen in air. The stoichiometric air/fuel ratio β is
usually placed on a mass basis
(nair)
stoich stoich
fair M air σ M air
β= = ⋅ = ⋅
ffuel n fuel M fuel x M fuel
O2 , air
Ultimate Many substances are used in combustion equipment including fossil fuels
Analysis such as coal, oil, and "natural" gas as well as many agricultural residues
such as waste wood, corn stover, bagasse, peanut shells etc. Municipal
solid waste is often burned to recover energy. These substances are
typically characterized by their elemental analyses on a mass basis.
Chemical To convert the elemental analysis to a chemical formula, simply divide the
Formula mass fraction of each element by its atomic weight. This yields the
relative molar amounts of each element. Only the ratios of these
quantities are significant. To obtain a chemical formula, it is customary to
select one of two bases: (1) a fixed molecular weight or (2) a specified
coefficient for carbon, often six. This simply means scaling all the
coefficients to give carbon a coefficient of exactly six. Both of these
bases are illustrated in the following examples.
Example 4.1.1.1 A fuel oil has the chemical composition: C: 84.00 wt%, H:11.40%, S:
3.20%, N: 1.40%. Determine a formula for the oil on a C-6 basis and
the stoichiometric amount of air to burn this oil.
gm
Molecular weight of air M air := 28.97⋅
mol
Example 4.1.1.1 Chemical formula for oil:
6
(continued)
η e A0 9.703
α e := ⋅ ⋅αC α = 0.086
η0 A e 0
0.086
That is, the chemical formula for the oil is C6 H9.703 S.086 N.086.
Since the coefficient of C was set, the molecular weight of the oil is also
determined by this choice.
gm
M oil :=
∑ αe⋅Ae M oil = 85.793
mol
e
α1
(
2⋅ α 0 + α 2 + ) 2
− α3
Stoichiometric oxygen: σ := σ = 8.511
2
σ M air
Stoichiometric air/fuel ratio:β := ⋅ β = 13.686
xO2 M oil
Example 4.1.1.2 Repeat the above calculations but use a basis of a specified molecular
weight for the oil.
gm
Data: M'oil := 100 ⋅
mol
σ M air
Stoichiometric air/fuel ratio:β := ⋅ β = 13.686
xO2 M oil
Excess Air When burning fossil fuels or agricultural waste materials to generate
Fractions energy, it is usual practice to use more than the stoichiometric amount of
air. The excess oxidant promotes a more intense combustion reaction
and makes it possible to achieve complete conversion of the fuel.
A common specification for combustion processes is the "percent excess
air". We will use the term excess air fraction defined as
n air
Φ= −1
stoich
n air
Given an excess air fraction Φ, the actual amount of air used is then
computed using the stoichiometric amount of air for that fuel:
σ
⋅(1 + Φ ) = ⋅(1 + Φ )
stoich
n air = n air
xO2
Counting Each independent reaction adds one reaction rate variable to the total
Variables number of variables for the flowsheet. If a single reaction is occurring
then of course, only one reaction rate is needed.
In the reactor shown below, the conversion of H2 is 0.25. Compute all
the flow rates.
Item Reactor
__________________________
Variables
Stream 5
Rxn rate 1
--------------------------
Sp. Balances 3
Flowrates 2
Conversion 1
__________________________
DF 0
Now all the product flowrates can be computed from the species balances.
A + B = 2C and B + C = E.
Stream Vars: 6
Equipment Vars: 2
---------------------
Balances: 4
Flows: 2
Conversion 1
Comp. ratio 1
_____________________
DF 0
It is clear that we have sufficient information to proceed. Try doing the
material balances on your own. Click on the text below to check your
work.
View the material balances
Independent In many systems, particularly at high temperatures, the precise pathway
Reactions by which reactants are converted to products is unknown or extremely
complex. These are vital issues for reactor design. But for material
balance purposes it is usually satisfactory to represent the overall
chemistry by some list of simple reactions. This list must be complete
enough to account for all products.
For the purposes of counting variables, the list of reactions must also be
independent. That is, no reaction can be a sum or difference of any other
subset of reactions. The precise number of such reactions needed to
represent the stoichiometry of any system can be determined from the
stoichiometric matrix. Let the number of nonzero columns obtained after
exhaustive column reduction of σ be symbolized by ρ(σ). We call this the
rank of σ. In performing a DF analysis for a multi-reactive system , we
count exactly ρ(σ) reaction rate variables.
Example 4.1.2.2 The steam reforming of methane results in the following reactions.
−1 0 −1 −1 1 0 0 0
−1 1 0 1
0 1 0 0
σ := 2 −1 1 0 σ := −1 −1 0 0
0 −1 −1 −2 1 −1 0 0
2 1 3 4 −3 1 0 0
Yield This ratio applies only to reactors with at least two competing reactions.
Let reactant A form desired product C by one reaction and one or more
other products (but no C) by competing reactions. The yield of C is
simply the actual amount of C formed divided by the maximum amount
of C that would have been formed if all the A converted went to
producing C. Again using streams 0, 1 as inlet and exit streams:
Y =
( C1 − nC0)
σ A⋅ n
C σ C⋅ ( n −n )
A1 A0
The s's are the stoichiometric coefficients in the balanced reaction that
produces C. Recall that such coefficients are defined to be negative
for reactants, so that the ratio above is always positive.
4.1.3 Element Balances
Elements are In reacting systems, species are not conserved and the balance
Conserved equations must reflect this. Recall that the species balances for reacting
systems have terms involving the stoichiometric matrix and reaction
rates.
In contrast, elements are conserved. But the balances do not reduce to the
unrestricted form of the non-reactive species balances. The elements are
"packaged" into distinct species, and our material balance variables are the
flowrates of these species. The balances must be expressed in terms of
species flowrates but reflect element conservation.
Atom Matrix The formal method of dealing with this is to define an atom matrix. The
element αes of this matrix is simply the coefficient of element e in the
molecular formula for species s. The element balances merely tally the
amount of each element accompanying each species entering and leaving
the system. If there are I input streams, and J exit streams in a system
containing S species consisting of E elements, then the balances are
J S I S
∑ ∑ α e , s⋅ n
s, j
=
∑ ∑ α e , s⋅ n
s, i
e = 1 ... E
j=1 s =1 i =1 s =1
There is one such equation for each element. The formidable double-sum
form of these balances hides an underlying simplicity: each element is
conserved. In practice, the equations are very simple to formulate, as
shown in the next example.
Example 4.1.3.1 Ethane is burned with oxygen to produce carbon dioxide, carbon
monoxide, methane, and water. When a 3:1 ratio of oxygen to ethane is
used, the ratio CO2/CO in the product is 3:1.
Things to First, notice how many terms are involved in the element balances even
Note About for a unit with only one inlet and one exit stream. The balances are very
Ex4.1.3.1 easy to write down, because element conservation is a simple concept.
But the equations are usually algebraically less tractable than the
corresponding species balances because typically many terms appear in
each equation.
Independent If there are E elements in a system, there will be E element balances that
Element can be written. Ordinarily, these will be independent. But for some
Balances systems this isn't true. This occurs frequently enough that a method of
counting independent balances is needed.
The number of independent element balances for a system with atom
matrix α is simply ρ(α), the rank of the atom matrix. The rank of the
atom matrix is the number of nonzero rows remaining after exhaustive
row reduction. The technique is illustrated in the next example.
Example 4.1.3.2 Urea is produced by reacting ammonia with carbon dioxide. When a
feed consisting of 1/3 CO2 is reacted with 99% conversion of the carbon
dioxide, the product stream contains the species shown in the figure. Is
this problem well-posed?
1 0 1 1 0
1 1 2 2 0
α :=
4 2 6 0 3
2
0 2 0 1
1
0 1 1 0
0 1 1 1 0
α :=
0 0 0 2 −1
0
0 0 0 0
Summary In general, a good rule of thumb is to always use species balances for
non-reactive systems. The number of independent species balances is
always S, the number of species, and S >= ρ(α) for any system. Also,
the species balances are usually easier to solve.
For reactive systems, when ρ(σ) = S - ρ(α), it is feasible to use either
species or element balances. When this condition does not hold, use
species balances. In other words, use element balances only when
they offer the possibility of an obvious simplification.
Element balances are only essential when a reactant is a complex
mixture such as a fossil fuel or agricultural product such as wood, corn
stover, or bagasse.
4.1.4 Generating Independent Reactions
1 0 1 2 0
1 0 0 0 1
It is represented by the atom matrix: α =
3 2 1 4 2
0
1 0 1 0
1 0 0 0 1
0 1 0 1 0
The atom matrix can be row-reduced to α =
0 0 1 2 −1
the form: 0
0 0 0 0
0 1
We identify a 3x3 identity matrix in the
β = 1 0
upper left, and the matrix β is:
2 −1
0 −1
The stoichiometric matrix is obtained by −1 0
taking the negative of b and appending anσ = −2 1
identity matrix of size [S - ρ(α)] or 2. 1 0
0 1
Example Let the combustion of methane with pure oxygen be modeled with the
following two reactions:
CH4 + 2 O2 = CO2 + 2 H2O
2CH4 + 3 O2 = 2CO + 4 H2O
Let this additional specification be the water flow rate. The two species
that are completely specified are methane and water. Let the methane
flow rate be 1.0 mol/h and that of water be 2.0 mol/h. Their balances are
CH4: 0 = 1 - r1 - 2 r2
H2O: 2 = 2 r1 + 4 r2
By an obvious rearrangement, the water balance is seen to be a multiple
of the methane balance, and is therefore not an independent specification.
Criterion for For species balances, a specification is independent if the rows of the
Independence stoichiometric matrix corresponding to the completely specified species are
linearly independent.
In the above example, the stoichiometric matrix with species ordering
methane, oxygen, water, carbon dioxide, carbon monoxide is:
−1 −2
−2 −3
σ = 2 4
1 0
0 2
If 14 mols of the chlorate stream are fed for every mol of methanol and a
conversion of 90% is achieved, what is the composition of the product?
Click on the icon at the left to see the DF analysis for this problem.
On Your Own Click on the underlined text below to check your DF analysis.
Complete the material balances for this problem, then check your
work by clicking on the underlined text below.
Problem The recycle reactor shown below oxidizes ethanol to acetic acid with a
Statement mixture of dichromate and sulfuric acid. A 90% overall conversion is
achieved with a recycle to ethanol feed ratio of 1:1, a 10% excess of
sulfuric acid, and a 20% excess of sodium dichromate. The recycle
stream contains only ethanol and sulfuric acid. The concentration of
acid in the recycle is 94 mol%. A perfect separation of acetic is
achieved. The reaction occurring is
3C2H5OH + 2NaCr2O7+ 8H2SO4 =
3CH3COOH + 2Cr2(SO4)3 + 2Na2SO4 +
11H2O
On Your Own Perform a DF analysis on the acetic acid synthesis flowsheet. Check
your work by clicking on the underlined text below.
On Your Own Try performing the DF analysis for this problem. Check your work by
clicking on the exercise icon at the left.
Problem Vaporized sulfur is reacted with methane to produce CS2. There are
Statement three reactions known to occur.
CH4 + 4S = CS 2 + 2H2S
CH4 + 2S = CS 2 + 2H2
CH4 + 2H2S = CS2 + 4H2
A feed containing four mols of sulfur per mol of methane results in a
product mix characterized by 90% methane conversion and 70% sulfur
conversion. Calculate the product composition.
On Your Own Complete a DF analysis for this problem. Click on the underlined text
below to check your work.
View the DF analysis for the Carbon Disulfide synthesis.
Do the material balances for this problem. Click on the underlined text
below to check your work.
Problem The process of removing alkyl groups from aromatic compounds with
Statement hydrogen is called hydrodealkylation. In the process shown below, a
refinery reformate stream consisting of 5 mol% benzene (B), 20%
toluene (T), 35% xylene (X), and 40% mesitylene (Y) reacts with
hydrogen. When 5.0 mols of hydrogen is used per mole of
hydrocarbon feed, the following conversions are obtained: T:80%,
X:74%, Y:13%. The product stream also contains 0.1% biphenyl (P).
The reactions occurring are:
The side reaction requires that conversions be kept low in the reactor,
and this complicates the separation sequence. The first stage of
separation recovers pure benzene and produces two recycle streams.
The overhead consists of hydrogen and methane, part of which must
be purged to remove the methane. The bottom product of the first
separation stage is a liquid stream which undergoes further separation
into a pure toluene recycle stream, and a pure diphenyl byproduct.
When the reactor feed has a 5:1 ratio of hydrogen to toluene, a 75%
toluene conversion is achieved.
a. If the reactor outlet stream is 5% benzene, and 2% toluene,
calculate the fractional yield of benzene and the make-up (stream 2)
hydrogen required per mol of toluene fed to the process.
b. Repeat for a reactor outlet specification of 2% toluene and 58%
methane.
On Your Own In your worksheet, perform a degree of freedom analysis for part a.
Click on this text to check your DF analysis.
Problem A fuel oil with analysis C:84.0%, H:11.4%, N:1.4%, S:3.2% is burned
Statement with air. The stack is found to contain 2130 ppm by wt (dry basis) of
sulfur dioxide. Determine a chemical formula for the oil on a C-6 basis,
and compute the percent excess air that was used in the burner.
Click on this text to view the material balances for the oil
burner.
4.4.2 Coal Gasification
Click on this text to see the material balances for the coal
gasifier.
4.4.3 Fuel Oil Desulfurization
This section deals with problems in which species balances are used in
preference to element balances even if no reactions are given.
Problem A feed stream formed from air and ammonia (20 mol air/mol NH3)
Statement reacts to produce a complex mixture consisting of H2O, O2, N2, NH3,
NO, and NO2. When an 80% conversion of ammonia is achieved, the
product stream contains 3% O2 and 6% NO. Calculate the
compositions of the other species.
In your worksheet, solve for the composition of the product gas using
only the element balances.
Click here to see the element balances for this process.
In your worksheet, solve for the composition of the product gas using
only species balances.
For all the flowsheets considered thus far, our calculation sequencing
procedure has resulted in a partitioning of the material balances into
ordered subsets that were completely and separately solvable. We
simply identified a process unit with a degree-of-freedom of zero,
solved the balances for that unit, and then used the new information thus
obtained to reduce the DF for subsequent units to zero. This process
was repeated until all the streams were fully characterized.
Sequencing This chapter deals with flowsheets whose specifications do not permit
with Partial the balances for some unit(s) to be solved completely. Rather than
Solution abandoning the sequential-unit approach, we augment it with the
following technique.
1. We first solve the balances for all units that have a zero DF, if there
are any.
2. Then we consider the balances for that unit with the lowest DF. For
this discussion, let the DF for this unit be '1'. The positive value of DF
means that we will not be able to solve all the balances completely.
Instead, we will have to estimate the value of one carry-forward
variable, and express the solutions for all other computed quantities in
terms of this variable.
3. We then continue with the balances for the remaining process units.
There are software tools called process simulators which (with some
restrictions on the specifications) could formulate as well as solve all the
balances for us. All the user has to do is enter the data. Such a tool
permits fully automated solution of all the material balances. This
electronic book does not concern itself with such tools.
Converging to Once we have estimated the value of the carry-forward variable, say x,
a Solution and selected an objective function f(x), we must determine the value of x
that satisfies f(x) = 0. Distinguish clearly the process of evaluating the
objective function and the process of solving the objective function.
One way to solve the equation is to simply guess values of x until we get
lucky enough to find one that makes f(x) =0. This method is called
solving by "trial and error". It is usually impractical to proceed by this
fashion.
A better method is to guess only once, and then use an updating rule to
successively refine the value of x, that is, converge to a solution. Many
such updating rules exist.
x := 1.5 f ( x ) = 1.375
1 1
k := 1 .. 5 x :=
x
k− 1 ( k) − xk⋅ f (xk−1)
⋅f x
k+ 1 f (x ) − f (x )
k k− 1
Problem A feed of 1000 mol/h consisting of 1/3 A, 2/3 B is mixed with a recycle
Description stream and reacts with the stoichiometry A + B --> D. The conversion
of A per pass is 20%. The split fractions from the separator feed to the
recycle stream are A:0.80, B:0.90, D:0.10. Calculate the flow rates of
all streams.
Click on the diamond icon to copy the figure and the problem
statement to your worksheet.
On Your Own Show that the problem is specified correctly and determine a calculation
order. If any carry-forward variables are required, be sure to note
when they will be needed, and how they will be determined.
Click on this text to view the material balances for this problem.
5.3 Perchloric Acid Synthesis
Problem Perchloric acid is produced by reacting barium chlorate with sulfuric acid.
Description
Ba(ClO4)2 + H2SO4 = BaSO4 + 2 HClO4
Click on the diamond icon to copy the figure and problem statement to your
worksheet.
On Your Own Show that the problem is specified correctly and determine a calculation
order. Note if any carry-forward variables are required.
Click on this text to view the DF analysis for this problem.
In your own worksheet, set up and solve all the material balances for this
problem.
Click on this text to check your material balances.
5.4 Methyl Iodide Synthesis
Click on the diamond icon to copy the problem statement and the figure to
your worksheet.
Problem The absorber-stripper system shown in the figure removes CO2 and H2S
Description from a feed consisting of 30% CO2 and 10% H2S in an inert gas. A
proprietary solvent is used to selectively absorb the acid gases. The
absorber bottoms are flashed. The ratio of the concentration of CO2 in
the exit vapor (stream 6) to that in the liquid leaving the flash unit is
13.33. A similar ratio of 6.9 is measured for H2S. The liquid leaving
the flash contains 5% CO2, and the overhead contains 20% solvent. The
stripper overhead contains 30% solvent. The bottoms stream leaving the
stripper is pure solvent.
The feed is cleaned to the extent that stream 2 contains only 1% CO2
and no H2S. The splitter beneath the flash unit operates to produce
equal flowrates in streams 3 and 8. Compute the compositions of all
streams and the amount of solvent per mole of feed required.
On Your Own Is there sufficient data supplied to solve this problem?
Click on this text to view the material balances for this problem.
5.6 Solving Non-Linear Equations
Closed-Form We first consider the case when the function f(x) can be written in closed
Objective form. Such functions arise frequently when physical systems are
Function simulated.
An Example Suppose we are asked to find the value of the argument x when the
functions y(x) = exp(x) and z(x) = 5 - 4(x-3/2)2 intersect? First, let's
plot these functions to see what they look like.
i
M := 30 i := 0 .. M X i := 2 ⋅
M
2
3
y ( x ) := exp ( x ) z ( x ) := 5 − 4 ⋅ x −
2
6
4
( )
y Xi
z( Xi )
0
0 0.5 1 1.5 2
Xi
( )
f Xi
0
0
2
0 1 2
Xi
The function f(x) crosses the axis near x = 0.6 and x = 1.6. Suppose we
wish to find the exact value of the root near x = 1.6? We already have a
good estimate for the root. What we need is a technique to update and
improve this estimate. Below, we develop such a technique. Later we
will come back to this example and find the desired root.
Newton's
Method
Illustrated above is an arbitrary function f of a single variable x. We seek
to find the root x* given the estimate of the root: x0. Newton first
suggested that an improved estimate of the root could be found by
following the tangent to the curve back to where it meets the axis at x1.
Two expressions can be written for the slope of the tangent: one is the
derivative f'(x), the other is the divided difference representing the slope of
the curve at x = x0.
( )
f x0 − 0
( )
f' x 0 =
x 1 − x0
Note that both the function f and its derivative f' are evaluated at x0. That
is the entire right-hand side is a function only of x0. The calculated value x1
will in general be closer to x* than the starting value x0.
( )
f xk
... by applying Newton's iteration formula:x k+1 := x k −
fp ( xk)
1.6
1.601211
The sequence of values is: x=
1.601209
1.601209
It is clear that the third and fourth values are identical to six places. As a
check, the function value should be near zero ...
... and it is. ( )
f x3 = 0
Of course, we could just as easily have let Mathcad solve for this root
directly:
ξ := 1.6 x r := root ( f ( ξ ) , ξ ) x r = 1.601209
Extension to
Implicitly-Defined
Functions
Whenever an analytical expression for a function is available, it is clear that
the Mathcad root function will solve for the desired root. However,
Mathcad cannot deal directly with an implicitly defined function such as
those which arise in the analysis of process flowsheets. The "function" can
be visualized in the following context:
( ) ( )
f x1 − f x0 ( )
f x1 − 0
=
x1 − x 0 x2 − x1
This expression can then be solved for the next value of x in the sequence.
( )
x0 ⋅ f x1 − x1 ⋅ f x0 ( )
x2 =
f ( x 1) − f ( x 0)
( ) ( )
x k ⋅ f x k+1 − x k+ 1 ⋅ f xk
x k+2 :=
( ) ( )
f x k+ 1 − f x k
1.6
The method converged to the same
root as before, albeit more slowly. 1.65
1.6011462
x=
1.6012062
1.6012095
1.6012095
x k − x k− 1 < δ
2 2.2
1 + 2⋅x − x
One reformulation is g ( x) :=
2.8
5 − exp ( x ) 3
g ( x) := +
4 2
1.601
1.602
1.593
The sequence fails to 1.642
converge even when supplied
x = 1.5 + 0.205i
with an initial estimate that is
very close to the root. 1.962 − 0.246i
1.79 + 0.748i
2.269 − 0.662i
2.196 + 1.068i
Wegstein This step-limited version of successive substitution displays better
Iteration convergence properties. This technique also requires that the objective
function f(x) = 0 be reformuled as x = g(x). The algorithm is:
0. Estimate the argument value x0, and supply a tolerance δ.
1. Evaluate x1 = g(x0), g(x1), S = ∆g/∆x, and θ = 1/(1-S)
2. Update: x = (1 - θ) x1 + θ g(x1)
2
We apply the Wegstein method to: f ( x ) := exp ( x ) + 4 ⋅ x −
3
Example −5
2
1
5 − exp ( x ) 3 θ ( η ) :=
Auxiliary functions: g ( x) := + 1−η
4 2
S0 0
Initialization: x 0 := 1.601 k := 0 .. 7 :=
x1 g ( x 0)
Generate a sequence:
g ( x k+ 1) − g ( x k)
Sk+1
:= x k+ 1 − xk
x k+ 2 x ⋅ ( 1 − θ ( S ) ) + θ ( S ) ⋅ g ( x )
k+ 1 k k k+ 1
1.601
1.6024842
1.5930696
1.5997952
1.6013528
The sequence converges. x=
1.6011789
1.6012104
1.6012095
1.6012095
1.6012095
Back to The secant method is geared to solving f(x) = 0 while the successive
Reality substitution and Wegstein techniques are applied to problems that can be
phrased as x = g(x). Let's recall why we are interested in solving such
equations.
In the simple recycle system shown below, let us assume that the DF
analysis indicates that a carry-forward variable in stream 2 is required to
initiate the material balances on the reactor. Let this variable be the flow
rate of species A. That is, the argument of our objective function is x = nA2.
We proceed by performing the balances on the reactor, the separator, and
the overall subunit. The mixer balance is our objective function.
Secant The objective function, the mixer balance on A, can be written as an error
Formulation function:
f ( x ) = nA1 + nA5 − nA2 = 0
Wegstein In this case we formulate the mixer balance as the function g(x):
g ( x) = nA1 + nA5
Summary Whenever a tear variable is required to proceed with the material
balances in a process flowsheeet, it is necessary to implement some
technique for converging to the correct value of the assumed variable. In
essence, the problem has been reduced to the solution of a single equation
in a single unknown.
The only difficulty in applying these ideas to the solution of the material
balances for a process flowsheet is that the evaluation of the objective
function may involve the evaluation of many intermediate balances.
5.6.2 Multiple Non-Linear Equations
2 1
y = g2 ( x , y) g2 ( x , y) := +
x + 7⋅y 2
Sx0 0
Initialize:
x 0 := 1 y0 := 0.5 x ,y
g1 ( 0 0)
x1
:=
Sy0 0
g2 ( x 0 , y0)
y
1
1
Auxiliary function:θ ( s ) :=
1−s
g1 ( x k+ 1 , yk) − g1 ( x k , yk)
Iterate:
Sxk+1 x k+ 1 − x k
x k+2 ( 1 − θ ( Sxk) ) ⋅ x k+1 + θ ( Sxk) ⋅ g1 ( x k+1 , yk+1)
:=
Syk+1 g2 ( xk+ 1 , yk+ 1) − g2 ( x k+ 1 , yk)
y yk+1 − yk
k + 2
( 1 − θ ( Sy ) ) ⋅ y + θ ( Sy ) ⋅ g ( x , y )
k k+ 1 k 2 k+ 1 k+1
1 0.5
1.05 0.944
The convergence is more 1.115 0.761
rapid in this case. 1.132 0.796
x= y=
1.139 0.798
1.139 0.798
1.139 0.798
1.139 0.798
Relation to Let us recall once more the context in which multiple non-linear equations
Flowsheet arise in process flowsheet analysis. It may occur that a degree-of-freedom
Analysis analysis indicates that several tear variables may be required to initiate
balances. For example, assume that the flow rates of all species in stream
two below must be estimated in order to proceed with the balances on the
reactor.
The unknowns then are the species flow rates in stream two ni2. One
possible scenario is that the reactor, separator, and overall subunit balances
can then be completed, leaving the mixer balances as an objective function.
The formulation for S species is:
ni2 = ni , 1 + ni , 5 i := 1 .. S