Professional Documents
Culture Documents
Mass Balancing McGill PDF
Mass Balancing McGill PDF
Mass Balancing McGill PDF
A C
B
Figure 1 General arrangement for a single node
1
MIME 442: Module 2 Mass balancing and data adjustment
In reality measurements contain errors and equation (5) does not hold, i.e.,
a i - b i (1 ) c i 0 (7)
In general, we have:
a i - b i (1 ) ci i (8)
where i are the errors obtained when evaluating equation (5) for each component i.
It is evident that equation (8) is linear with respect to and it forms a linear system of
equations with 1 unknown () and n equations (n components).
a 1 c1 b1 c1 1
a c
2 2 b 2 c 2 2 (10)
a n c n b n c n n
The estimation of can be cast as an optimization problem, where the objective is to
find the best ,i.e., the value that minimizes the sum of the squared errors, i.e.,
n n 2
minimize
a
i
2
i
i
i c i b i c i (11)
This problem is the Least Squares Estimation and has the following analytical solution:
n
b i - c i a i - c i
i (12)
b - cj
n
2
j
j
You may note this has some similarities to the solution for the 1 coefficient in section
7.1 simple linear regression of Module 1. Indeed the problem can be formulated as a
linear regression problem.
(13)
(a i - c i ) (b i c i ) i
You should satisfy yourself that the solution to this form, i.e., no 0 intercept term, i.e.,
the linear fit is forced through the origin, is the same as Eq 12. Thus a plot of (ai ci)
vs. (bi ci) should be a straight line through the origin and the slope estimated by linear
^
regression should be .
2
MIME 442: Module 2 Mass balancing and data adjustment
Lets do a couple of example mass balances to illustrate what we have learned thus far.
Example 1: Mass balance around a section of a flotation circuit using metal assays
(taken from Morrison, 2010)
In Table 1 we have metal assay data from a section of flotation circuit where A is feed,
B Cu concentrate and C tailings. Well examine three solutions.
Solution 1: Using Eq 6
Observations: There is an obvious problem: the ratios in the last column are the
estimates of (Eq. 6), which should be a unique value independent of which component
is used in the calculation. Clearly the ratios show significant variation, with some
physically impossible negative ratios. We do learn valuable lessons, however.
Considering the table and the analytical solution, Eq 12, it is evident that if there is no
difference between two of the assays, viz. ai bi or bi ci , then there is no solution.
There are two corollaries:
1. The closer are the assays the less reliable is the estimate of . For example,
the Pb assays are the least useful.
2. It is always advisable to use a component that is separated in the unit. In this
case the Cu is the target component to be separated and thus makes the logical
choice to solve the balance.
We could use these lessons to eliminate some values, for example all except the based
on the Cu assays ( = 0.010) and this notion should always be kept in mind but
there is an argument that the there is something beneficial to estimating the best by
using all the data.
3
MIME 442: Module 2 Mass balancing and data adjustment
Observations: We now have a single value, 0.0087; i.e., the best estimate is that 0.87%
of the feed solids (mass) reports to the B stream, i.e., the Cu concentrate, or, its
complement, 99.13% reports to the C steam (tailings)). (From the process perspective
obviously the amount of concentrate is small as the low Cu feed assay implies.)
Note that the result is closest to that given in Table 1 by the Cu component. Given
corollary 2 above, it appears that the Cu component actually does have the strongest
impact. We can judge this from Table 2 where the largest contribution to both the
numerator and denominator sums in Eq 12 is from the Cu component. In this regard the
Cu component carries the most weight.
Equation 13 expresses the linear regression solution and the plot ai ci vs. bi ci is
shown in Figure 2. In this case we force the solution through the origin, as Eq 13
requires (i.e., same solution as Eq 12). The plot hardly encourages the straight line
notion but the regression model faithfully returns the slope 0.0087; i.e., the same
^
solution for as the analytical solution, as must be the case. The lack of agreement
simply reflects the scatter shown in Table 1 for the ratio in the last column.
1
0.8
0.6
(ai-ci)
0.4
0.2 y = 0.0087x
0
-10 -0.2 0 10 20 30
(bi-ci)
^
Another approach is to use Solver to search for that minimizes the sum of squares, Eq
11. We will return to that method of solution in section 1.2 when we introduce
uncertainty in the measurements. Before we do that, however, lets consider another
common mass balance, one based on size analysis.
Example 2: Mass balance around a hydrocyclone using particle size distribution data
4
MIME 442: Module 2 Mass balancing and data adjustment
Solution: The table includes the ratio to calculate . This time, compared to the metal
assay data in Table 1, the ratio is reasonably consistent. (From experience this
reasonable agreement with Eq 13 is often seen in hydrocyclone and other size
separation devices.) Figure 3 shows the linear regression plot and the model (this time
not forcing through the origin just to show that well behaved data do correspond to a
^
straight line through the origin (the intercept is 2x10-15). The best estimate of is 0.623;
that is, 62.3% of the solids report to (are recovered to) the underflow.
25
y = 0.6234x - 2E-15
20
15
10
5
(ai-ci)
0
-40 -30 -20 -10 -5 0 10 20 30 40
-10
-15
-20
(bi-ci)
Figure 3 Linear regression result (note, data are well-behaved and show the expected
straight line through the origin, in this case there is no need to use the force through the
origin option)
The two examples above illustrate cases where we have more than one component on
which to base a mass balance: in Example 1 we had four metal assays; in Example 2 we
had four size classes (or size intervals). In principle only one component is needed for
the balance so in these two examples the mass balance is said to be over-defined and
the extra components sometimes referred to as redundant data. In a mathematical
sense they are redundant but as you can already see they help derive a best estimate of
the mass split rather than relying on only one component to strike the balance, even
one based on the component that is most separated in the unit under question. The
description redundant is rather unfortunate in that regard.
Obviously we could have had more components, more metal assays (or related assays,
such as ash content in coal), or more size classes (or even metal assays of size classes,
as you will encounter in assignment 4/5). One component possibility common in both
examples would be % solids. Especially in the case of the hydrocyclone water recovery
to underflow is an important parameter in modeling the performance (efficiency) curve.
To estimate water recovery we need to % solids data. This is not too onerous as the
5
MIME 442: Module 2 Mass balancing and data adjustment
cyclone samples we collect will be slurry and thus a weigh, dry and weigh again
procedure will give us the % solids information. Using % solids we can approach the
mass balance problem in the same general manner as we did for sizes (or metal assays)
so long as we recognize we have shifted the base of reference to slurry. Well illustrate
a mass balance with % solids data collected around a hydrocyclone.
Example 3: Mass balance around a hydrocylone using % solids data
73.4
C
36.5
38.5
A
54.5 % - 74 m
% solids
22.8
B
70.4
Figure 5 Example % solids data around a hydrocyclone
2. Using % solids
slurry : A BC
solids : Aa Bb Cc
A a c 54.5 36.5
0.531
B slurry b c 70.4 36.5
Bb 70.4
0.531 * 0.69
Aa solids 54.5
We see that the estimated solids mass split is the same using either component, as it
should be, but in the second case we had shifted the base to that of slurry (the symbols
are italic to remind we have shifted the base). Consequently the first mass split
calculated is that of slurry; i.e., 53.1% of the slurry in the cyclone feed reports to (is
recovered to) the underflow. From the slurry split we can calculated the solids mass
split (or solids recovery to underflow), as shown where Bb now is the solids mass flow
rate in the underflow and Aa the solids mass flow rate in the feed.
6
MIME 442: Module 2 Mass balancing and data adjustment
We noted that water recovery to underflow was important in modeling the cyclone
performance curve. We can calculate knowing the slurry mass split and the % solids
data as follows:
The general solution is to weight the measurements in some fashion and minimize the
weighted errors; that is
n
minimize
i
i
2
i (14)
where i is the weighting factor that reflects the uncertainty associated with
measurements of the ith component. The is usually chosen to be the inverse of the
variance of the error associated with the ith component, i.e.
1
i 2 (15)
i
2
n
minimize i
i i
(16)
where (Eq 9)
i (a i ci ) (bi ci )
The inverse of the variance is used in order that measurements with high uncertainty
(high variance) have less impact on the solution; or, conversely, the measurements with
low uncertainty (low variance) have more weight in the minimization, i.e., are given
^
more weight in the estimation of .
7
MIME 442: Module 2 Mass balancing and data adjustment
The variance of the error i is a function of the errors in the measured compornents.
Thus, we need a way to propagate the uncertainty in the measurements to give 2i .
Recalling that the propagation of error for a function is sum of the product of the
variance of each input and the square of its partial derivative, then the solution applying
to our problem (Eq 8) is
2 2 2
i a2i i 2bi i c2i
2
i
a i b i c i (17)
1 -
2 2 2 2 2 2
i ai bi ci
2
n
minimize i
i i
where: (18)
i (a i - ci ) - (bi ci )
2 i a2i 2 2bi 1 - c2i
2
Example: We will use example 1, the flotation data with metal assays introduced earlier
total sampling
2
assaying
2
Experience has generated the following variances on the components for each stream:
Table 3 The relative sampling and assaying errors (standard deviations) associated
with data in Table 1
Feed Concentrate T ails
sampling assays %rel error sampling assays %rel error sampling assays %rel error
Pb 5.0 10.0 11.1803 1.0 2.0 2.2361 10.0 20.0 22.3607
Zn 5.0 5.0 7.07107 1.0 2.0 2.2361 10.0 10.0 14.1421
Cu 5.0 1.0 5.0990 1.0 0.5 1.1180 10.0 5.0 11.1803
Fe 5.0 0.1 5.0010 1.0 1.0 1.4142 10.0 7.0 12.2066
8
MIME 442: Module 2 Mass balancing and data adjustment
i2 :
i2 [(a i c i ) (b i c i )]2
Table 5b Tabulating 2i
Metal ai bi ci 2i
Pb 4.02 4.07 4.04 [0.02 (0.03)]2
Zn 15.8 7.8 15.5 [0.30 (7.7)]2
Cu 0.43 22.4 0.20 [0.23 (22.2)]2
Fe 14.3 16.1 13.5 [0.80 (2.60)]2
The last steps in assembling the data are to determine the ratio i2 / 2 i and the
n
summation ( i2 / 2 i ) . All the steps are readily performed in Excel.
i
^
The solution is now to search for the value that minimizes the summation. This
search could be conducted manually (in Excel) but the obvious approach is to use the
Excel Solver tool.
^
To start Solver you need a first guess of ; we can use the 0.0087 calculated assuming
^
equal measurement errors. The answer from Solver is 0.0104 .
^
We consider 0.0104 is the best estimate as we have not only used all the components
but also taken into account our knowledge of the measurement errors due to sampling
and assaying. Interestingly, if you check Table 1 you will see that this best estimate is
close to mass split ( ) given by the Cu component, which we noted was the best one to
use as it is the component being separated.
As a note of caution, it is possible that the solution is sub-optimal, that is there may be
more than one minimum and we may not have found the smallest minimum. We could
validate by giving different starting guesses and checking if the solution remains the
same. This is not an issue with this set of data but it is a general warning when using
9
MIME 442: Module 2 Mass balancing and data adjustment
Solver to check as other situations may not be so obvious. If the answer does not look
right, and as an engineer you will often have a sense of what is realistic, check it.
Consider the metal assay data and calculation of recoveries (after all the estimation of
the mass split is just a step towards estimating this important process parameter among
others).
The calculation can be achieved two ways, directly from the feed and concentrate assays
or from reconstituted feed (there is actually a third way which we will leave you to
contemplate). We will illustrate using the Cu data first:
Bb ^ b (22.4)
R1 0.0104 * 0.5418 54.2%
Aa a (0.43)
The feed is reconstituted by adding the concentrate and tails in proportion to the mass
split:
^ ^
a b (1 )c 0.0104 * 22.4 0.9896 * 0.2 0.43
We see that the reconstituted feed assay is the same as the measured, as it should be but
Im sure you would not expect this to the case all the time given the errors in the
measurements. (The close agreement is anticipated recalling that the best estimate mass
split, 0.0104, is close to that given by the Cu data alone, 0.010.) Subsequent calculation
of recovery using the reconstituted feed approach is likewise not materially affected:
^
b 0.0104 * 22.4
R2 0.5407 54.1%
^ ^
b (1 )c 0.0104 * 22.4 0.9896 * 0.2
The result is essentially the same and thus the recovery calculation method, 1 or 2, does
not matter.
7 .8
R 1 0.0104 * 0.51%
15.8
10
MIME 442: Module 2 Mass balancing and data adjustment
0.0104 * 7.8
R2 0.53%
0.0104 * 7.8 0.9896 * 15.5
^
While the difference is not large (one reason is because is small in this case) the two
calculation methods should yield the same result. The effect of this difference, i.e., the
effect of calculation choice, will likely magnify once we consider circuits and not just a
single node.
Some of you will have noticed an even more significant problem with the raw metal
assay data: in the example with Zn it is evident that the feed assay (15.8%) is higher
than either the concentrate (7.8%) or tails (15.5%) assay. This is also the case for Pb. A
moments thought will show that this is not physically possible, the fact that it occurs is
because of the measurement errors. This physically impossible situation does contribute
to the difference between calculation routes, but inspection of the better behaved
particle size data will show the same effect. For example, calculation of recovery to
underflow of the -74 + 37 m fraction gives R1 = 42.4% and R2 = 41.6%.
We have seen from the above examples that we can calculate recovery using the
reconstituted feed approach. This has some merit, as discussed by Morrison (2010):
Prior to modern computing power the reconstituted feed method was virtually the only
way to avoid inconsistent recovery calculations. The method works well for single
nodes but is progressively harder to apply to combinations of nodes, i.e., circuits. A
preferable solution anyway is one that spreads the adjustment among all the
components and all the streams. We can do this based on the best estimate of
^
1.2.3 Data adjustment: using
We have found the best estimate of (at least as based on the raw data); the problem
now is to adjust the component values ai, bi, ci such that regardless of which component
is used the same mass balance is achieved and subsidiary calculations like recovery are
independent of the route taken.
Replacing the on the left side of Eq 8 will produce the smallest errors (in the sense of
least squares) on the right side of the same equation.
a i - b i (1 ) c i i (19)
11
MIME 442: Module 2 Mass balancing and data adjustment
a i - bi (1 ) ci 0 (20)
We can write the measured component as the sum of the reconciled value plus an error.
a i a i a i
(21)
b i b i b i
ci ci ci
where ai, bi, ci are the errors or adjustments.
a i - b i (1 ) ci i (22)
Then, the problem can be formulated as follows (keeping in mind we are using the
weighted sums of squares):
n a 2 b 2 c 2
minimize i i i
a i , b i , c i b c
i a i
i i (23)
This is a constrained minimization problem as the values of a i etc must satisfy the
constraint. This problem is solved using the Lagrangian multiplier (see Appendix) i to
impose the constraint. The constraint is then
^ ^ ^
(24)
i a i bi (1 ) ci i 0
Adding Eq 24 to the sum of squares gives a modified sum of squares. The modified
sum of squares is (the 1/2 is introduced to enable a cancelation as you will see):
1 n a i b i c i
2 2 2
minimize J i a i - b i - (1 - )c i - i
a i ,bi ,ci ,i 2 i a i bi ci (24)
J a
2 i i 0 a i a2i i (25a)
a i a i
J b
2 i i 0 b i 2bi i (25b)
b i bi
12
MIME 442: Module 2 Mass balancing and data adjustment
J c
2 i i 1 - 0 c i c2i i 1 -
c i ci
(25c)
J
i
a i b i 1 c i i 0 (25d)
2
a2i i 2 2bi i 1 c2i i i (26)
i i
i (27)
a2i 2 2bi (1 2 ) c2i 2 i
^ ^ ^
The i is calculable from the known values of i (Eq 26, see Table 5b with known)
^
and 2i (Table 5a, with known). Then from (25a), (25b) and (25c) we can calculate
the adjustments:
a i a2i i
b i 2bi i (28)
c i (1 ) i
2
ci
i :
i
i
2i
Pb:
^
ai bi ci i 2i
^
0.02 (0.03) 0.2016 2 (0.0083)
(1 ) 2 (0.8154)
13
MIME 442: Module 2 Mass balancing and data adjustment
(0.0203)
Pb
(1.0001)
Pb 0.0203
Adjustments
ai :
a i a2i i (0.2016)(0.0203)
a i 0.0041
a i a i ai
a i 4.02 (0.0041)
a i 4.024
bi :
^
bi 2bi i (0.0083)(0.0203)(0.0104)
bi 1.75 * 10 6
b i b i bi
b i 4.07 (1.76 * 10 6 )
b i 4.070
ci :
^
ci c2i i (1 ) (0.8154)(0.0203)(1 0.0104)
ci 0.0164
c i c i ci
c i 4.04 (0.0164)
c i 4.024
Raw Adjusted
ai bi ci ai bi ci
^
You can check for yourself that i is zero (its actually -0.0005 but close enough without
carrying more decimal places).
The adjusted data now avoids the problem in the raw data, the impossibility of the feed
^
assay being lower than either of the other two (the fact that a i c i is because is so
14
MIME 442: Module 2 Mass balancing and data adjustment
small and we are restricting the number of decimal places). Below is the result from the
Excel spreadsheet for all the assays.
The adjusted data are all well behaved: for example, for each component feed assays
are between the concentrate and tails assays, as they must be; and regardless of recovery
calculation method (1 or 2) the same recovery will be calculated. Lets check the last
claim.
7.80
R 1 0.0104 * 0.52%
15.72
0.0104 * 7.80
R2 0.52%
0.0104 * 7.8 0.9896 * 15.80
The methodology assumes the errors in measurement are random. This may not be the
case. The adjustments might help reveal bias. One way is to plot the adjusted vs.
measured. We would expect that the adjustments would be distributed around the
equality line, some above some below. Figure 6 illustrates this plot for the Pb data. The
result is as expected for random errors: the adjustments are distributed above and below
the equality line. If the adjusted data were all above (or below) the line we would
suspect a bias in the measurement which would warrant trying to find the source. This is
akin to residual analysis and we could have plotted the difference (adj meas) vs. adj
and reached the same conclusion if the differences were all positive (or negative).
Pb
4.08
4.07
4.06
Adjusted
4.05
4.04
4.03
4.02
4.01
4.01 4.02 4.03 4.04 4.05 4.06 4.07 4.08
Measured
Another indication of possible bias is if the adjustments are large, for example more
than 2 times the i for that measurement (i.e., an adjustment > 95% confidence interval
15
MIME 442: Module 2 Mass balancing and data adjustment
on the measurement). Mass balance software (see below) will flag adjustments using
this criterion drawing attention to possible biases.
^
The method described above first estimates from the raw data and uses this estimate
^
to adjust the measurements. We can ask if this is the best estimate. We could use it
as a first guess guess and renew our search to minimize the sum of squares of the
measurement adjustments:
(measik i adjik ) 2
minimize
i k ik2
(y ik y ik ) 2
(30)
minimize
i k ik2
where is the absolute variance in the measurement of component i in stream k. The
2
ik
solution is iterative each estimate of being substituted in the equivalent to Eq 23; i.e.,
the same matrix, search and Lagrangian mathematics is employed as already described.
Wills and Napier-Munn provide a comprehensive review of the method.
Commercial mass balancing software uses this general approach, including MinProBal
that you will use. The program uses a non-linear search algorithm to find the mass flow
splits and the Lagrange solution for measurement adjustments. The user manual
provides some more background.
^
The results for the two approaches, i.e., that based on from the raw data and the
general solution using Eq 30, will generally not yield the same result. For example, for
the flotation/metal assay data solving Eq 16 for the un-weighted case (solving Eq 12 or
^ ^
13) = 0.00870 whereas using un-weighted MinProBal = 0.00807. Which is better is
a not a particularly useful debate as we do not have a gold standard, some independent
way of measuring the true mass split. Most operations use mass balancing software and
consistent use of one software will produce data that is useful to identify trends in
performance (daily recoveries, for example), is a necessary first step to building models,
including from data mining. And, always check the adjustments as discussed in
section 1.2.4.
The mathematics has been described using a single separation unit, i.e., a single node.
To solve for circuits we need a way to describe them that the mass balance software can
read.
2. Circuits
2.1 Nodal diagrams
The mass balancing/data adjustment methodology described above is the basis for
solving for circuits. We need a way to represent a circuit, a network, such that the
software can read the information. We start with a single node.
16
MIME 442: Module 2 Mass balancing and data adjustment
Feed Tail
sampling point
Concentrate
1 0 1
Node no.
3 2 1 0
3 3 0
Zn ROUGHER
Cu-Pb rougher conc Zn rougher tail
Water
Cu-Pb CLEANER
Zn rougher conc
17
MIME 442: Module 2 Mass balancing and data adjustment
Note: the water is added to node 2 in the diagram as there is no sample taken between
water addition and node 2.
When we have size reduction in the circuit we can still balance on solid flows and
overall metal assays as solids and metal units are conserved (in = out); but particle size
data, assay size-by-size and liberation data are not conserved. We need two nodal
diagrams to accommodate this.
Zn ROUGHER
Water Zn rougher tail
REGRIND
Cu-Pb CLEANER
Zn rougher conc
18
MIME 442: Module 2 Mass balancing and data adjustment
A. Pulp streams and overall assays (the associated mass flows are conserved across regrind mill, node 2
1 Coding
1
Stream Node
2 From To
3 1 0 1
2 1 4
4 8
2 4 3 1 2
4 0 2
5 9
5 2 3
7 6 3 0
7 3 4
3 8 4 0
6
9 4 0
B. Particle size, size-by-size assays, liberation (these data are not conserved across the regrind mill, node omitted)
1 Coding
1
Stream
1 0Node 1
2 2 From
1 To
3
3 3 1 0
4 - -
4 8
3 5 0 2
6 2 0
5 9
7 2 3
7 8 3 0
9 3 0
2
There are several commercial packages, among the most common (in my experience)
are JKSimMet (JKTechnology) and Bilmat (Algosys); the one we will use is MinProBal
(C.R. Larsen), which has kindly been made available for teaching purposes.
References
Morrison, R. Mass balancing flotation data, on Flotation Plant Optimisation: A
Metallurgical Guide to Identifying and Solving Problems in Flotation Plants (Ed. C.J.
Greet) 2010, AusIMM The Minerals Institute, Spectrum Number 16, Chapter 3 pp. 65-
82
19
MIME 442: Module 2 Mass balancing and data adjustment
min f ( x )
x
A simple way to find x that minimizes f(x) is to set the derivative of f(x) with respect to x to zero.
df ( x )
0
dx
Conditions on the second derivative must apply for x to be a minimum.
In this case we need to find the value of x that not only minimizes f(x) but also satisfies the constraint
g(x) = 0. In this case we can not just to set the derivative of f with respect to x to zero to find the
optimal value of x. This can be solved by using the Lagrange multiplier, , to translate the constrained
optimization problem into an unconstrained optimization problem. In the present case the problem is to
find the values of x and that minimize the extended objective function:
min J ( x ) f ( x ) g ( x )
x ,
This is an unconstrained problem and we can solve by setting the derivatives to zero:
dJ ( x )
0
dx
dJ ( x)
0
d
20