MATERIAL AND ENERGY BALAN CIN G IN THE P R O C E S S INDUSTRIES From Microscopic Balances to Large Plants
COMPUTER-AI...
170 downloads
1966 Views
25MB Size
Report
This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
Report copyright / DMCA form
MATERIAL AND ENERGY BALAN CIN G IN THE P R O C E S S INDUSTRIES From Microscopic Balances to Large Plants
COMPUTER-AIDED CHEMICAL ENGINEERING Advisory Editor: L.M. Rose Volume 1: Volume 2: Volume 3: Volume 4:
Distillation Design in Practice (L.M. Rose) The Art of Chemical Process Design (G.L. Wells and L.M. Rose) Computer-Programming Examples for Chemical Engineers (G. Ross) Analysis and Synthesis of Chemical Process Systems (K. Hartmann and K. Kaplick) Volume 5: Studies in Computer-Aided Modelling, Design and Operation Part A: Unit Operations (1. Pallai and Z. Fony6, Editors) Part B: Systems (1. Pallai and G.E. Veress, Editors) Volume 6: Neural Networks for Chemical Engineers (A.B. Bulsari, Editor) Volume 7: Material and Energy Balancing in the Process Industries - From Microscopic Balances to Large Plants (V.V. Veverka and F. Madron)
COMPUTER-AIDED CHEMICAL ENGINEERING, 7
MATERIAL A N D E N E R G Y B A L A N C I N G IN THE P R O CES S I N D U STRIES From Microscopic Balances to Large Plants
Vladimir V. Veverka Franti~ek Madron
ChemPlant Technology, Ostf nad Labem, Czech Republic
1997 ELSEVIER Amsterdam
--
Lausanne
--
New York --
Oxford
--
Shannon
--
Tokyo
ELSEVIER SCIENCE B.V. Sara Burgerhartstraat 25 P.O. Box 211, 1000 AE Amsterdam, The Netherlands
ISBN: 0-444-82409-x 91997 Elsevier Science B.V. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of the publisher, Elsevier Science B.V., Copyright & Permissions Department, P.O. Box 521, 1000 AM Amsterdam, The Netherlands. Special regulations for readers in the USA - This publication has been registered with the Copyright Clearance Center Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923. Information can be obtained from the CCC about conditions under which photocopies of parts of this publication may be made in the USA. All other copyright questions, including photocopying outside of the USA, should be referred to the copyright owner, Elsevier Science B.V., unless otherwise specified. No responsibility is assumed by the publisher for any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from any use or operation of any methods, products, instructions or ideas contained in the material herein. This book is printed on acid-free paper. Printed in The Netherlands
Contents Chapter 1
Introduction
Chapter 2
Balancing in Process Industries . . . . . . . . . . . . . . . . . . 2.1 The Problem Statement . . . . . . . . . . . , ....... 2.2 Balancing F l o w s h e e t - Graph Representation . . . . 2.3 Balancing Variables and Data Preprocessing . . . . 2.4 Data Reconciliation . . . . . . . . . . . . . . . . . . . . . . 2.5 Classification of Variables . . . . . . . . . . . . . . . . . 2.6 Data Collection and Processing . . . . . . . . . . . . . 2.7 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . . .
7 7 12 15 19 20 22 24
Chapter 3
Mass (Single-Component) B a l ~ c e ................ 3.1 Steady-State Mass Balance and its Graph Representation . . . . . . . . . . . . . . . 3.2 More on Solvability . . . . . . . . . . . . . . . . . . . . . 3.2.1 Partition of variables and equations . . . . . . 3.2.2 Transformations . . . . . . . . . . . . . . . . . . 3.3 Observability and Redundancy . . . . . . . . . . . . . . 3..3.1 Definitions and criteria . . . . . . . . . . . . . . 3.3.2 Classification methods and transformation of equations . . . . . . . 3.4 Illustrative Example . . . . . . . . . . . . . . . . . . . . . 3.5 Just Determined Systems . . . . . . . . . . . . . . . . . . 3.6 Main Results of Chapter 3 . . . . . . . . . . . . . . . . . 3.7 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
25
39 42 49 55 58
Multicomponent Balancing . . . . . . . . . . . . . . . . . . . . . 4.1 Chemical Reactions and Stoichiometry . . . . . . . . 4.2 C o m p o n e n t Mass Balances . . . . . . . . . . . . . . . . . 4.3 Reaction Invariant Balances . . . . . . . . . . . . . . . . 4.4 Element Balances . . . . . . . . . . . . . . . . . . . . . . . 4.5 Reaction Invariant Balances in a System of Units . 4.6 E x a m p l e of Multicomponent Balance . . . . . . . . . 4.7 Unsteady-State Balances . . . . . . . . . . . . . . . . . . 4.8 Main Results of Chapter 4 . . . . . . . . . . . . . . . . . 4.9 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
59 59 63 70 77 79 83 87 91 96
Chapter 4
.................................
25 31 31 34 37 37
vi
Chapter 5
Material and Energy Balancing in the Process Industries
Energy Balance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enthalpy Balance . . . . . . . . . . . . . . . . . . . . . . . 5.1 Graph and Matrix Representation 5.2 of the Enthalpy Balance . . . . . . . . . . . . . . . . . . . Example of Enthalpy Balance . . . . . . . . . . . . . . . 5.3 Heat and Mass Balancing . . . . . . . . . . . . . . . . . . 5.4 Remarks on Solvability . . . . . . . . . . . . . . . . . . . 5.5 Unsteady Energy Balance . . . . . . . . . . . . . . . . . 5.6 Main Results of Chapter 5 . . . . . . . . . . . . . . . . . 5.7 Recommended Literature . . . . . . . . . . . . . . . . . . 5.8
108 111 118 123 124 127 132
Chapter 6
Entropy and Exergy Balances . . . . . . . . . . . . . . . . . . . 6.1 Exergy and Loss of Exergy . . . . . . . . . . . . . . . . 6.2 Simple Examples . . . . . . . . . . . . . . . . . . . . . . . 6.3 Examples of Exergetic Analysis . . . . . . . . . . . . . 6.3.1 Heat exchanger network . . . . . . . . . . . . . 6.3.2 Distillation unit . . . . . . . . . . . . . . . . . . . 6.3.3 Heating furnace . . . . . . . . . . . . . . . . . . . 6.4 Concluding Remarks . . . . . . . . . . . . . . . . . . . . . 6.5 Recommended Literature . . . . . . . . . . . . . . . . . .
135 135 137 170 170 172 173 175 176
Chapter 7
Solvability and Classification of Variables I Linear Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 General Analysis . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Canonical Format of the System of Equations 7.3 Commentary and Examples . . . . . . . . . . . . . . . . 7.4 Main Results of Chapter 7 . . . . . . . . . . . . . . . . . 7.5 Recommended Literature . . . . . . . . . . . . . . . . . .
177 177 184 191 196 199
Chapter 8
99 99
...
Solvability and Classification of Variables II Nonlinear Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.1 Simple Examples . . . . . . . . . . . . . . . . . . . . . . . 8.2 Solvability of Multicomponent Balance Equations 8.2.1 Transformation of the equations . . . . . . . 8.2.2 Additional hypotheses . . . . . . . . . . . . . . 8.2.3 Independent variables . . . . . . . . . . . . . . 8.2.4 Degrees of freedom . . . . . . . . . . . . . . . . 8.2.5 Solution manifold . . . . . . . . . . . . . . . . . 8.2.6 Remarks . . . . . . . . . . . . . . . . . . . . . . . . 8.2.7 Example . . . . . . . . . . . . . . . . . . . . . . . . General Solution Manifold . . . . . . . . . . . . . . . . . 8.3 8.3.1 Energy balance equations . . . . . . . . . . . .
201 201 213 213 217 224 228 234 235 238 244 244
vii
8.4 8.5
8.6 8.7
Chapter 9
Chapter 10
Chapter 11
8.3.2 The whole system of balance equations 8.3.3 Heat exchangers . . . . . . . . . . . . . . . . . . 8.3.4 Heat and mass balances . . . . . . . . . . . . . 8.3.5 General nonlinear models . . . . . . . . . . . . Jacobi Matrix and Linearisation . . . . . . . . . . . . . Classification Problems; Observability and Redundancy . . . . . . . . . . . . . . 8.5.1 Examples . . . . . . . . . . . . . . . . . . . . . . . 8.5.2 Theoretical analysis . . . . . . . . . . . . . . . . 8.5.3 Theoretical classification . . . . . . . . . . . . 8.5.4 Classification in practice . . . . . . . . . . . . Main Results of Chapter 8 . . . . . . . . . . . . . . . . . R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
..
250 251 255 257 258 265 265 270 277 284 288 295
Balancing Based on Measured D a t a - Reconciliation I Linear Reconciliation . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 Problem Statement . . . . . . . . . . . . . . . . . . . . . . 9.2 Reconciliation Formulae . . . . . . . . . . . . . . . . . . 9.3 Statistical Characteristics of the Solutions; Propagation of Errors . . . . . . . . . . . . . . . . . . . . 9.4 Gross Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5 Systematic Errors . . . . . . . . . . . . . . . . . . . . . . . 9.6 Main Results of Chapter 9 . . . . . . . . . . . . . . . . . 9.7 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
312 329 342 345 350
Balancing Based on Measured D a t a - Reconciliation II Nonlinear Reconciliation . . . . . . . . . . . . . . . . . . . . . . 10.1 Simple Examples and Problem Statement . . . . . . 10.2 Conditions of M i n i m u m . . . . . . . . . . . . . . . . . . . 10.3 Properties of the Solution . . . . . . . . . . . . . . . . . 10.4 Methods of Solution . . . . . . . . . . . . . . . . . . . . . 10.4.1 Improving the initial guess . . . . . . . . . . . 10.4.2 Suboptimal reconciliation . . . . . . . . . . . . 10.4.3 Final reconciliation . . . . . . . . . . . . . . . . 10.4.4 Short-cut method . . . . . . . . . . . . . . . . . . 10.4.5 Remarks . . . , . . . . . . . . . . . . . . . . . . . . 10.5 Gross Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.6 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.7 Main Results of Chapter 10 . . . . . . . . . . . . . . . . 10.8 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
353 353 364 367 374 374 376 380 384 387 394 399 409 414
Dynamic Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . 11.1 Mass Balance Model with Accumulation . . . . . . .
417 417
297 297 303
viii
Chapter 12
Chapter 13
Material and Energy Balancing in the Process Industries
11.2 Daily Balancing . . . . . . . . . . . . . . . . . . . . . . . . 11.3 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.4 Recommended Literature . . . . . . . . . . . . . . . . . .
422 434 435
Measurement Planning and Optimisation . . . . . . . . . . . 12.1 Single-Component Balancing . . . . . . . . . . . . . . . 12.1.1 Finding the first solution . . . . . . . . . . . . 12.1.2 Optimal measurement placement from the standpoint of measurement precision 12.2 The General Case . . . . . . . . . . . . . . . . . . . . . . . 12.2.1 Problem statement . . . . . . . . . . . . . . . . . 12.2.2 Objective functions . . . . . . . . . . . . . . . . 12.2.3 Theory . . . . . . . . . . . . . . . . . . . . . . . . . 12.2.4 Solution of the problem . . . . . . . . . . . . . 12.2.5 Results . . . . . . . . . . . . . . . . . . . . . . . . . 12.2.6 Example . . . . . . . . . . . . . . . . . . . . . . . . 12.2.7 Optimality of the solution . . . . . . . . . . . . 12.3 Main Results of Chapter 12 . . . . . . . . . . . . . . . . 12.4 Recommended Literature . . . . . . . . . . . . . . . . . .
437 437 438 .
440 441 441 442 443 444 447 449 452 453 454
Mass and Utilities Balancing with Reconciliation in Large Systems A Case Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 13.1 The Problem Statement . . . . . . . . . . . . . . . . . . . 457 13.2 Requirements on the Industrial Balancing System . 460 13.3 Important Attributes of an Industrial Balancing System463 13.4 Balancing Errors . . . . . . . . . . . . . . . . . . . . . . . . 465 13.4.1 Mistakes in the balance flowsheet - topology errors . . . . . . . . . . . . . . . . . . 465 13.4.2 Analysis of balance inconsistency - balance differences . . . . . . . . . . . . . . . 467 13.4.3 Identification of the cause of a gross error 468 13.5 Structure of the Balancing System IBS . . . . . . . . 469 13.6 Configuration of the Balancing System - A Case Study . . . . . . . . . . . . . . . . . . . . . . . . . 472 13.7 Examples of Balancing Proper . . . . . . . . . . . . . . 475 13.7.1 Correct balance - the base case . . . . . . . . . . . . . . . . . . . 475 13.7.2 Balancing with a gross error . . . . . . . . . . 477 13.7.3. Some quantities unobservable . . . . . . . . . 478 13.7.4 Topology e r r o r - some streams missing . . 479 13.7.5 Topology errors - too many fixed streams 480 13.7.6 Reporting . . . . . . . . . . . . . . . . . . . . . . . 481
ix 13.8
13.9
Experience with C o m p a n y - W i d e Mass and Utilities Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.8.1 Balancing in operating plants . . . . . . . . . 13.8.2 Implementation of a company-wide balancing system . . . . . . . . . . . . . . . . . . Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . .
481 482 482 485
A p p e n d i x A Graph Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.1 Basic Concepts . . . . . . . . . . . . . . . . . . . . . . . . . A.2 Subgraphs and Connectedness, Circuits and Trees A.2.1 Subgraphs and connected components . . . A.2.2 Connected graphs, circuits, trees . . . . . . . A.3 Properties of the Incidence Matrix . . . . . . . . . . . A.3.1 Case when G is a tree . . . . . . . . . . . . . . A.3.2 General connected graph, elimination of circuits . . . . . . . . . . . . . . . . . . . . . . . A.4 Graph Operations . . . . . . . , ............... A.4.1 Finding connected components . . . . . . . . A.4.2 Derived operations . . . . . . . . . . . . . . . . . A.4.3 Merging of nodes . . . . . . . . . . . . . . . . . A.5 Costed Graphs . . . . . . . . . . . . . . . . . . . . . . . . . A.6 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
487 487 491 491 493 497 498
Appendix B Vectors and Matrices . . . . . . . . . . . . . . . . . . . . . . . . . B.1 Vector Spaces . . . . . . . . . . . . . . . . . . . . . . . . . .
515 515 518 521 523 526 532 538 543 551 554 562
B.2 B.3 B.4 B.5 B.6 B.7 B.8 B.9 B.10 B.11
Dimension and Bases . . . . . . . . . . . . . . . . . . . . Vector Subspaces . . . . . . . . . . . . . . . . . . . . . . . Classical Vector Spaces . . . . . . . . . . . . . . . . . . . Linear Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . More on Matrices; Elimination . . . . . . . . . . . . . . Matrix Operations . . . . . . . . . . . . . . . . . . . . . . . Symmetric Matrices . . . . . . . . . . . . . . . . . . . . . Orthogonality . . . . . . . . . . . . . . . . . . . . . . . . . . Determinants . . . . . . . . . . . . . . . . . . . . . . . . . .
A p p e n d i x C Differential Balances . . . . . . . . . . . . . . . . . . . . . . . . . C.1 Material Continuum . . . . . . . . . . . . . . . . . . . . . C.2 Interface Balances . . . . . . . . . . . . . . . . . . . . . . . C.3 Thermodynamic Consistency . . . . . . . . . . . . . . . C.4 Exact Integral Balances . . . . . . . . . . . . . . . . . . . C.5 Electrochemical Processes . . . . . . . . . . . . . . . . . C.6 R e c o m m e n d e d Literature . . . . . . . . . . . . . . . . . .
500 503 503 506 506 507 513
571 571 575 576 578 582 584
X
Material and Energy Balancing in the Process Industries
A p p e n d i x D Differential form of the 2nd Law of Thermodynamics . . D.1 Recommended Literature . . . . . . . . . . . . . . . . . .
585 588
Appendix E Probability and Statistics . . . . . . . . . . . . . . . . . . . . . .
589 589 597
E.1 E.2 Appendix F
Random Variables and their Characteristics . . . . . Special Probability Densities . . . . . . . . . . . . . . .
Exercises
609
List of Symbols
623
Subject Index
633
Chapter 1 INTRODUCTION
Material and energy balancing belongs to very frequent chemical engineering activities. In spite of this fact, a systematic treatment of this topic in the form of a monograph is quite rare. Balancing also usually forms one or more introductory chapters in general chemical engineering textbooks, but the limited space available there usually makes not possible to cover this subject in depth. The classical treatment of balances in the literature available (which was excellent at the time of publishing) needs to be complemented nowadays for several reasons. Balancing belonged to the first successful use of computers in chemical engineering in early sixties. Since then the spread of computers (and especially personal computers) influenced balancing significantly. The classical steady state balancing in the stage of process design now represents only a part of balancing problems we can meet in practice. Mass and energy balancing (accounting) now becomes to be a standard feature of plant information systems as a part of efforts to guarantee good housekeeping of operating plants. Process plants very often represent complex systems linked to one another to enable functioning in the most efficient way. The automatic computerised analysis and synthesis of balancing relations among hundreds or thousands of process streams requires a systematic approach respecting all possible situations which can occur in practice. This fact brought the need for new balancing techniques based on graph theory and
statistics. The other important feature of balancing calculations is the danger of
insufficient accuracy of results. Unmeasured flows and concentrations calculated on the basis of imprecise data are in most cases differences of big numbers. This fact influences adversely the accuracy of results and in some situation makes them useless. The confidence intervals should be an integral part of balancing results based on imprecise data. Even more dangerous is the possible occurrence of gross measurement errors which can devalue results even more seriously. The problems of confidence intervals and gross errors detection and elimination can be solved by data reconciliation. Instrumentation in process plants is very often not sufficient for setting up detailed and reliable balances. Design and maintenance of instrumentation systems is strongly influenced by control engineers with the primary target of process control. To improve situation in this area new techniques of instrumenta-
2
Material and Energy Balancing in the Process Industries
tion design and optimisation for balancing purposes are now available (optimum measuring placement). Retrofitting and revamping of operating plants is now important part of investment to process industries. The new design of the plant relies heavily on underlying process data. Material and energy balances needed for retrofitting and revamps must be much more detailed than is common in regular plant operation. Special plant tests are run with additional (portable) instrumentation. The reliability and completeness of balances influences the success of overall project significantly. Increased interest in energy conservation in large systems requires a systematic approach to consistent problem definition. Particularly successful is the use of pinch technology. The application of pinch technology to existing plants (revamps) depends on reliable heat and energy balances. The Classical energy (or enthalpy) balances are now complemented by balancing of entropy and exergy (availability). There are also new balancing techniques used in the process control (dynamic balances, instrumentation design and maintenance, etc.). Advanced control techniques incorporated in process computers are very often based not only on directly measured variables but also on secondary variables calculated from balance models. The present book will complement the information present in classical balancing literature by the following topics: systematic analysis of large systems by Graph theory comprehensive thermodynamic analysis (entropy and availability) balancing on the basis of redundant raw plant data (reconciliation, propagation of random measurement errors, detection and elimination of gross errors) measurement design and optimisation (optimal measurement placement) dynamic balancing experience with plant-wide regular mass and energy balancing as a part of plant's process information system. The structure of the book is as follows: The most elementary and unequivocal balance of a technological system is its mass balance, dealt with in Chapter 3. Although the balance of a node (unit of the system) is almost trivial (mass in = mass out + possible accumulation), the fact that the individual nodes are connected by streams where output stream from one unit becomes input stream into another unit gives rise to a complex structure represented by the graph of the system. The methods of Graph theory enable one to analyse completely the problems of solvability in a mathematically precise
Chapter 1- Introduction
3
manner. They are treated rather extensively with the aim to give the reader an idea of the basic concepts used henceforth: the graph representation, the partition of the streams into measured and unmeasured, solvability conditions, observability and redundancy. Generally, the streams are mixtures of several chemical species (components of the mixture). The multicomponent balancing is dealt with in Chapter 4. Certain nodes of the system can be reaction nodes. Having specified the chemical reactions considered admissible in a reaction node, by the laws of chemical stoichiometry the balance of a reacting species involves a source term due to the (positive or negative) production of the species by the reactions. Using an algebraic procedure described in Section 4.3, the (usually a priori unknown) source terms can be eliminated giving a set of'reaction invariant balances'; so the number of unknown variables (parameters) is reduced. Of main interest are steady-state balances neglecting the terms due to accumulation in the nodes. The formulation of an unsteady-state balance brings no theoretical problem (see Section 4.7); specified is the balance of a batch reactor. The exact energy balance (Chapter 5) is only hypothetical. In practice, less relevant items (such as kinetic and potential energy) are neglected and neglecting also the accumulation terms, we have the steady-state enthalpy balance. Each material stream is assigned its specific enthalpy with the condition that the specific enthalpies are thermodynamically consistent. In addition we introduce net energy streams representing heat transfer or also mechanical power supply completing the balance of any node. For the case that only total mass is balanced along with energy (enthalpy), a simplified version of the balance is presented in Section 5.4 (heat and mass balancing); an important special case is a heat exchanger network. For completeness, in Section 5.6 we give general form and examples of unsteady energy balance. Of different nature is the entropy balance dealt with in Chapter 6. It is not a balance in the proper sense because no quantity is conserved. In fact it is a method of thermodynamic analysis of the processes in the system. More familiar to engineers is the notion of exergy (availability). The (necessarily positive) production of entropy in any node is proportional to the loss of exergy in the node; the goal is to reduce the loss as far as possible. The chapter gives a number of examples of such thermodynamic analysis, along with critical comments. Chapters 7 and 8 are devoted to the problems of solvability. We call a set of equations solvable when there exists some vector of solutions, not necessarily unique. In Chapter 3, we have shown that the set of mass balance equations is always solvable if no variable has been fixed a priori. With redundant measured variables, the equations need not be (and usually are not) solvable, unless the fixed variables have been adjusted. Then certain unknown (unmeasured) variables are uniquely determined (observable), other still not (unobservable variables). Certain measured variables can be nonredundant: they
4
Material and Energy Balancing in the Process Industries
are not affected by the solvability conditions thus their values are arbitrary. The set of mass balance equations is an example of a linear system. In Chapter 7 we analyse the solvability of a linear system in general, using the methods of linear algebra. In particular we transform the equations to (what we call the) canonical format (Section 7.2) and give explicit criteria for the solvability classification. The main goal is to give methods that can be applied to the (considerably more difficult) analysis of non-linear systems. The multicomponent chemical species and energy balances are mostly non-linear in the primary variables (mass flowrates, mass fractions, temperatures, possibly also pressures of the streams). The solvability analysis of non-linear systems in Chapter 8 begins with examples showing that even in simple cases, the terminology introduced for linear systems (in particular observability and redundancy) becomes somewhat vague: certain problems can be 'not well-posed'. We then first analyse the solvability of the whole system of balance equations without a priori fixed variables (Sections 8.2 and 8.3) and show that under certain plausible structural hypotheses, the system is solvable. If the values of certain variables have been fixed a priori (for example measured), there is no mathematically precise general solution to the observability and redundancy classification problem. We did not attempt to arrive at a complete analysis. Still, we have shown that remitting somewhat the mathematical precision, a pragmatically plausible classification is possible if the problem is linearized. In Chapters 9 and 10, we deal with balancing based on measured data. The measured data are subject to random errors, and are processed by statistical methods. A statistically rigorous approach is possible if the balance constraints are linear; see Chapter 9. The measured data are first adjusted so as to obey the solvability conditions and minimise the generalised sum of squares of the adjustments; the procedure is called reconciliation. In particular if the distribution of measurement errors is Gaussian with zero mean, we thus obtain the maximum likelihood estimates. Also the estimates of the unmeasured observable variables can then be computed. Even if the distribution is not Gaussian, we can compute statistical characteristics (in particular standard deviations) of the estimates (and possibly also of other variables dependent linearly on the former). With a Gaussian distribution, the confidence intervals for the estimates are thus found. Important is the fact that the presence of redundant measured variables generally improves the precision of the results. On the other hand a measurement error in one variable affects also the estimates of other variables (so-called propagation of errors); in particular the presence of gross errors can spoil the whole result of reconciliation. Methods of detection and elimination of gross errors can be based on the statistical analysis of data; see Section 9.4. A rigorous formulation of the reconciliation problem is possible even with non-linear constraints; only the general existence and uniqueness of a
Chapter
1 -
Introduction
5
solution is not warranted theoretically. Still, with possible exception of considerable gross errors or inadequate selection of the measured variables the problem appears as solvable in practice as shown in Chapter 10. The methods are based on successive approximations (such as successive quadratic programming), where the special character of the criterion to be minimised can be made use of; see Section 10.4. Although not rigorous from the statistical point of view, the approximate statistical characteristics of the estimates can be computed if the constraints are linearised at the final solution. The latter linearisation makes also possible to classify the variables according to Subsection 8.5.4 of Chapter 8. Finally the methods of detection and elimination of gross errors according to Chapter 9 can be applied to the linearised system of equations (Section 10.5). Chapter 11 deals with dynamic (unsteady-state) mass balancing of a technological system involving inventories. A straightforward method of reconciliation is presented avoiding accumulation of small systematic errors in the time series of measurements. The method has proved successful in practice and can also be supported by theoretical arguments. There is generally a great number of possibilities how to select the set of values to be measured, thus the measuring points. The criteria of optimality and the ways leading towards an optimum are analysed in Chapter 12. A more or less heuristic procedure is suggested eliminating successively measuring points that involve high costs and/or give unprecise estimates of the required quantities. If theories and methods presented in the book should to be successful in the practice, many prerequisites must be fulfilled. Typical example of the complexness of the problem can be regular (e.g. daily) balancing in process plants based on measured data. Chapter 13 deals with problems which can be encountered in regular balancing of mass and utilities in refinery and petrochemical complexex. The analysis of the problem is complemented by the experience gained during development and implementation of mass and utilities balancing with reconciliation in the framework of company's process information system. It is the intention of authors to present balancing techniques in a systematic and rigorous way. To make the book at the same time more readable, some parts are included in 5 Appendices. The appendices A,B, and E will enable the reader to brush up and possibly extend his knowledge of graph theory, vector and matrix algebra, and statistical theory pertaining to the problems of balancing. For the interested reader's convenience, the theory is presented in a largely selfcontained manner, with (at least outlined) mathematical proofs. In perusing Chapters 3-8, the reader can manage with Appendix A and Sections B.1-8 of Appendix B. Sections B.9-11 and Appendix E constitute the theoretical basis of Chapters 9-11. The subtitle of the book reads 'From microscopic balances to large plants'. The first part of the promise is fulfilled in Appendices C and D. If the reader is more deeply interested in the physics underlying the ('macroscopic') node balances, before perusing Chapters 4 and 5 he can begin with Appendix C,
6
Material and Energy Balancing in the Process Industries
and with Appendix D before Chapter 6. He will then perhaps better understand the complex nature of the processes in the technological units, and the (necessary) simplifications adopted in setting-up the balances of a technological system. There are many examples throughout the book which serves for better understanding of theory presented there. To gain more practice in solving balancing problems, Appendix F presents several exercises dealing mostly with balancing with reconciliation. The exercises are used in reconciliation courses given by one of the authors of the book. Unfortunately, the data reconciliation is out of reach of the power of pocket calculators even for very simple flowsheets. If the reader wants to go through the workshop based on Appendix F, he can obtain (free of charge) mass and heat balancing software RECON suitable for IBM compatible personal computers (see the coupon at the end of the book). This software is sufficient for the complete solution of exercises including the statistical analysis of data.
Chapter 2 BALANCING IN PROCESS INDUSTRIES 2.1
THE PROBLEM STATEMENT
Let's start with several simple examples illustrating basic balancing tasks encountered in different branches of process industries (refineries, petrochemical plants, inorganics, etc.). Fig. 2-1. depicts a simple scheme for a mass balance. Besides the distillation column (1) and a distillate storage tank (2), the scheme comprises also more complex subsystems of apparatuses which are balanced here as "black boxes". Node (5) represents here a distributor of electric energy supply.
2
3
12 I .....................................
3
'I
"-O I I
Fig. 2-1. A flowsheet for a single-component balance
Streams are usually classified as process streams (streams 1 to 8) and utilities, such as electricity or cooling water (streams 9 to 11). This classification is useful, because process streams usually don't mix with utilities. Systems of balancing equations of process streams and of individual utilities are often independent and can be solved separately. The classification of the stream (12)
8
Material and Energy Balancing in the Process Industries
is problematic. In the subsystem (4) arises the process off-gas which is further led to the subsystem (3) to be burned in a furnace; so it becomes here a utility stream. The most simple balance of the system in a certain (usually integral) time interval means the complete information about exchange of balanced quantities (overall mass, components, different forms of energy, etc.) among separate elements (nodes) of the system or among nodes and the environment inventories of balanced quantities in nodes at the beginning and at the end of the balancing interval, or how the inventories have changed (accumulation) At this moment we are interested in the overall mass flows in the case of mass streams (for example in tons) and electric energy (for example in GWh). We are not interested in other characteristics of streams as chemical composition, because it can be supposed that the quality of the individual streams is guaranteed by the control system. Balance equations for this problem can be expressed as sum of inputs = sum of outputs + increase of inventory for every node in the system. It is the case of so-called single component balance when there is one balancing equation around any node. The balance can be also classified as dynamic because the process need not be at steady state as we admit the change of inventory in the tank (2). The incentive for setting up the balance in such system is regular monitoring of yields of main products and of specific consumption of utilities as a part of "good house keeping" of the plant. Let's consider the second flowsheet in Fig. 2-2. where is the distillation/absorption train for processing of refinery off-gases. Refinery off-gas (1) consists of light hydrocarbons (C1 to C7), hydrogen and inert gases (N2, Ar). The column No. 1 serves as absorber/desorber. Hydrogen, inerts and C1 and C2 hydrocarbons are boiled up in the bottom part of the column and heavier hydrocarbons (C3, C4) are absorbed in the upper part of the column by heavy hydrocarbons (C6 and C7). The lean gas (2) leaving the head of the column is later burned in the furnace. The second column serves for separation of C3 and C4 hydrocarbons from the absorbent (6) which circulates among columns (1) and (2). The middle hydrocarbons (4) consisting mostly of propane and butanes are separated in the third column which produces commercial products propane (7) and butane (8).
Chapter 2 - Balancing in process industries
9
2t
7
2
v
3
I Fig. 2-2. Separation of light hydrocarbons
In this case we are interested in so-called multicomponent balance when individual components (inerts, individual hydrocarbons and hydrogen) are conserved. We can write one component balance equation for every component and the column (if the component is present in this column). The result of the balance is the complete information not only about overall flows but also about the composition of individual streams. Such multicomponent balance is important for tracing valuable components in the process. The value of commercial products (propane and butane) is much higher than the value of the lean gas. Significant economical losses can occur if the absorption in the first column does not operate properly and valuable hydrocarbons are lost in the lean gas. There are also other incentives for setting up such multicomponent balance. The balance in a multicomponent system can serve for validation of sampling and analytical methods. The analysis of imbalances (inputs minus outputs) can reveal errors caused by improper sampling or erroneous analytical methods. Nowadays, process simulators which can simulate the behaviour of the plant on the computer are more and more used for the optimisation and control of processes. The major problem in using simulators is their tuning to simulate properly all important features of the real process. This can be done only by comparison of the result of simulation with the complete component balance set up on the basis of plant data. input
output
reactor C12,CH4
Fig. 2-3. A chlorination reactor
CI_,,CH4,CH3C1,CH2C12, CHCls, CC14,HC1
10
Material and Energy Balancing in the Process Industries
There is a chlorination reactor in Fig. 2-3. Methane is chlorinated in a complex reaction set which can be summarised as CH 4
+ C12 CH3C1 + C12 CH2C12 + C12 CHC13 + C12
= CH3C1 + HC1 = CH2C12 + HC1 = CHC13 + HC1 = CC14 + HC1.
In this case the individual components are not conserved in the reactor as they can be consumed or created by reactions. The balance of the reactor is governed by the stoichiometry of the reaction system. In this case we speak about the multicomponent balance with chemical reaction. The result of balancing is the complete information about amount of individual components entering and leaving the reactor and also about reaction characteristics as reaction rates or extents of reaction. Balancing of reacting systems is important for detailed analysis of processes running in the reactor, either in the stage of laboratory or pilot plant studies, or as regular monitoring of industrial reactors behaviour (yields, selectivity). In the last case it is possible to reveal important changes as improper control, ageing of the catalyst, etc., which can cause serious economic losses or even jeopardise the safety of the whole process. Another flowsheet is in Fig. 2-4. The distillation column is complemented by two heat exchangers which makes possible preheating of the feed by the contact with hot bottom product. In practice, especially in refinery and petrochemical industries, we can meet even with much complicated heat exchange systems consisting of dozens of heat exchangers which make processes economically viable. ~9 distillate
feed
I
bottom product
Fig. 2-4. A feed of the column preheat
To analyse such system the heat or enthalpy balance must be set up, which includes the complete information about enthalpy of streams and also
Chapter 2
-
Balancing in process industries
11
about heat fluxes occurring among some parts of the system. We can meet with this kind of balancing either when designing a new process, or during monitoring or control of the existing process (evaluation of heat transfer coefficients, calculation of unmeasured temperatures, etc.). Such monitoring can reveal, for example a common quiet "thief' in process plants - a heat exchange area fouling. All these examples given above represent a broad class of needs we can meet in practice. The information about balanced quantities are obtained by solving the system of balance equations on the basis of measured or otherwise specified values of variables. There are two basic types of balance calculations. For the first case is typical that some variables (flows, inventories, etc.) are fixed and the other are calculated by direct solving the system of equations. The number of unknowns equals the number of independent equations and the selection of unknowns must guarantee the solvability of the system. This situation is typical for example for steady-state balancing in the stage of the design of the process. This type of balancing which can be reduced to equations solving was the main topic in earlier chemical engineering balancing literature. The solution is relatively easy (with the use of computers and balancing software which is now available). The one problem can be the selection of the set of independent variables which makes the problem just solvable. Such a system of independent variables can differ from the set we would like to specify independently. The other problem can be the consistent set of enthalpy data in the case of energy balancing. Nowadays process simulators are widely used for designing of new processes which are capable of setting up the complete material and energy balance of even very complicated processes. The other area of mass and energy balancing concerns the analysis of operating processes. The advent of process computers brought the huge amount of process data from operating plants, sometimes of dubious quality. At the same time the widely spread personal computers brought an immense computing power to process engineers. The situation here is much more complicated than in the case of balancing in the design area. The occurrence of measured variables in operating processes depends mostly on the instrumentation which is usually dictated by control engineers to guarantee good controllability of the process. Less attention is given to balancing needs, where very often only basic inputs and outputs are measured with sufficient precision (the custody measurement). On the other hand, in some areas where the control is critical there is more information for balancing than needed, we say that the instrumentation is redundant. So we can meet very often with insufficient instrumentation in one part of the plant and with huge amount of redundant data in the rest. All this influences the unique solvability of the system of balancing equations and makes the balancing more difficult. This situation which started in early sixties brought the need for systematic methods for the second type of balancing- the balancing based on
12
Material and Energy Balancing in the Process Industries
measured data. Besides problems with redundant or insufficient data also other problems have to be solved. Statistical methods were used for the adjustment of controversial data by reconciliation. Reconciliation which was developed about two hundred years ago was re-invented for balancing in early sixties. Since then many problems typical for the use of reconciliation in process engineering were successfully solved. Results of balancing based on measured data are significantly influenced by measurement errors. The propagation of measurement errors in the process of balancing provides the information about the reliability of results by confidence intervals. Very useful are techniques of the statistical analysis of process data aimed at detection and elimination of gross measurement and other gross errors. It is also possible to optimise the instrumentation to improve results of balancing. All this theory and techniques are now available to improve the quality of mass and energy balancing in process plants.
2.2
BALANCING
FLOWSHEET
- GRAPH
REPRESENTATION
In the plant documentation we can usually meet with process and instrumentation (P&I) diagrams which contain the process equipment and the instrumentation and control loops. P&I diagrams are usually too much detailed for balancing purposes. We can simplify them by deleting control loops and a part of instrumentation which is not needed for balancing purposes. Very often the flowsheet can be further simplified by ignoring of some parts of equipment or by merging some pieces into one equipment. For example, in the case of mass balance, pumps can be neglected because they have only one input and one output and their mass balance is a trivial one. Even in the case of enthalpy balance, pumps are often neglected as the shaft work exerted on the pump is often negligible in comparison with the enthalpy changes of streams. Similarly, if only the multicomponent balance is set up around a distillation column, the column proper is usually merged with the condenser, boiler, or other supporting equipment. The resulting flowsheet whose complexness is just sufficient for the purpose of the balance is finally redrawn in the graph form. The graph representation of the flowsheet for the single-component balance shown in Fig. 2-1 is in Fig. 2-5. The graph consists of nodes (circles) and streams (arrows). Every stream is incident either with two nodes or with one node and the environment (which can be viewed also as one of the nodes).
Chapter 2 - Balancing
13
in process industries
T
13
,
~
~
3
8
w--
Fig. 2-5. A graphrepresentationof balancingflowsheet
By comparing Figs. 2-1 and 2-5, we can see that the new stream (13) occurred in Fig. 2-5. This stream represents the artificial (fictitious) stream - the accumulation of mass in the tank (2). We will meet with artificial streams more in the next parts of the book. The direct application of conservation laws to the graph in Fig. 2-5 in the present form would lead to some problems. For example, there are different kinds of streams incident with the node (3) - mass streams, electric energy streams and the heating gas (12). As we try to set up the single-component balance (only one balancing equation around every node), we must separate streams according to the kind of the stream. The final graph representation of the balancing flowsheet is in Fig. 2-6. The original graph breaks into two parts which have the only node common - the environment (the environment node is not shown in the Fig. 2-6 explicitly). It is also worth mentioning the stream 12 which is used as the fuel in the node 3. This stream can't be taken into account in the mass balance of the node 3, so that the direction of this stream is from the node 4 to the environment.
14
Material and Energy Balancing in the Process Industries
13 2
3
4
~.
l l 212 7
5
/'@,
8 v
Fig. 2-6. A balancing graph after decomposition
Nodes in balancing flowsheets can be classified in several groups. The most common are nonreaction nodes. Typical representatives are distillation and absorption columns, heat exchangers or pipe junctions. Pipes are usually represented by arrows, but in some special situations pipes can be viewed as nodes. Examples here are balancing heat losses from the pipe or dynamic balancing flows of a compressible fluid in a distribution network. Special types of nonreaction nodes are so-called splitters with two or more outgoing streams of the same composition, temperature, etc. Some unit operations can be split in two or more fictitious nodes. For example, heat exchangers are usually balanced as tube and shell sides connected by a fictitious stream which represents the heat flux in the exchanger. Reactors are nodes where chemical transformation occurs. To maintain the conservation law, the fictitious streams representing sources or sinks of reacting components going to or from the environment can be defined. It is also possible to eliminate the fictitious streams by an algebraic procedure expounded in Chapter 4. Separate units (such as storage tanks) where the material is only stored (and the inventory can be measured) can be called inventory nodes. They are each connected by a fictitious stream (accumulation) with the environment.
Chapter 2 - Balancing in process industries 2.3
15
BALANCING VARIABLES AND DATA PRE-PROCESSING
Process variables which characterise process streams are of different nature (volume flows, temperatures, composition, pH, electric conductivity, etc.). It is important to transform the primary data to so-called balancing variables. The system of balancing variables must be consistent as concerns the physical dimensions of balancing variables. In general, the balance can be set up in extensive quantities, as mass, or in intensive quantities which are related to a unit of time. In the second case the extensive quantities are divided by the length of the time interval and so-called mean integralflowrates are created. In the limit (for short intervals), they can be regarded as 'instantaneous' and conversely, the former (extensive) as time-integrated. If also energy is being balanced, the streams can comprise 'net energy streams' such as in Fig. 2-1. The other streams represent material flow. The flow of energy in a material stream can be expressed as product of the (instantaneous or integrated) mass flowrate and energy per unit mass. The relevant part of the energy associated with the material is its enthalpy; thus the energy factor is specific enthalpy. In balancing several chemical components, the factor is component mass/total mass, hence the mass fraction of the component. In this book, we prefer the mass system of variables (mass, specific enthalpy, mass fractions). Nevertheless, also the molar system is worth mentioning. The molar system is widely used in chemistry and classical chemical thermodynamics. Based on the elementary idea that matter is composed of molecules, a conventional number of molecules is taken as a unit; traditionally (and later precised for scientific purposes), it is the number of molecules in 32 grammes of oxygen 02, which equals 0.602x1024 (Avogadro's number). This quantity of matter is called mole, or g-mole more precisely. Then 1 0 3 g-moles (1 kg-mole) is denoted as 1 kmol in the system of units consistent with 1 kg as unit of mass. Let generally a chemical species X be assigned chemical formula E a F b G c ... where E, F, G, ... are atoms (atom species) constituting the molecule, with atom masses (atomic weights) M E , MF, MG, "'" , respectively. Then the quantity Mx = aME + bMF + cM C + ... represents the number of kilogrammes in 1 kg-mole of species X (thus 32 kg for X = 02 ). Mx is called the mole mass (molecular weight) of species X or, having been derived from the chemical formula, its formula mass. Its physical unit is kg kmol -~. The molar quantities in chemical thermodynamics are related to unit mole. Thus i f / ) x is specific enthalpy of species X (that of unit mass of the species) then the molar enthalpy equals
Material and Energy Balancing in the Process Industries
16 m
Hx - Mxtlx ; m
if/Qx is evaluated in J kg -1 and M x in kg kmol -~ then Hx is in J kmol -~. [Attention: Classical thermodynamical tables use frequently 1 g-mole as unit; then the numerical values have to be multiplied by l0 3 to have the quantity per 1 kmol.] In a mixture of several components (A, B, C, ... ), we can introduce the m e a n mole mass M-
x A M A + x B M B + x c M c + "'"
where XA is mole fraction of_component A etc. If/4 is specific enthalpy of the mixture, its molar enthalpy H equals H
-
MH
.
In Table 2-1 are summarised the balancing variables for the two systems, making each of them consistent. The generic symbols made use of in this book will later be written with indices such as mj for mass flowrate in j-th stream or y~, for k-th component mass fraction in j-th stream. In the last column, in addition to heat or (mechanical) work also electric energy can be considered. Tab. 2-1. Consistent systems of balancing variables Mass system Generic symbol
a
m
!
Quantity Unit
mass fraction
mass kg
specific enthalpy J kg -I
heat, work
specific enthalpy J kg -I
heat flow rate, power W
J !
Quantity Unit
mass flowrate kg s ~
mass fraction Molar system
O
Generic symbol Quantity unit Quantity Unit
number of moles
mole fraction
kmol s-t
heat, work
J kmol -~
kmol mole flowrate
molar enthalpy
mole fraction
molar enthalpy J kmol ~
heat flow rate, power W
i !
Chapter
2 -
17
Balancing in process industries
In the case of energy balancing the requirement of consistency means not only the system of units, but also the consistent system of zero-levels for enthalpy, especially for reacting systems. All these problems will be dealt with in next chapters of this book. The transformation of primary variables to balancing variables is a part of data pre-processing which precedes the balancing proper. Data pre-processing begins with calculating basic statistics, as integration of flows or averaging of other process variables in the selected time interval. After that balancing variables are calculated from pre-processed data. This step can range from basic mathematical operations as multiplication of the volume and density to obtain the mass, to calculation of specific enthalpy of streams which can be based on very complex thermodynamic correlations. A special sort of data pre-processing are so-called compensations of instrument readings. Typical example here can be the compensation of orifice for the temperature and pressure which depart from values supposed when designing the instrumentation. In practice we can often meet with the situation when underlying data belong to different systems of units which can be even inconsistent. The information about composition can be in grammes per litre, the composition of gases can be based on the dry gas, etc. The original data must be further recalculated to the specific consistent set. Consistent composition variables are mass fractions in the mass system and mole fractions in the molar system. Quite common are, however, also the component densities expressed per unit volume of the mixture. The relations among the composition variables are summarised in Table 2-2 below. Let us first summarise the definitions and notation. Ck "'" k-th component of the mixture, of mole mass Mk m ... total mass of the mixture, m k ... mass of n ... total number of moles, r/k
.-"
C k
in the mixture
number of moles of Ck
V ... volume of the mixture (m 3 ), P "'" its (mass) density (kg m -3 )
9V=m. Then mass fraction of
Ck:Y
k --
mk , m
where Y~kYk - k~ Xk - - 1 The densities are
mole fraction
of Ck'X
k -
nk r/
18
Material and Energy Balancing in the Process Industries
partial mass density of Ck "Ok =
mk
(kg m -3)
V nk
partial mole density of Ck :Ck -- -7_ (kmol m-3). v We then have the table Table 2-2. The most common systems of composition variables function of Yk Yk
Yk =
Xk
M kx k
Pk
X m. x.
p
h
Yk
Xk
Xk =
MkE Yh M~ l h [3 Yk
Pk "-
Pk
Pk MkE PhMh i h
gk Xk ~ p X Mhxh
Pk
Mk Ck
Ck ]~ C h
h
M~ck
h
Ck =
P Yk
P Xk
m~
x m~ x~
Pk Ck
h
Observe that B
X; Mh Xh = M (mean mole mass) h
and ]~ Ch --
h
p -- =
M
n
V
is mole density (kmol m -3) of the mixture. Still other composition variables can occur. For example if the mixture can be regarded as solution of components C2, C3, "-" in solvent C~, the concentrations of the former can be expressed as mass (moles) of Ck (k > 2) per unit mass (mole) of C~, say Zk. Thus for instance in the mass system k>2:
Yk
Zk = ~ Yl
(Zl= 1)
Chapter 2
-
Balancing in process industries
19
and conversely -1 Yk = Zk
1 + Z Zh h>2
the same in the molar system with x instead of y.
2.4
DATA R E C O N C I L I A T I O N
If some measured variables are redundant, the solution of the balancing problem is based on reconciliation. In this case the measured values must be complemented by the information about their precision, which characterises random measurement errors, or the accuracy, which takes into account also the systematic part of overall error. Measurement error is defined as the difference between measured and true (usually unknown) value. The errors can be classified as random, systematic gross. Random errors are unpredictable errors whose values oscillate around zero. Their existence in the measuring process is inevitable. Random errors are governed by probabilistic laws and are fully described by the probability density function. The most important is so-called normal (Gauss) distribution which is fully characterised by the standard deviation (the mean value equals zero for random errors). The square of standard deviation is the variance of the measurement. The standard deviation c can be estimated from repeated measurement of one value: s=
F /Z (xi- m)2 N
n-1
(1)
where s is the estimate of the standard deviation; xi are measured values; m is the arithmetic average of measured values and n is the number of measured values. Systematic errors have deterministic character. There are e.g. systematic errors in time, varying in some systematic manner (linear drift of zero of measurement instruments, etc.). Systematic errors can be often eliminated by the calibration of instruments, by the use of standards, etc. Gross errors (outliers) are large errors occurring from time to time as a result of inattention, measurement devices failures, unsteady state, etc. In data
20
Material and Energy Balancing in the Process Industries
measured in process plants, gross errors are important as a single gross error can invalidate all the results, disable process control systems and the like. As gross errors may be quite frequent in plant measurements, their detection and elimination is very important. In some situations we have the information about maximum measurement errors. Such maximum errors are provided by vendors of measuring instruments (sometimes as the class of accuracy). As the information about measurement accuracy must be provided in a consistent manner, the basic question concerns the relation between the standard deviation and the maximum error of measured value. The rigorous answer to this question probably does not exist. In practice we can recommend to take the standard deviation as one half of the maximum error. For more discussions about this controversial topic see (Madron, 1992). After preparing values of measured or otherwise fixed balancing variables which are available before balancing proper, there remains to specify the set of first guesses of unmeasured variables which are supposed to be the result of balancing. In the case of single-component (linear) balancing the situation is simple. The solution in this case (if exists) is unique and is obtained in the single calculation step regardless of the first guesses of unmeasured variables. If the balancing model is non-linear (all balancing except the singlecomponent one), the first guesses of unmeasured variables are required. There are several reasons to provide the best estimates of unmeasured variables available. The solution of a non-linear balance is based on an iterative solution of the system of equations. If the starting data set is far from the final solution, the number of iterations can be high or the iteration process may diverge. It is also known that there exist multiple solutions of which only one is reasonable. The situation is even more complicated in redundant systems with some unobservable variables; such situations will be discussed more throughout the book. To summarise, it is worthwhile to spend some effort in providing good estimates of unmeasured variables in non-linear balancing.
2.5
C L A S S I F I C A T I O N OF VARIABLES
This section deals with classification of variables which has close relation to solvability of the balancing problem. Let's start with some simple examples of single-component balance shown in Fig. 2-7.
21
C h a p t e r 2 - Balancing in process industries
s
ti
,"
2
a}
b) tI ff 2
.3 ....
"-, 93 ~'.,~7
c)
d)
Fig. 2-7. Balancing graphs - classification of variables measured flow; .......... unmeasured flow
Graph 2-7a represents one balancing equation around one node. There is also one unknown flow which can be calculated from the equation. The system is just solvable and the unmeasured flow is observable. The two measured flows are nonredundant. In graph 2-7b all three streams are measured. The system is redundant as one of the streams need not be measured and could be calculated. All three streams are redundant but the degree of redundancy is only one (as only one measurement is more than needed to make the system uniquely solvable). The flows in a system with all streams measured will not probably be consistent with the balancing model (the sum of inputs will not equal the sum of outputs). This problem is solved by reconciliation which means adjustment of flows to meet the overall balance. In graph 2-7c there are two unmeasured streams. The problem (one equation and two unknowns) is still solvable, but the solution is not unique. We say that the two unmeasured flows are not observable (they are unobservable). The only solution of this obstacle is to complete the measurement (at least one more stream must be measured to make the system fully observable). In practice we can meet with even more complicated situations - see Fig. 2-7d. Streams 1, 2, 4 and 5 are measured and redundant (one stream can be calculated from the others). Stream 6 is measured, but nonredundant. Streams 3 and 7 are unmeasured and observable. Streams 8 and 9 are unmeasured and unobservable. The general classification of balancing variables is presented in Fig. 2-8. Anyway, we can see that even in a relatively simple flowsheet with the
22
Material and Energy Balancing in the Process Industries
most simple balancing model (single-component balance) the situation starts to be a little bit difficult to interpret. variable
I
J
measured
1
( unmeasured )
(c~
(fixed)l
just determined1 ( redundant I [ observable I (unobservable I Fig. 2-8. Classification of variables The problem of solvability of balancing systems is usually solved in chemical engineering literature by the concept of degrees of freedom. Every balancing node (or unit operation) has its own number of degrees of freedom which is the difference between the number of variables and the number of equations among them. Full solvability of such a node is achieved by specification of some variables. The number of degrees of freedom of the whole system is the sum of degrees of freedom of individual nodes corrected for variables common to neighbouring nodes. This approach is useful in education of chemical engineers and may play some role in balancing in the stage of the design of new processes. For general case with possible redundancy this approach is difficult to apply. Throughout the present book the analysis of solvability and classification of variables is based on more general approach - the detailed analysis of the system of balancing equations or on the analysis of graphs in the case of single-component balance.
2.6
DATA C O L L E C T I O N AND PROCESSING
If someone meets with the need of setting up the balance of some process based on one set of data, the problem of data collection seems to be relatively simple and straightforward. The major problem usually is obtaining thermodynamic properties of streams in the case of energy balance. A different situation can be met in balancing used in daily operation of process plants. Typical applications here are
Chapter 2- Balancing in process industries
23
daily mass and utilities balancing for accounting purposes monitoring of heat recovery systems monitoring of operation of chemical reactors regular balancing of separation systems balancing as a part of control of processes. If the balancing is done on regular basis, the data collection and processing must be well organised. The experience in this area shows that the data collection can be hardly based only on manual inputs. The systematic use of process control systems and process databases provides the way of efficient solving of this problems. The modem process information system is shown in Fig. 2-9. The basis of the whole system is the core database of process variables. Typical variables which are stored in such database are flows, inventories, temperatures, laboratory data, etc. The other data needed for balancing are in a databank of physical properties needed for setting up energy balances. The system is based on a Local Area Network (LAN) which makes possible the use of the database by other software and plant staff (clients of the information system). The data input to the core database can be from Distributed Control Systems (DCS), laboratory systems or other process databases. In practice also the manual entries must be available as DCS are usually not available in all plants of the company. DATA INPUT
(communication with ~ DCS systems
//
,,/ [HISTORYJ ,"
importfrom I ( external databases
/Laboratory Labc ]
N,.
~
manual input
e core of a pro (Database of process] I~ variables )
.
/
(
( data ] ~
)
(Physicalproperty~
~
datal~ard~ " J . ~
~
QEmissionsreporting)
APPLICATIONS
Fig. 2-9. Balancing as a part of a plant information system
)
~
x,,,N
~/ r _" , [PLANNINGJ
I REPORTING)
24
Material and Energy Balancing in the Process Industries
Above the core database work so-called applications where belong also balancing systems. They usually import data from the core database, make data pre-processing and the balancing calculations proper. After that, balancing results are checked by the administrator of the balancing system for correctness and the results are stored in a special database. Balancing data are from this moment available via the LAN to all plant personnel and also to other information systems. The raw balancing data are usually presented to users in well shaped form of reports highlighting the most important results of the balance. Such an information system must be integrated, which means that the individual users of the database (applications) know where the relevant data are and are able to use them.
2.7
RECOMMENDED LITERATURE
Madron, F.(1992) Process Plant Performance. Measurement and data processing for optimization and retrofits. E. Horwood, New York Mah, R.S.H. (1990) Chemical Process Structures and Information Flows. Butterworths, Boston Reklaitis, G.V. and D.R. Schneider (1983) Introduction to Material and Energy Balances. John Wiley, New York
25
Chapter 3 MASS (SINGLE-COMPONENT)
BALANCE
Single-component balancing means setting-up the balance of one quantity obeying a conservation law; one balance is set up around each node. In chemical technology, it is the total mass (possibly the sum of masses of individual components of a mixture) that remains conserved in any process. Another example is the conservation of electric charge expressed as First Kirchhoff' s Law for (direct-current) electrical networks. It is also possible to consider thebalance of one selected chemical element (irrespective of in what chemical component it occurs), or also of a component not participating in any chemical reaction. This chapter deals with mass balancing. The reader is recommended to peruse Sections A. 1-A.4 of Appendix A. For the necessary notions of linear algebra, see Sections B. 1-B.8 of Appendix B.
3.1
STEADY-STATE MASS BALANCE AND ITS GRAPH REPRESENTATION Generally, the mass balance of a unit (node) reads
Z mj in.Z mj - out
an
(3.1.1)
an .I
h.
node n "k
Fig. 3-1a. Node balance
"~} (mj)~ Jr"
26
Material and Energy Balancing in the Process Industries
where mj is (possibly integral or integral mean) mass flowrate of j-th stream, 'in' means input, 'out' means output streams j; an is increase (per unit time or per period) of accumulation in the (say, n-th) node. A 'steady-state' balance means formally a n = 0. With the above interpretation of an, the change in accumulation (holdup) is then neglected. It is also possible to regard a n as a fictitious rate of mass flow directed outwards; then a n becomes one of the output flowrates mj and the RHS in Eq.(3.1.1) becomes zero.
an (mj)i" {
(mj)out
node n
Fig. 3-lb. Accumulation stream regarded as output stream
The fictitious flowrate a n can be positive or negative. In a system of units n ~ N u (set of units) connected by streams j ~ J (set of streams), the (formally steady-state) balances can be written in the form Z Cnjmj = 0
j~J
(n ~
N u)
(3.1.2)
where Cnj = 1 if stream j is input into node n Cnj = -1 if stream j is output from node n
(3.1.3)
Cnj = 0 if stream j is neither input nor output. The notation ~ means sum of terms j over set J, independent of the order in the summatioJ~.JThis kind of notation will be used henceforth for convenience, as in further analysis the sets will be re-arranged in different manners. Also the number of elements of a (general finite) set M is independent of the order and will further be denoted by [ M I . Recall now Appendix A. Clearly, whatever be the index orders the matrix C of elements Cnj is the reduced incidence matrix of an oriented graph (say) G. The set of arcs of G is J and any arc j ~ J is incident to one node n ~ N u at least (Cnj ~ 0), to two,such nodes at most. Let us now introduce the node n o in the
27
Chapter 3 - Mass (Single-component) Balance
following manner: the other endpoint of any arc j ~ J that has only one endpoint in the set N u of units, is no. Thus for example the balancing scheme
I
Fig. 3-2a. Balancing scheme
is completed to a graph
.
-
.
no en
l
-'x..
-•set
Nu of units
Fig. 3-2b. Graph of the balancing scheme
Clearly, the streams incident to node n o , according to the direction, either represent a material supplied to the system, or produced by the system as a whole; hence node n o is called the node environment. But observe that formally, also the fictitious streams such as in Fig. 3-1b (a n) are arcs incident to node n o . We thus have identified the graph G[N, J] whose node set is N = N u u {no} ; {no} m e a n s s e t of one element n 0.
(3.1.4)
28
Material and Energy Balancing in the Process Industries
A natural requirement is that G is connected: any node (unit) n attainable by a path, thus also by a sequence of (arbitrarily oriented) arcs at node no; otherwise certain subsystem of units would have no input output, which is technologically absurd. The immediate consequence system of equations (3.1.2) is, by (A.7 and 8) rankC = I Nu I
~ N u is starting and no for the
(3.1.5)
where IN u [ is the number of elements of set Nu; hence the matrix C is of full row rank. If we introduce some orders of elements n s N u and of elements j ~ J, the system (3.1.2) reads Cm = 0 ;
(3.1.6)
here, m is column vector of components mj (j e J), an element of t J l -dimensional space (say) q/'. The set of solutions is the null space KerC of matrix C, a vector subspace of q/', of dimension I J I-INn I. Clearly, the system as a whole has at least one input and one output, and the graph G contains a circuit, hence IJI > INul ;
(3.1.7)
see (A.3), with [Ni - I Nu I + 1. Consequently (and of course), there are always nonnull solutions to Eq.(3.1.6). A correctly written technological scheme (graph) has to satisfy certain other natural requirements. The equation (3.1.6) has, by (3.1.7), always a nonnull solution (m~:0), but it can still happen that certain mi is uniquely determined as mj = 0; such stream is then, in effect, absent. Let us consider first an arc (stream) jl ~ J that lies on a circuit of the graph G; for example
29
Chapter 3 - Mass (Single-component) Balance
Fig. 3-3. A circuit
(recall that the notion of a circuit is independent of orientation). It is then easily shown that if vector m (of j-th component mj) is a solution then if a is arbitrary, there exists always a solution m such that mj, = r~j, + a. The idea of the proof consists in adding a fictitious circulation a along the circuit as indicated in Fig. 3-3; in any of the node balances, the circulation term cancels and all the balance equations are again obeyed. Conversely let arc J2 separate the graph, thus J2 lies on no circuit according to the terminology of Appendix A; then if m is an arbitrary solution, we have uniquely mJ,_= o. The conclusion follows formally from (A.9)-(A.13), where Arcd stands for C (3.1.6). We can also imagine Fig. A-7 as an example. More generally, the graph G is decomposed m
./'2
Fig. 3-4. Arc J2 separates the graph The node n o (environment) belongs to, say, subgraph G1, while G2 is connected by just one stream with G i" when balancing G2 as a whole, the input/output results mi_, = o. Technologically, such case is absurd; the units of G2 would be constantly out of operation. For a correctly written technological scheme, such cases are precluded.
30
Material and Energy Balancing in the Process Industries
In what follows, we shall always suppose that the equation (3.1.6) has some solution in such that mj ~ 0 whatever be j ~ J (and even mj > 0 if j is not a fictitious accumulation stream).
Remark In mass- and energy balancing problems can occur the case when two or more separate plants (systems of units) cooperate via certain streams of energy from one plant into another.
energy stream Fig. 3-5. Cooperating plants
Thus in Fig. 3-5, the input/output streams into/from separate plants G~ and G 2 are incident to environment node no; in addition the plants G~ and G 2 are connected via certain energy stream(s), and some energy stream(s) can connect directly G 2 with n 0. We can obtain connected graph G whose node set consists of Nu~ (units of G1), Nu2 (units of G2), and n 0. The arc set J of G consists of: arcs between the units of G~ , arcs between the units of G 2, and the arcs connecting G~ and G 2 with environment node as drawn. In the set of mass- and energy balance equations as considered later in Chapter 5, we can take the whole G[N,J] as the graph of material streams. On the other hand, the mass balances of G1 and G2 are independent. Indeed, with reduced incident matrices C 1 and C2, respectively, we have the balances (3.1.2) thus (3.1.6) C~m~ = 0
and
Czm 2 = 0
(3.1.8)
w h e r e m I and m 2 are the respective vectors of mass flowrates. This corresponds
to a partition of the (full) incidence matrix of G
Chapter 3- Mass (Single-component) Balance no
~1 ~2
Nul
C1
Nu2
31
(3.1.9) C2
Here, the row vectors c~ resp. o~2 have nonnull elements (_+1 according to the orientation) in the columns i~, j~, k~ resp. i2, J2 according to Fig. 3-5. The void fields are zeros, because no arc incident to some node n ~ Nu~ is incident to any m ~ Nu2 . AS a consequence, we can analyze the two mass balances (3.1.8) separately. The corresponding full incidence matrices are
C1
N,2
/~176 C2
(3.~.1o)
Nu2
The reader can certainly imagine the case where there are more than two cooperating plants interconnected by energy streams only, with arbitrary numbers of streams connecting the plants with the environment. We obtain again a partition such as in (3.1.9), with several matrices C~, C 2 , .-. and row vectors ~ , 0~ 2 , "'" . Each of the matrices (3.1.10) is that of a connected graph (node no is formally split into two or more environment nodes). If we delete node n o and the incident arcs i 1, j~, k~, i 2 , J2 in Fig. 3-5, the graph G becomes disconnected into two separate parts G~ and G2. In graph theory, a node n o having such property is called cutnode of G. Conversely let us have a graph G, with reference (environment) node n 0. We perhaps don't know that the mass balances can be separated. The possibility is easily verified. We delete node no and all the arcs incident to n o. If the graph is disconnected then n o is a cutnode and the partition of the remaining set of nodes determines the cooperating plants; generally, they can be more than two.
3.2
MORE ON SOLVABILITY
3.2.1
Partition of variables and equations
In the set J of arcs j thus of variables mj, let us assume that certain variables have been fixed as (say) mj, +" let J+ be the corresponding set of arcs, j0 _ j _ j+ the remaining subset. Generally, the values m.+ j can be certain measured values, or also certain target values required when designing the plant or otherwise. Making abstraction from the way how the m~ have been determined, we see immediately that the set of equations (3.1.2)
32
Material and Energy Balancing in the Process Industries (n ~ Nu)
jeZ joCn.m. J J + j~Z j+C.m nj + j .-0
(3.2.1)
in variables mj (j e j0) can have generally an infinity of solutions, or also no solution; in a special case, it has just one solution, i.e. a unique subvector of components mj (j e j0) obeying (3.2.1) whatever be the fixed m~. In the first case, the system is undetermined, in the second overdetermined. The special third case where the system is just determined will be examined in more detail in Section 3.5. In the second case, there are certain conditions the variables m~ have to obey so as to make the system (generally not uniquely) solvable. If so, certain variables mi (J e j0) are uniquely determined by the equations, certain other still not in general. Let us analyze the solvability in more detail. When restricting the graph G to arcs j e j0, we obtain a subgraph (say) G~ its reduced incidence matrix is of elements Cnj where n e Nu and j e jo. The subgraph is generally not connected; it can even contain isolated nodes, not incident with any arc j e j0. Example:
Jl
-~ G,
no ~
li .
.
j
i
E: .
a
-:
! ,,,," k
.
J2
b
Fig. 3-6. Fixed and unknown streams j e J+ (fixed) j ~ jo (unknown)
0
G3 O
~t |
1i
G~
! !
O 0 G1
1 | 1i
.,o
1!
O 0 G2
|
1 1!
0
G4 Fig. 3-6a. Graph of unknown streams in G
<)
,, ~o
]
,s"
~,-'""k
Go 5
Chapter
3-
33
Mass (Single-component) Balance
Let G o (k - 1, ..., K) be generally the connected components of G o ( K - l means that G o is connected), with node sets Nk and arc sets jo; in Fig. 3-6a, K - 5, three components are isolated nodes, and for example in G ~ N 5 - {a, b, c} and jo 5 - {i, k}. With a corresponding rearrangement of rows and columns, let C o be the f u l l incidence matrix of G o , C~ a block of the f u l l incidence matrix of G, restricted to nodes (rows) n ~ Nk and arcs ( c o l u m n s ) j ~ J+. Thus for k - 5 in Figs. 3-6 and 3-6a i
k
-1 CO 5 -
a
1 -1
b
1
c
and .....
j,
j2j'
1 C +5 -
l .....
-1
a
b
1 1
c
-1
where the void fields are zeros. Indeed, with the subset N s - {a, b, c } of nodes are incident the unknown streams (arcs) i, k (~ jo) and the fixed streams Jl, J2, j ' , l (~ J+), the other are nonincident. (For convenience, we have ranged the latter streams as written after one another.) The streams Jl, J2, l have the other endpoints in other subsets N k. Observe that the two matrices correspond to the balances of nodes a, b,c mi
- m + j,
+ m .+ Jl
m i - m k
-0 =0
+ m + J2 + m j+, -
mk
m l+ m O
which can be written in the form
c o (mi
+ C~m+-O
mk
where m + is the vector of all the fixed m~.
34
Material and Energy Balancing in the Process Industries
Generally, let us partition the vector of unknown streams into subvectors m k (k - 1, -.-, K). Here, m k is the vector of components mj where j ~ j0; thus in the above example, m 5 = (mi, mOT. Observe that some j0 can be empty; then m k is absent. Let further in + be the vector of fixed components m~ where j e J+. Recall also thatthe balance (3.1.6) thus Cm - 0 is equivalent to the equat_ion Cm = 0 where C is the full incidence matrix of G; indeed, the row n o of C is linear combination of the rows of C. Thus the system (3.2.1) is, with the above partition, equivalent to k - 1, ..- , K:
C ~ m k + C~ m + - 0
(3.2.2)
because nodes n ~ Nk can be incident only with arcs j ~ j0 and some j ~ J+. By the connectedness of each G ~ just one (arbitrary) row of C o is linearly dependent, equal to minus sum of the remaining ones; recall that C o is the full incidence matrix of G ~ If G o is an isolated node then j0 = Q and we put, by convention, C o rnk = 0 thus the equation reads C~ m + - 0.
3.2.2
Transformations
Let us apply the operation 'merging of nodes' to each subset N k of nodes of our graph G. Let G* be the reduced graph obtained in this manner. Thus with Fig. 3-6 we have
Jl
G1 Fig. 3-7 Reduced graph
where for example node ~ represents the three merged nodes a, b, c of G~ observe that arc j ' has been deleted by the merging. The graph G* is connected (as G is), hence its full incidence matrix (of K rows) is of rank K-1. On selecting an arbitrary reference node in G*, let A* be the reduced incidence matrix. The merging of nodes corresponds to the summation of rows in the original full incidence matrix. In particular the arcs j e j0 (k - 1, ..., K) are deleted. But it can
Chapter
3 - Mass (Single-component) Balance
35
happen that in addition certain arcs j ~ J+ are also deleted; for example the arc j ' in Fig. 3-6. Let thus J* ( c J§ be the arc set of G*; then matrix A* operates on columns j ~ J* and let m * be the subvector of m § of components mj , j ~ J* . We thus have A* m* - 0
where
rankA* - K - 1
(3.2.3)
is full row rank; of course if K = 1 then the equation is absent. Consider again the example in Fig. 3-6. According to Fig. 3-6a, for instance the subgraph G O of G O is an isolated node. The balance of the node involves only arcs j e J+ (fixed) and remains unaffected by the merging; it becomes one of the scalar equations (3.2.3). The unknown variables mj (j ~ jo) occur only in the balances of 'nontrivial' subgraphs G Osuch as G Ocontaining the nodes a, b, c; see above. The merging represents summation of the node balances giving m +. J, + m.+ J2 - ml+ - 0 which is the node ~ -balance according to Fig. 3-7; it is also one of the scalar equations (3.2.3), where stream j ' is absent (deleted by the merging). Having replaced the node c -balance by that of node ~ (obtained by the summation), the remaining balances (of nodes a and b) read mi mi- mk
+
m .+ J1
-
+
m .+ J2
m j+ ,
- 0 = 0
which can be written in the form
B5 ( mi mk
+ c5 = 0
where c 5 - A 5m + ;
here, A 5 is the submatrix of C; where the third (c) row has been deleted. Taking c as reference node in G ~ B 5 is the reduced incidence matrix of G ~ Clearly, the original three balances are equivalent to the three new ones; in addition if the first (node g:) balance is satisfied then the remaining two equations are (in the present case even uniquely) solvable in m i and mk. Let us generalize. Let us arrange the subgraphs G Oin the manner that G ~ ---, G ~ (K' < K) are those subgraphs which are not isolated nodes; observe that if G Ois an isolated node, the corresponding (scalar) equation (node balance) in (3.2.2) becomes automatically one of the node balances of the reduced graph G*. Having selected a reference node in each G O for k - 1,-.-, K', let Bk be the reduced incidence matrix of G ~ thus B k is of full row rank; let further A k be the corresponding
36
Material and Energy Balancing in the Process Industries
submatrix of C~, with the reference-node balance deleted. Then the system (3.2.2) is equivalent to k-1, and
..., K'"
Bkmk,+mCk-- 0 - 0
where c k - A k m+ } (equation absent if K = 1)
(3.2.4)
which is a system generated by elementary operations (summations of rows). The subsystem (3.2.4)~ is (generally not uniquely) solvable in variables m k whatever be the e k. Hence the whole system (3.2.4), thus (3.2.1) admits some solution if and only if either K = 1 (G o connected), or the subvector m* obeys Eq.(3.2.4) 2. We also see that the natural requirement is
K-1
< I J*l
if K > 1 ;
'
(3.2.5)
otherwise, by (3.2.4) 2, the only solution in m* would be m* - 0, a case precluded by our convention (see the last paragraph of section 3.1 before Remark). Observe finally that with J' - J+- J*
(3.2.6)
(the set of arcs j e J+ deleted by the graph reduction), the values m.+ for j e J' J are not subject to any condition; they are arbitrary. Let now 1 < k < K' and let m ~ be some solution of the k-th vector e q u a t i o n ( 3 . 2 . 4 ) 1 . If m k is an arbitrary solution, we must have Bk(m k - m ~ = 0 .
(3.2.7)
Now G~ is connected hence denoting y - m k - m ~ the equation in y has the same properties as Eq.(3.1.6). Making use of the same arguments as in the paragraphs below the latter equation (with Figs. 3.3 and 3.4), we conclude" If j e Jk~ then the j-th component yj of y - m k - m 0k is uniquely determined as yj - 0 if and only if arc j sepa.rates the subgraph G ~ This is also a necessary and sufficient condition for the uniqueness of mj in the solution m k. Given the connected graph G and the partition of the arc set J into j0 and J+, also the subgraph G o and its components G o are uniquely determined, as well as the reduced graph G*, hence the subsets J* and J' of J+. By each G ~ also the arcs separating the subgraph are uniquely determined. So the variables (arcs j) can be classified: for j e J+ into j e J* and j e J ' , and for j e j0, thus j e Jk0 for some k - 1,--., K' into those which separate G o and those which lie in some circuit of G o, hence also in some circuit of the whole G~ conversely if an arc lies in some circuit of G ~ it must lie in some circuit of a connected component G ~
Chapter 3
-
Mass (Single-component) Balance
3.3
OBSERVABILITY AND R E D U N D A N C Y
3.3.1
Definitions and criteria
37
In Section 3.2, we have classified the variables by the criteria of solvability. The classification is purely algebraic, but the names given in practice to the respective properties are those introduced in the theory of measurement and control: observability and redundancy. The notions were introduced in a more general context; restricting oneself to steady-state models one considers a system of algebraic equations (constraints) and one assumes that certain variables have been measured. Then an unmeasured variable is called observable when its value is uniquely determined by the measured values and the constraints. A measured variable is called redundant when deleting its measurement, it remains uniquely determined by the other measured variables (and the constraints). As a consequence the measured redundant values, if erroneous, have first to be adjusted so as to obey the constraints; only then the observable unmeasured variables can be computed. Despite of the apparent clarity, this verbal formulation is rather vague in general; see later comments in Chapters 5 and 8. In the present case of mass balance equations, a rigorous mathematical definition is possible. Irrespective of how the values m~ have been fixed, we call the j-th variable m e a s u r e d if j ~ J+, unmeasured if j ~ j0 in (3.2.1). Then an unmeasuredj-th variable is called observable if, whenever there exists a solution to the system (3.2.1), the j-th component mj is uniquely determined by the measured values; thus if m~ is the j-th component of any other solution, we have mi = m]. A measured j-th variable is called r e d u n d a n t if, whatever be the measured vector m § such that the system (3.2.1.) has a solution, the remaining components (say) m~+ where i ~ j determine uniquely mi, +" thus if rh + is another measured vector such that the system is solvable and if mi - + - mi+ f o r a l l i ~ j , we have also rh+ j - m j+ . Using the result following after Eq.(3.2.7) we see immediatly that:
k -
1,
The j-th unmeasured variable where j ~ j0, thus j ~ Jk~ for some 9.., K' is observable if and only if arc j separates subgraph Gk~
or also
The j-th unmeasured variable is observablei f and only if arc j does not lie in any circuit of subgraph G ~ Recall that G O is the subgraph of G restricted to unmeasured streams (arcs), G o its k-th connected component, K' the number of components that are
38
Material and Energy Balancing in the Process Industries
not isolated nodes. The necessary and sufficient conditions give also a precise meaning to unobservability. An unmeasured variable that is not observable is called unobservable. Clearly, we thus have also the following special result.
The whole vector of unmeasured variables is observable if and only if all the connected components Gk~ of subgraph G o are trees (or also isolated nodes). Let us now recall the partition (3.2.6). For the j-th measured variable we have either j ~ J* or j ~ J'. If j ~ J* then mj is a component of vector m* in (3.2.4) 2. So if the necessary and sufficient condition (3.2.4) 2 of solvability is obeyed, at least one row of the vector equation contains variable mj = mj§ (with nonnull coefficient) and the corresponding scalar equation determines uniquely this mi, given the other m]~ (i ~: j). If j ~ J' then mj = m +..~is absent in (3.2.4) 2, hence arbitrary. Consequently, we have the result
The j-th measured variable (j ~ J+) is redundant if and only if j ~ J*, thus if and only if arc j is an arc of the reduced graph G*. A variable that is not redundant is called nonredundant. Thus
The j-th measured variable is nonredundant if and only if arc j is deleted by the graph reduction (merging the nodes connected by unmeasured streams). Clearly, if the arc j closes a circuit with certain unmeasured streams then its both endpoints are merged by the graph reduction, being connected by a sequence of arcs i ~ jo whose endpoints thus lie in one connected component G ~ Conversely if the endpoints of arc j lie in the same G O then there exists a path in G O between the endpoints, hence arc j closes a circuit with some arcs i ~ j0. We thus have the criterion
The j-th measured variable is nonredundant if and only if arc j closes a circuit with certain unmeasured streams (i.e. its endpoints are connected by a sequence of arcs i ~ j0). As an example, recall Fig. 3-6 where the j'-th variable is nonredundant. As drawn, all the unmeasured variables are observable. Note that if we deleted the j'-th measurement, the three unmeasured streams j', i, k forming a circuit would become unobservable. It is thus seen that the observability and redundancy are, in the case of mass balance equations, exact structural properties of the graph G of the system, and of the partition of the streams (arcs) into j0 and J+ corresponding to variables called respectively, by convention, 'unmeasured' and 'measured'. Let us add an observation concerning the redundancy. We call 'redundant' each variable (arc) of J* separately; this does not necessarily imply that also a subset of J* can be regarded as 'redundant' in the sense that the variables mj of the subset would be
Chapter 3
-
Mass (Single-component) Balance
39
uniquely determined by the remaining ones. From (3.2.4)2 it only follows that there exists a subset of (K-1) arcs (linearly independent columns of A*) such that the variables of the subset are uniquely determined by the other ones, and this number is maximum. The number K-1 (full row rank of matrix A*) is called the degree of redundancy. Not any K-1 columns of matrix A* are, however, linearly independent; consider for instance the reduced graph according to Fig. 3-7 where the columns corresponding to the parallel streams j~ and J2 are linearly dependent.
3.3.2
Classification methods and transformation of equations
The formal definitions enable us to classify the variables by graph algorithms. Basically, the classification algorithms consist in eliminating circuits containing unmeasured streams; see for instance Mah (1990), 8-2-2 and 9-1-1. As an example, let us outline a procedure that performs the classification simultaneously with transforming the equations in a manner suitable for adjustment (reconciliation) of measured variables, and computation of the unmeasured observable ones. Given is the connected graph G[N, J] of the system and the partition of the streams (arcs)j ~ J into unmeasured (j0) and measured (J+). Define subgraph G o [N, j0]. Then (a)
Decompose subgraph G o into connected components G o [Nk, Jk~ k = 1, ---, K. If K = 1 then the set of redundant variables is empty. If K > 1 then merge the nodes of each subset N k of nodes in the whole graph G. Get graph G* whose arc set is J* c J+; the arcs j ~ J* determine the set of redundant variables, those of J' = J+- J* the set if nonredundant ones.
(b)
In each subgraph G o that is not an isolated node (thus j0 :r O), find the subset Sk ( c j0) of arcs that separate G ~ Then the union S of the subsets Sk determines the set of unmeasured observable variables.
Let us notice that according to Section A.3 of Appendix A, an arc that separates a connected graph (whose deletion disconnects the graph) must lie in any spanning tree of the graph. So when searching for such arcs (subsets Sk), we can limit ourselves to an (arbitrary) spanning tree (of G~ In particular when decomposing G o into the G o, we can apply the successive procedure according to Section A.4, where the nodes of any connected component are subdivided according to their distance from a selected reference node. In this manner, if the procedure is carried out in all the details we also obtain a spanning tree (say) T k of each G o (that is not an isolated node), and the predecessors of the nodes in T k. Using this information, we can find the inverse (say) R k of the reduced incidence
40
Material and Energy Balancing in the Process Industries
matrix of each Tk, as described in detail in Section A.3; see (A.4)-(A.6) with (A.9) where Are d stands for the reduced incidence matrix B k of G o occurring in (3.2.4). The matrices R k are obtained directly, without numerical inversion. On the other hand, as shown in the last two paragraphs of Section A.3, we thus can find the set Sk of arcs separating G ~ Indeed, having decomposed
Bk = (Bk, Bk)
(3.3.1)
where Bk is the reduced incidence matrix of T k , u s i n g R k = (Bk) -1 We can transform the whole equation (3.2.4)~ (k = l,--., K') into tt
tt
m k + RkBkm k + RkAk m+-
0
(3.3.2)
where the unknown subvector m k is partitioned as corresponds to (3.3._1). The matrix R k B k is the matrix (Cij) occurring in (A.12 and 13) and computed by (A.11) with (A.10); the zero rows of the matrix identify the arcs i ~ S k . In this manner, the classification is complete; the remaining arcs determine the unobservable variables. In addition, we can obtain also the matrix Rk Ak ready for further computation (3.3.2). [Observe that computing the elements of R k Bk, we substitute n k (reference node in G ~ for n o in (A.10). The reader can easily verify that also the elements of R k A k can be computed in this manner; considering G O[N k , j0], in (A.11) we put Rink - 0 as well as Rin - 0 whenever n ~ Nk.] See the example in Section 3.4. Having completed the classification according to steps (a) and (b) above, we can make use of the additional information obtained in the described manner. First, the reduced graph G* determines, having selected a reference node, the reduced incidence matrix A*. It is the matrix occurring in (3.2.4) 2, thus in the constraint equation for the measured vector m + (in fact, only for the subvector m* of redundant variables). The equation is employed for adjusting the given values; if the components of m + have been actually measured then for reconciliation by statistical methods. Having adjusted the components of m + and on introducing the adjusted values into Eqs.(3.3.2), we can compute directly the observable components of vectors m k. In addition we thus obtain certain conditions constraining the remaining (unobservable) components of the unmeasured vector. Though unobservable (thus admitting an infinity of solutions), they are generally not arbitrary. The whole vector of solutions will lie on a 'linear affine manifold' (as the mathematicians put it), thus on a subset of lower dimension than has the whole vector space of unmeasured variables. As a simple example, imagine a straight line or a plane in threedimensional space; for example if the manifold is a straight line in space (x, y, z), parallel to the plane (x, y) in a distance z0 (but not parallel to any of the axes), the variable z - z0 is observable, but x and y are
Chapter 3 - Mass (Single-component) Balance
41
unobservable, nevertheless subjected to the condition of lying on the projection of the straight line into the plane (x, y).
.sr, s ssJ' ..-"
Z0
Fig. 3-8. Observable variable z
Interpreted in terms of balance equations, the figure represents the solutions of a subsystem (3.2.4) k where the connected component G o drawn with incident fixed streams can look like
,
..
2
x t
' k
Fig. 3-8a. Interpretation of Fig. 3-8 unknown; ~ fixed
3
j
42
Material and Energy Balancing in the Process Industries
One of the node balances has been eliminated by graph reduction (as the merged-nodes balance) and the remaining two read m 1
-
m
2
m + i -0
-
+
mj - 0
m 3 -
We set m 1 - x, m2 = y, m3 = z, a n d mj + = z 0 , 9mi§ is length of the segment on the x-axis in Fig. 3-8. But in spaces of higher dimension, there are more possibilities (not just straight lines or planes) having not individual names and defying any geometric imagination. In a more general frame, the possibilities will be examined in Chapters 7 (linear systems) and 8 (nonlinear systems).
3.4
ILLUSTRATIVE EXAMPLE Let us have graph G of a mass balance system
l; 11
7
e
i13
10 h
y
a
3
b
6/
Fig. 3-9. Example of mass balance system measured; ..... unmeasured
where the reference (environment) node n o has not been drawn. The arc set J is partitioned
43
C h a p t e r 3 - Mass (Single-component) Balance
j o _ {3, 4, 6, 7, 8, 12, 13} and J+-
{1, 2, 5, 9, 10, 11, 14, 15}.
So G~ j0] is defined. The simple figure would allow one to solve the problem by mere inspection. But our goal is to illustrate the formal procedure as outlined in Section 3.3. The decomposition of G o starts from some node, say no (environment), giving the connected component G~~ N~ - {no} , j]0 _ O (isolated node). Let us further select node a; we have successively, according to Section A.4 j~l) = -{3 } , j~2) _ {4, 6} , j(3) _ { 7, 8 } ,
N ~l) = {b } N (2) - {c, d} N (3) - {e }
(distance one) (distance two) (distance three)
j ( 4 ) _ Q~ .
We have thus determined G2~ N 2 - {a, b, c, d, e} , J2 ~
{3,4,6,7,8}
with the structure c
O r i i
i i i
"8
4!
b I
| ! |
o
a
3
b
1 1i
6
~:3d
Fig. 3-9a. Component G2~
From the remaining nodes, let us take node f; we find j(1) _ { 12 } ,
j(2)_ { 1 3 } , j(3)_
N (~) - {h) N (2)- {g}
44
Material and Energy Balancing in the Process Industries
hence we have the connected component G3~ N 3 _ {f, g, h} , J3 ~
{12, 13}
with the structure g O I I I
,, |
', 13 ! !
1
f
12
Fig. 3-9b. Component G3~
and no other node remains. We have K - 3 and let us merge the nodes in each N k. The unmeasured arcs are deleted. Let h k be the node obtained by merging N k. Then the incident nondeleted arcs are with
ill" 1, 5, 9, 14, 15 h 2" l, 5, 9, l0 (arc 2 deleted) fi3" 10, 14, 15 (arc 11 deleted).
We thus have J*= {1, 5, 9, 10, 14, 15} and J ' -
{2, ll} (nonredundant).
In this manner graph G* is defined. It has the structure
(3.4.1)
Chapter 3 - Mass (Single-component) Balance
43
14
15
Fig. 3-9c. Reduced graph G*
Observe that the subgraphs Gk~ as well as G, are determined by the original graph G[N,J] with the partition J - jo u J+ and by the prescribed algebraic graph operations; the drawings are only illustrations for the reader. Going back to the components Gk~ of G ~ let us find s p a n n i n g trees T k. G1~ is trivial (isolated node). In G2~ let us start from N~3~= {e }. Again according to Section A.4, from the two arcs j ~ jc3) incident to node e let us s e l e c t for instance in j~3): j ( e ) - 7 thus p ( e ) = c and further, in our simple example uniquely in j(2). j ( c ) = 4 thus p ( c ) - b and
j(d) - 6 thus p(d) - b
finally in J~>" j ( b ) - 3 , while p ( b ) - a is the (chosen)reference node in G2~ Hence the arc set of T 2 is {3, 4, 6, 7}, the
46
Material and Energy Balancing in the Process Industries
node set is N 2. The reader can find the tree T 2 in Fig. 3-9a, having deleted arc 8. Thus c = p(e)
7 =j(e)
()- . . . . . . . . . .
e
t~3
4 =j(c)
Ir
0
t~0
a = p(b)
3 =j(b)
---I~O
b = p(c) = p(d)
6 =j(d)
d
Fig. 3-9d. A spanning tree of G2~
The i n v e r s e R 2 of the reduced incidence matrix is found as in the example at the end of Section A.3: for each node n e N 2, the reference node excluded, we go backwards through the sequence of predecessors. We have b
c
d
e
Ab3
Ab3
Ab3
Ab3
j(b) = 3
Ac4
j(c) = 4
Ac4
R2
J
Ad6
j(d) = 6 Ae7
j(e) = 7
denoting by Anj the elements of the reduced incidence matrix, hence
R2=
b
c
d
e
1
1
1
1
3
0
-1
0
-1
4
0
0
1
0
6
0
0
0
1
7.
According to (3.3.1) we have
(3.4.2)
47
Chapter 3 - Mass (Single-component) Balance B 2 = (B2' , B2" )
} r o w s b, c, d, e
column 8
where
( B 2 ' ) -1 = R 2
and where, with the notation as above
Ab8
0
Ac8
m
B21!
0
Ad8
-1
Ae8
1
.
Recall that generally, the zero rows of R2B2" determine the arcs i ~ $2 that separate G2~ thus denoting by Cij (A.11 and 10) the elements of R2B2", i e $2 if and only if Cij = 0 in all columns j. In our special case, the only column is j = 8. We find C38=
0
G8 = -1 c68 = -1 G8 = 1
(3.4.3)
thus S 2 --{3}
is the set of arcs that separate G2~ Further, as I J3~ - IN 31 - 1, G3~ is a tree, thus T 3 = G3~ See Fig. 3-9b; we find j ( g ) = 1.3 , p ( g ) = .h , j ( h ) = 1 2 , p ( h ) - f
(reference node)
and h
g
R3 / 1 , ) 1 2 0
-1
We have directly S 3 = J3 ~ = { 12, 13 }.
13.
(3.4.4)
48
Material and Energy Balancing in the Process Industries
The classification is complete. The set S=S2uS
(3.4.5)
3= {3, 12, 13}
determines the set of unmeasured observable variables mj (j ~ S), and with (3.4.1), J* (resp. J') determines that of redundant (resp. nonredundant) measured ones. In addition, the incidence matrix of G* determines the conditions the measured variables have to obey in order to have the system solvable. Taking node h~ as reference node, the reduced incidence matrix equals (cf. Fig. 3-9c)
A* -
1
5
9
10
1
-1
1
-1 1
14
15
) -1
-1
h2
(3.4.6)
h3
and the condition (3.2.4) 2 reads m~- m5 + m9- m~0
=0
/~10- /~14- /~15
J
= 0
(3.4.7)
where fil (of components rhj, j ~ J+) is the vector of a priori fixed variables. The conditions (3.4.7) obeyed, we can substitute fil for m + in (3.3.2). We have 1
2
5
1
-1
A2
9
10
11
14
15
c 1
d
-1
e (3.4.8)
(having deleted reference node a), and
A3:/
1
2
5
9
10
11
11
14
15
-1
h
Chapter 3- Mass (Single-component) Balance
49
(having deleted reference node f). With m3 m4
m2
tt
~
m2 - (m8) m6
/ m2)
(3.4.9)
m7
m3
m13
the unmeasured variables are subject to the conditions
-1 m 2 +
m 8
+ R2A2ffl-
0
-1
(3.4.1o) and + R3A31fll -
m 3
0
according to (3.3.2) with (3.4.3), making use of the results (3.4.2),(3.4.4),(3.4.8). The whole space of unmeasured variables (unknowns) is of dimension 7. Given lh obeying (3.4.7), the set of solutions forms a (7-6=) 1-dimensional linear affine manifold (a straight line in 7-dimensional space), with the coordinates m 3, m~2, m~3 uniquely determined by the conditions (3.4.10). We can assign an arbitrary value to any one of the variables m4, m6, mT, m8, then the remaining ones are also uniquely determined by the conditions.
3.5
JUST DETERMINED SYSTEMS
The analysis of solvability applies in particular (and more simply) to systems where the set of a priori given variables' values just determines those of the remaining ones. We consider the graph GIN,J] as in Section 3.1. Denoting again by J+ the set of streams corresponding to the variables to be fixed and j 0 _ j _ j+, the partition determines the subgraph G o [N, jo]. A sufficient and necessary condition for the unique determination reads clearly G O is a tree
(3.5.1)
Material and Energy Balancing in the Process Industries
30
thus a spanning tree of G. [Recall that we assume G connected]. The subgraph G+[N,J § restricted to the arcs i ~ J+ is called the cotree of spanning tree G~ the arcs (called chords) determine certain degrees of freedom of the system (3.1.6). From a pure algebraic point of view, the mass flowrates of streams represented by the chords can be chosen arbitrarily; of course the physical condition is that of positive (or perhaps also null) mass flowrates (with the exception of the fictitious accumulation streams as in Fig. 3-1b). The number of degrees of freedom is thus D-
[JI - ( I N I
- 1)
(3.5.2)
called also the nullity of (connected) graph G; it is also the dimension of the null space KerC of reduced incidence matrix C. The choice of G o, thus also the selection of the chords thus degrees of freedom is by far not unique; only the number D is uniquely determined by G. As shown in Appendix A (A.18), the set Sp(G) of the trees G o has
I Sp(G) I
= det(CCT) "
(3.5.3)
elements; such is also the number of possible choices of the set of chords. To some extent, the selection of the chords can be controlled by our a priori idea of which values have to be fixed preferably. Let P ( c J) be the corresponding set of preferred arcs. In Appendix A, we have given two methods of finding a spanning tree of connected graph G. The selection of any new arc (called branch)j of the tree can be subjected to the condition that, as far as possible, j ~ P. So in the strategy (i)-(iii) according to Section A.5, instead of taking the minimum j ~ S we select, as far as possible, j ~ S but j ~ P (else arbitrary; taking the minimum corresponds to an ordered set with increasing preference). Then the chords remaining as J - R after the final step belong, as far as possible, to the preferred set P. Irrespective of how we have obtained the spanning tree G o, we choose a reference node n o ; in the mass balance problem, it will be clearly the environment node, thus C is the matrix in (3.1.6). We now can classify the nodes (units) n ~ N u = N - {no} according to their distance from n 0. Thus N is
partitioned N - {no} u N(~)u ... u N Cp)
(3.5.4)
where N (p) is the set of nodes of distance p, P is the maximum distance. We put N (~ = {no} and given p >_ 0 and N (p), let A (p) = {no} k.) ... k.) N (p). Then N (p+~) is the set of nodes n ~ N - A (p) that are connected by some arc j ' ~ jo with some n' E N(P); the set of such arcs j ' is j(p+l) and we have the partition
C h a p t e r 3 - Mass (Single-component) Balance
31
jo = J(~)u ... u j(r,)
(3.5.5)
of the arcs of G O (not perhaps of all the arcs of G[N,J]). In fact this is the construction according to Fig. A-11 using the fact that G O is a tree. From the theory it then follows that for each n ~ N ~p+~), there exists just one arc j ' having the other endpoint in N Cp), denoted by j(n) (~ J(P+])), and the other endpoint n ' = p(n) (~ N (p)) is called the last predecessor of n ; cf. Fig. A-8. We have j(P+l) = Q~.
3
c
6
1://
"o
',
g
i
no
: L.,
b
i~I
e IF~ ~ I
~
~I
IF ~
i
nodes
N {~
N (-~)
N (3)
Fig. 3-10 Tree G O for example jr2) = {3, 4, 5 } is the set of arcs j(n), n ~ N ~2)
Observe that the distance classification need not represent the distance classification with respect to the whole graph G. Imagine a chord connecting nodes n o and e; then also node e is in distance 1 from no and the whole classification will be different. Then also a tree obtained by the algorithm given in Section A.4 and starting from node n o cannot be G O as drawn in Fig. 3-10.
Let us have a spanning tree G o with the partition of J into jo and J+. Having fixed certain values m~+ for i ~ J+, the solution in mj (j ~ jo) is unique. Having partitioned the matrix C C
=
(B
, A)
} rowsn~
Nu=N-
{no}
(3.5.6)
columns j~ jo ie J+ the solution of Eq.(3.1.6) is m~
B-JAm +
(3.5.7)
52
Material and Energy Balancing in the Process Industries
where m ~ is vector of components mj (j ~ j0), m + that of given m + (i ~ J+) In Appendix A, we have given an explicit formula (A.4 and 5) for the inverse B -J Recall that B is reduced incidence matrix of tree G o thus in (A.5), A' stands for B. The computation is based on the knowledge of the predecessors p(n), p(p(n)) etc. and the connecting arcs j(n), j(p(n)) etc.; as an example, see Section 3.4, matrix R 2 (3.4.2). In fact, we need not compute the inverse B -~ and can find the solution directly on rearranging matrix B into upper-triangular form. The procedure is again based on the knowledge of p(n) and j(n). By the one-to-one correspondence, we have p - 1, ..., P: IJr
l -
I N( )I
(3.5.8)
hence in the first step, the partition of B (and also row-partition of A) reads, for example for P = 4 j(p)
///// / /,/,/,/
///// A
Fig. 3-1 l a. Triangularisation of matrix B, first step
where the void fields in B are zeros. Indeed, any n ~ N (p) is incident with (just one) j(n) ~ J~P), and generally with (possibly several)j' ~ J~P+~)(if p < P); each of the j ' is j(n') ~ j~p+l) for some n' ~ N Cp+l) , while n ~ N ~p) is not incident with any j" ~ J~P") where p" < p or p" > p + l , because the arcs incident to n span the distance 1. It can also happen that a branch ends the tree at lower distance from n o than P, thus some n ~ N ~p) can be incident only with one j(n) even if p < P. We can further rearrange arbitrarily the elements in each N Cp), and then re-order
Chapter 3 - Mass (Single-component) Balance
53
the set J(P) in the manner that the n-th column in J(P) is j(n); the (n,j(n))-th element of B is then the unique nonnull (thus _+1) element in row n and column subset J(P) Then each field N(P)x J(P) in B is diagonal j(p) A
r
+_1
N(p) ,
j(n) Fig. 3-11 b. Triangularisation, second step
and in addition, at the RHS of the field we have nonzero field N(P)x j(p+l), unless p = P. Below the diagonal, we have zeros in all rows of B (thus B is upper triangular). The upper-triangular format of matrix B allows one to compute successively the solutions from below. In the last group J(P), the solutions mj where j = fin) with n ~ N (P) are each given as Cnj(n)-times the n-th component of vector (-Am+). Introducing the values of these mj into the equations of rows n N (p-l), w e compute mi for j ~ j(P-l), and so on. Besides, the reader certainly knows how to manage standard operations with triangular matrix B. Example Rearranging the nodes n e N u and arcs j ~ j0 according to Fig. 3-10 the matrix C reads j(1) ,Ik
9
9
1 a N (1)
b c (2)
1 -1
,%
9
2
3 j -1 I j
j(3)
4
9
5
f g
A
9
6
7
-1 1
1
d e
N (3)
j(2)
-1 -1
-1
A
54
Material and Energy Balancing in the Process Industries
Having triangularized the matrix B, it is ready for use in a general analysis of solutions (3.5.7) with arbitrary m +. Otherwise, given m + an even simpler variant not requiring the distance classification is possible. It is based on the following properties of a tree T. Let us call endpoint of tree T any node n incident with just one arc j. Then deleting arc j and node n, we have again a tree. (ii) Any tree has at least two endpoints. [This an easy consequence of (A.3); for (ii), use induction.] Let now n be an endpoint of the tree G ~ n ~ n o, j - j ( n ) the unique arc incident to n in G ~ Then Eq.(3.5.7) with (3.5.6) reads Bm ~ - - Am + and the n-th scalar equation is (i)
Cnimj = - ~ n m + (Cnj - +1)
(3.5.9)
where c~, is the n-th row vector of A; indeed, C n i --- 0 for any i ~ j , i ~ jo. Going through the nodes n ~ N we thus can find, by (ii), an endpoint n ~: no and compute mj (j = j(n)) by (3.5.9); the solution is rhj. We delete the n-th equation and set mj - rhj in the remaining ones. We have thus deleted arc j and node n in G ~ and have again a tree with node set N - {n } and arc set jo _ {j} (unknown variables), while the set of fixed variables is now J§ w {j}. Continue in this manner so long as some unknown variable remains. Of course the former 'classifying method' provides a special sequence of such operations. Conversely, the latter sequence of nodes n and arcs j(n) determines a triangularisation of matrix B.
Remark More generally, let us consider the case where all the unknown (unmeasured) variables are observable. As shown in Subsection 3.3.1, the necessary and sufficient condition is that the connected components Gk~ ( k - 1,-.., K) of G~ j0] are all trees. According to (A.1 and 3), this is equivalent to the condition
IN! - g - - IJ~
.
(3.5.10)
If so and if K > 1, we have the solvability condition (3.2.4) 2. Having adjusted the fixed (measured) values so as to obey the condition, the unknown variables can be computed according to (3.2.4)~ where the K' matrices Bk are reduced incidence matrices of the (nontrivial) trees Gk~ Then the solutions can be computed as above, most simply using the endpoints; see (35.9) and the subsequent paragraph.
Chapter 3 - Mass (Single-component) Balance
3.6
55
MAIN RESULTS OF C H A P T E R 3
The basic idea is that of the oriented graph of a technological system subject to balancing; see Section 3.1 and Appendix A. The graph (G) contains nodes n ~ Nu, which are the individual units of the system, plus one formally introduced node n o representing the (so-called) environment; hence the node set (N) of G is the union (3.1.4). The arc set (J) consists of streams between the units, oriented according to the direction of material flow; arcs whose one endpoint is n o represent inputs/outputs into/from the system. If not stated otherwise, also in the following chapters G[N,J] represents the technological system subject to balancing, with units n ~ Nu and oriented material streams j~J. If only mass is balanced we can formally admit a change in accumulation of mass in a node as a fictitious stream oriented towards the environment; see Fig. 3-1. The conservation of mass is then expressed as Eq.(3.1.6) thus Cm - 0 where m is the (column) vector of mass flowrates and C the reduced incidence matrix of G, thus without row n 0. We assume G connected, hence C is of full row rank (3.1.5) thus INn [ where I MI denotes generally the number of elements of set M. The problems of solvability arise when certain mass flowrates mj are given a priori; see Section 3.2. The graph structure allows one to analyze the problems completely by graph operations. The arc set J is partitioned j = jo u J+
(J+ n jo = 0 )
(3.6.1)
where J§ is the subset of streams (arcs) with a priori given mass flowrates. Restricting graph G to arcs j ~ j0 (thus deleting arcs j ~ J+) we have subgraph G~ see Fig. 3-6. The subgraph is generally no more connected; it can be uniquely decomposed into (say) K connected components Gk~ of node sets Nk and arc sets Jk~ thus G0[N, j0] is union of Gk~
Jk0],
k = 1,--., K.
(3.6.2)
Recall that a connected component can also consist of one (isolated) node, with empty subset of incident arcs. Having merged the nodes of each Nk in G we have the reduced graph G*; see Fig. 3-7. The K nodes of G* correspond uniquely to the K subsets Nk of N. By the graph reduction (merging), we have deleted all the arcs j ~ jo, and some arcs j ~ J+ in addition (subset J ' c J+). The arc set of G*, denoted by J*, consists of the remaining (not deleted) arcs j ~ J+. Thus J§ is partitioned J+ = J* t,.,) J' (J* c3 J' = 0 ) .
(3.6.3)
56
Material and Energy Balancing in the Process Industries
The subgraph G ~ the decomposition (3.6.2) of G ~ the reduced graph G*, and the partition (3.6.3) are uniquely determined by G and by the assumed partition (3.6.1.) of streams. Of course if K = 1 (G o connected) then G* is reduced to one isolated node and J* = O, J' = J+. In the first step, having re-arranged the variables and equations according to the graph decomposition, we have thus rewritten the balance equation Cm = 0 (3.1.6) in equivalent form (3.2.4). The last of the equations (3.2.4) reads A'm* - 0
(3.6.4)
where m* is the subvector of mass flowrates mi, i ~ J*, A* is reduced incidence matrix of graph G*, of full row rank K-l; Eq.(3.6.4) is absent if K = 1. The equation represents the (necessary and sufficient) condition of solvability: the a priori given values of m i (i E J*) must obey Eq.(3.6.4). The vector m* is subvector of vector m +, the latter of components m i , i ~ J+ (D J*); if Eq.(3.6.4) is obeyed and if the remaining a priori given m i (i E J') are arbitrary, the whole set of balance equations is solvable in the components mj, j ~ j0 (3.6.1). Any such solution is that of the subsystem (3.2.4)~. Here, we consider the subgraphs Gk~ (3.6.2) in number K' (< K) that are not isolated nodes (thus such that Jk~ 0 ) . According to the partition of the set jo into nonempty subsets Jk~ we form subvectors mk (k = 1, ..., K') of components mj , j ~ Jk~ then the incidence matrix of Gk~ operates on mk. In each Gk~ we can select a reference node (say nk~ one of them being the environment node no); then Bk is reduced incidence matrix of Gk~ On the other hand, having partitioned the rows of the whole incidence matrix of G according to the node subsets Nk, having deleted nk~ in subset N k we obtain submatrices A k (k = 1, ---, K') operating on subvector m + of m i , i ~ J+. Schematically jo
j+ ,,,~
0 F/k
Nk
0
I I I I------I I
I I I
I
I
I I I
tlk
I
0
Ak
I I I
Then the solutions mj (j ~ j0) are exactly those of the set of equations k = 1, ..., K'"
Bkm k + s
--
0 where c k -
Ak m+
(3.6.5)
Chapter 3- Mass (Single-component)Balance
57
are constant vectors determined by m +, provided Eq.(3.6.4) is satisfied. Here, each Bk is of full row rank, hence the set of equations (3.6.5) is (not necessarily uniquely) solvable. The structure of the graph G along with the partition (3.6.1) allows one to classify all the variables (mass flowrates) with respect to the solvability; see Section 3.3. According to the standard terminology, the variables mi, i ~ J+ are called measured, the remaining mj (j ~ j0) unmeasured. This classification will be used henceforth; any a priori fixed variable of a model will be called 'measured', else 'unmeasured'. The classification of the measured variables j* follows immediately from the partition (3.6.3); if i ~ then m~ is redundant, else (i ~ J') nonredundant. The nonredundant variables are also characterized by the property that i ~ J' if and only if arc i closes a circuit in G with certain unmeasured streams (j ~ j0). The nonredundant variables are unaffected by the solvability condition. The unmeasured variables are subject to the conditions (3.6.5), given the measured values obeying the solvability condition. Some of the mj (j ~ j0) are thus uniquely determined; they are (called) observable. A necessary and sufficient condition for mj to be observable is that arc j separates subgraph GR~ where j JR~ by the decomposition (3.6.2), there exists a unique k such that j ~ Jk~ In particular, the whole subvector of unmeasured variables is observable (uniquely determined) if and only if all the subgraphs Gk~ are trees (possible isolated nodes included). An unmeasured variable is called unobservable when it is not observable (thus lies in some circuit of subgraph G~ In Section 3.3, we give a method of classifying the variables simultaneously with transforming the equations into a form suitable for explicit computation. First, the components of rn* have to be adjusted so as to obey Eq.(3.6.4). Then, by further graph operations the equations (3.6.5) are transformed in the manner that the observable variables are directly expressed as (linear) functions of the measured ones. See also the illustrative example 3.4. If in particular all the unmeasured variables are observable and no measured variable is redundant, the system is called just determined; see Section 3.5. A necessary and sufficient condition is that the subgraph G~ ~ is a tree thus a spanning tree of G[N,J]. This is a special case in Section 3.2 where thus G o is connected, the condition (3.6.4) is absent, and K ' = K - 1 in (3.6.5); thus BR - B (reduced incidence matrix of G ~ and AR = A is the remaining submatrix of C - (B,A). Instead of matrix inversion, the equation can be solved by rearranging matrix B into upper triangular form; see Figs.3-11 a,b. The set of mass balance equations provides an example of a linear model. It will be shown later in Chapter 7 that for any linear model, an analogous transformation of the equations and unambiguous variables classification is possible using the methods of classical linear algebra.
58
3.7
Material and Energy Balancing in the Process Industries
R E C O M M E N D E D LITERATURE
A pioneering work in the classification of variables is due to V~iclavek (1969). The application of graph methods to the problems of solvability of balance equations and reconciliation is then due in particular to R.S.H. Mah and his school (Mah et al., 1976); an overview can be found in Mah (1990). See also the literature to Chapter 5. Mah, R.S.H (1990), Chemical Process Structures and Information Flows, Butterworths, Boston Mah, R.S.H, G.M. Stanley, and D.M. Downing (1976), Reconciliation and rectification of process flow and inventory data, I&C Proc. Des. Dev. 15, 175-183 V~iclavek, V. (1969), On the application of the calculus of observations in calculations of chemical engineering balances, Coll. Czech. Chem. Commun. 34, 364-372
59
Chapter 4 MULTICOMPONENT BALANCING
In the previous chapter, we have dealt with single-component balances, thus with the case when only one quantity is balanced around each node. A multicomponent balance is a set of several component balances. In chemical process networks, the components are certain chemical species present in the streams as the components of a mixture. Generally, the species can be transformed into one another by chemical reactions; so their quantities may not be conserved individually. The individual balances are then not independent, as they must obey stoichiometric laws. This chapter deals mainly with 'steady-state' chemical species balancing where chemical reactions are admitted; the wording 'steady state' is explained below. Formally precise unsteady-state balancing brings some problems, mainly because the 'holdup' (accumulation) of a component in a unit is difficult to identify, due to spatial variability of the concentrations. See Section 4.7. The reader is recommended (at least) to browse Appendix B, Section B. 1 B.8 for the notions of linear algebra. -
4.1
CHEMICAL REACTIONS AND STOICHIOMETRY
Chemical species, brought into contact in a mixture, interact among themselves. The interaction can be weak (negligible in ideal mixtures), in the manner that any component of the mixture remains identifiable by physico-chemical methods. Imagine a mixture of alcohol and water, or an almost ideal mixture of nitrogen and oxygen in atmospheric air. Such mixtures are regarded as nonreacting. A class of strong interactions is called chemical reactions; imagine burning of hydrogen 2H 2 +
0 2 -
2H20
in air. Nitrogen does not participate in the reaction; it is a nonreacting ('inert') component. A chemical reaction is thus a change in the molecular configuration of the mixture. In chemistry, the molecules are represented by chemical formulae; so in the above example we imagine that two (diatomic) molecules H 2 and one molecule 02 produce two molecules H20. Perhaps the actual mechanism is more involved; only the result is the same. Preserving the idea that the chemical
60
Material and Energy Balancing in the Process Industries
individua participating in the reaction are H 2 (not perhaps monatomic H, though possibly present in an intermediary configuration), O2, and H20, the reaction can also be written as H 2 + 1/202 = H 2 0 . The information contained in both formal reaction schemes reads:
(a) (b) (c)
The reaction participants are H 2 , 02, H20 The reaction product is H20 The molecular ratio of the participants is 2:1:2 = 1:1/2:1.
Imagine further burning of gaseous sulphur. Gaseous sulphur can be present in different (polyatomic) configurations, but this information is either unknown or irrelevant; we thus regard sulphur as formal chemical species S. We then have the reaction scheme S + 02 = SO2
(s~)
and in excess of oxygen, further oxidation can take place S02 + 1/202 = S03.
(s9
Writing the second reaction in this manner makes sense if we have (as we actually do) an idea of the reaction equilibrium, possibly also of the reaction kinetics. Indeed, the reaction is 'reversible': at higher temperatures, it can proceed in opposite direction, and in an industrial sulphur burning unit, one finds only relatively small amount of SO3 in the outlet gas, although the reactivity (tendency to achieve equilibrium) increases with the temperature. On the other hand, from the standpoint of balancing proper the second reaction can be replaced by the scheme S + 3/202 = S03
(s3)
that follows from summation of the above two reaction schemes. One can imagine as well that a part of sulphur burns directly to sulphur trioxide. However formal can be the character of the reaction schemes, they must anyway obey the laws of chemical stoichiometry, based on the following elementary idea: Any molecule is composed of atoms and (disregarding nuclear reactions) the number of atoms in any reaction remains conserved. Any chemist readily checks a reaction scheme on counting, for each atom species present, the
Chapter 4 -
Multicomponent Balancing
61
sum of numbers of atoms on both sides of the scheme; thus two plus one atoms of oxygen on the LHS equal three atoms on the RHS of the reaction SO 2 + 1/202 = SO3. From the molecular point of view, the actual reaction mechanism may involve several steps in which the particles collide, deform, tear and re-group into other particle configurations. Hypothetically, the 'relaxation times' of the individual steps along with their frequency determine the reaction kinetics of the summary reaction. Macroscopically, for example the rate of the reaction SO2 + 1/202 = SO 3 can be interpreted as the number of molecules of SO3 arising by the reaction in unit volume per unit time; or, measured in conventional units, as the corresponding number of moles. Observe that when defined in this manner, the reaction rate becomes negative if the reaction as written proceeds in opposite direction. The definition of the reaction rate (say, w) depends on how the reaction is written. Consider for instance oxidation of ammonia 4NH 3 +
502
-
(rl)
4NO + 6H20 .
There are two reaction products; so as to make w independent of the choice of the product to which it is related, one defines w in the manner that 4 w resp. 6 w is the number of moles of NO resp. H20 arising by the reaction, and also 4 w resp. 5 w is the number of moles of NH 3 resp. 02 consumed by the reaction, again in unit volume per unit time. One could also write (r,')
2NH 3 + 5/202 = 2NO + 3H20
with reaction rate w' = 2 w; then 2 w' - 4 w, (5/2) w' = 5 w etc. are the same quantities as above. Physically, the process is the same; the conventional way of writing the summary reaction leads to the conventional definition of the reaction rate. Thus if, in the reaction al A1 + "-- + an An = bl B1 + ... b m B m
(4.1..1.)
Pi resp. qj is the number of moles of B i produced resp. of Aj consumed (in unit volume per unit time) then Pl
Pm
ql
w . . . . . . . . . . . . bl bm al
qn
(4.1.2)
an
is the reaction rate. As above, w < 0 means that actually, the reaction takes place in opposite direction with respect to the convention (4.1.1). In algebraic
62
Material and Energy Balancing in the Process Industries
operations that will follow later, it is convenient to write reaction (4.1.1) in the form (4.1.3)
(-a~)A~ + .-. + ( - a n ) A n + b~ B 1 + ... + b m B m = 0
thus with positive stoichiometric coefficients (b~, -.., b m) for reaction products, negative ones ( - a l , - - - , - a n ) for chemical species consumed by the formal reaction. The oxidation of ammonia is accompanied by the side reaction 2NH 3 + 3/202 = N2 + 3H20 ; also further oxidation can take place NO + 1/202 = NO2.
(r3)
The chemical species occurring in the three reactions (r~, r2, r3) are Ck = NH3, 0 2, NO, H20, N2, NO2. We can introduce the matrix S of elements vk~, which are the stoichiometric coefficients at species Ck in reaction r, written according to the convention (4.1.3). Thus in the given case r~
r2
r_ 4
-2
-5
-3/2
4 S
r3 NH3 -1/2
O2
-1
NO
.~
6
3
H20 N2 NO2 .
We call S the stoichiometric matrix of the set of reactions. [By another convention, one can also call 'stoichiometric matrix' the transpose ST.] So generally, one can consider (say) R chemical reactions, written in form (4.1.3) K
E Vk~C k = 0
k=l
( r - 1, ..., R)
(4.1.4)
among certain K chemical species C~, ..., CK, where vk~ > 0 if C k is (regarded as) a reaction product in the r-th reaction; thus if Ck = NO then Vk~= 4 in the
Chapter 4 - MulticomponentBalancing
63
first oxidation reaction (r~), Vk~ = O, and Vk~3 = - 1 in the third reaction (r 3 ). If now w r is the r-th reaction rate then (4.1.5)
Pkr : Vkr Wr
is the number of moles of species Ck produced formally by the r-th reaction; we can have Pkr < 0 either because Vk~ < 0 with Wr > 0, or also with Vk~ > 0 (formal reaction product) but w~ < 0: the actual direction of the reaction is opposite with respect to the conventional scheme (4.1.4). For example if again Ck = NO then P k q -- 4w~ and Pkr3 = - W r 3 , thus the number of moles of NO produced formally by all the reactions considered equals Pk -- 4Wq
-
Wr3
in unit volume per unit time. In fact, reaction r 3 takes place mainly in the second stage of an industrial reactor. Integrating over the whole reactor volume we have Pk - 4 W q -
Wr3
for the total production rate of Ck = NO, in mole units. Here, Wr is integral reaction rate of the r-th reaction. Generally, if Mk is formula (mole) mass of species Ck then its integral production rate equals R
M k P k - - M k ,=Z1vk~ W~
(4.1.6)
in mass units (kilogrammes) per unit time. In particular if the reactions are independent, thus if the matrix (Vk~) is of full column rank R then conversely, the integral reaction rates Wr are uniquely determined by the integral production rates; see Section 4.5, Remark. Introducing the reaction rates makes sense if we have at least some idea of the reaction mechanisms and kinetics; for example one can well suppose that in the oxidation of ammonia, the final product (NO2) is produced via reaction r~ (accompanied by side reaction r 2 ), and reaction r 3 as the last oxidation step. Otherwise, in balancing proper the reaction rates can be eliminated as shown later in Section 4.3.
4.2
C O M P O N E N T MASS BALANCES
Let us first consider the balance of one node (unit). In contrast to Chapter 3, we shall not consider the case where the accumulation of a chemical
64
Material and Energy Balancing in the Process Industries
species mass can change in time. To be less rigorous, such (possible) change is neglected; if so, we obtain the steady-state balance. Neglecting formally the change in accumulation does not necessarily imply that the flowrates, concentrations and the like are considered constant in time; only the error due to the neglection of accumulation terms is regarded as insignificant. In practice, this means in particular that nodes such as inventories are excluded from balancing. To begin with an example, the reader is requested to turn now to Section 4.6, Fig. 4-2. First, the steady-state convention requires excluding from the set of nodes subject to balancing the inventories of sulphur and produced acids; they are regarded as parts of the environment node. Now for instance the multicomponent balance of node B (sulphur burning unit)
11
elemental sulphur
combustion 3
~y
B
dry air
"~ 5
products
consists of the component balances of sulphur (S), oxygen (02), nitrogen (N2), sulphur dioxide (SO 2 ), and sulphur trioxide (SO 3 ), whose presence is admitted in the adjacent streams. If X is a component then Mx is its formula mass and Yx its mass fraction in stream i; let Ji be the oriented mass flowrate of the stream, positive for outlets (thus, e.g., J3 < 0). In the node B, we consider the two reactions (s~) and (s2) thus S -[- 0 2 - S O 2 a n d
SO2 + 1/2 02
- 803
according to Section 4.1; the reaction scheme (s3) [S + 3/2 02 -- 803] brings no further stoichiometric restriction. Let W~ and W2 be the respective integral reaction rates. Then the balance of oxygen reads Y32 J3 + y5 J5 (+ O) - M% (-W,- 1/2 W2 )
Chapter 4 -
MulticomponentBalancing
65
that of sulphur dioxide reads
(0 +) Yso2 5 J5 (+ 0) - Mso 2 ( W 1 -
W2)
and so on. The zeros (0) are written formally to recall that the component is absent in the stream (thus yx~ - 0 for X - 02 and SO 2 , and ys3o~- 0 because one neglects the presence of SO2 in the dry air from node D). Let us now generalize. The theoretical derivation of the balance can be found in Appendix C. With all the simplifications adopted, we have the balance (C.33); it has the plausible form Z outputs - Z inputs - integral production rate of species Ck, with (4.1.6). Thus formally I
R
Z y~ Ji - Mk ZlVkr W~
i=1
(4.2.1)
for the k-th species (component) Ck (k - 1, ..., K). Here, i - 1, ..-, I denotes the streams incident to the node and y~ is mass fraction of component C k in the i-th stream, averaged by (C.32); hence K
Z y~- 1
k=l
(4.2.2)
for any stream i. Further Ji is, by (C.31), the i-th stream oriented mass flowrate, with Ji > 0 for output streams. The RHS term in (4.2.1) represents the total production rate of species Ck by chemical reactions in the node. M k is k-th species formula mass and Vk~ the corresponding stoichiometric coefficient in the r-th formal reaction (C.1) thus (4.1.4) K Z Vkr C k - 0 k=l
(4.2.3)
(by convention Vk~ > 0 for reaction products). The formalism developed below requires writing all the K coefficients Vk~ even if some Vk~ = 0 for any r (a nonreacting species Ck ). Finally W~ (r = 1, ...', R) is the integral reaction rate of the r-th reaction in the node. A correctly written stoichiometric scheme (4.2.3) must leave the total mass unchanged, hence for any r
66
Material and Energy Balancing in the Process Industries
K
Z M k VR~= 0 .
(4.2.4)
k=l
With (4.2.2) thus the total mass conservation in the node I i=1
Ji -
0
(4.2.5)
is a formal algebraic consequence of the balances (4.2.1); it is the balance (3.1.1) without the accumulation term. A special case is that where the node is a splitter; as an example, see again Fig. 4-2, node S1 where the stream of dry air 2 is divided into combustion air 3 and stream 4 supplied to reactor R. Rigorously, a splitter is a node with one input and two or more outputs, say
i2
Fig. 4-1. Splitter
such that the material passing through the node is only divided into several streams, without any change in the thermodynamic state. In this chapter, let us only suppose that the composition remains unchanged. Then, whatever be
k-1,...,K Y~ = YR (say)
for i = 1, ..., I
(4.2.6)
is the same for all streams. Because, clearly, also the total reaction rate in (4.2.1) equals zero, the K balances (4.2.1) are formal consequence of the total mass balance (4.2.5), and vice versa. Hence for a splitter, the set of components' node balances can be rewritten as (4.2.5), (4.2.6), and (4.2.2). Let us now have again a system of units such as in Chapter 3, thus the oriented graph G with incidence matrix (Cnj). With the incidence and orientation convention (3.1.3) we have, for any stream (arc) i Ji -- -Cni mi
(4.2.7)
if n is the node considered above. Consequently, the balance (4.2.1) holds for any node n if rewritten in the form
Chapter 4 -
Multicomponent Balancing
n e Nu 9
67
R(n) Z y~ Cni m i + M k ]~ V k r (n) Wr (n) = 0
i~J
(4.2.8)
r= 1
for any k = 1, ..., K. The argument (n) refers to the n-th node; for a nonreaction node we have
R(n) =
0
0 with the summation
convention
Z = 0 . Here, K is the
r=l
n u m b e r of all chemical species present in the system. If species Ck is absent in stream i then y~ - 0. For any i e J we have the condition (4.2.2). The balance (4.2.5) is the balance (3.1.2), for any n e Nu. For example in Fig. 4'2 (Section 4.6) node n = B is sulphur burning unit. In the oriented graph of the system the node is incident with streams i = 3, 5, 1 1 thus CB3 = 1 , CB5 = - 1
, CB11 -"
1 , else
CBi = 0
9
In (4.2.8) thus occur explicitly only the variables (mass flowrates) m 3 , m 5 , mll and the mass fractions y~ for i = 3, 5, 11" other terms YkCBimiequal zero. In stream 3 (dry air) are present the species C 2 (oxygen) and C 3 (nitrogen) thus 9
y~=0fork;e2and3,
i
andy~+y~=
1
according to (4.2.2). Stream 5 represents combustion products, thus again the species C2, C 3, and in addition C 5 (sulphur dioxide) and C6 (sulphur trioxide); for the other k we have y5 = 0. Stream 11 is elemental sulphur (species C~) thus yl ~ = 1 and the other y~ = 0. The number of chemical reactions admitted S+O2 =SO2
and
SO2+ 1/2 O 2 = S O 3
is R(B) = 2 and with the the convention Vkr > 0 for reaction products We have
forr= 1: Vii(B) = V21(B ) = -1 , v51(B) = 1, else Vkl(B ) = 0 and for r = 2: V22(B) = -1/2, v52(B) = -1 , v62(B ) = 1, else Vk2(B ) = 0;
Wl(B ) resp. W2(B) are the corresponding integral reaction rates and M k is mole (formula) mass of species Ck. The species present in the streams incident to node B are C~, C2, C3, C5, C6, from which C3 is nonreacting (v3r(B) = 0 for r = 1 and 2). Species C4 (H20) occurring in other parts of the system is absent in the node B-balance; thus V4r(B) = 0 in both reactions and y~ = 0 for i = 3, 5, 11. The species C4-balance holds true trivially as 0=0.
In particular if node n is a splitter, the K balances (4.2.8) are reduced to (3.1.2) and (4.2.6) written for arcs i incident to node n, with (4.2.2). Let S ( c N u ) be the set of splitters, T u = N u - S the set of units (nodes) that are not
68
Material and Energy Balancing in the Process Industries
splitters; hence if n ~ T, then either the arrangement of incident streams is different from that in Fi~.4.1, or the unit is a separator admitting different outlet
Chapter
4 -
MulticomponentBalancing
69
Let us further designate
R(n) rk
(n)
-
Mkr=~_lVkr(n) Wr (n)
(4.2.11)
for k = 1, ..., K and n ~ N u , with the convention r k (n) = 0 if n is a nonreaction node. It is the total production rate of species C k in node n. Clearly, r k (n) = 0 if n ~ S. Then the complete set of balance equations (4.2.8) reads for n ~
Tu:
j~jy~
Cnj mj + r k ( n ) - 0
( k - 1, .-., K)
(4.2.12a)
and for S E
S"
j~jCsj mj
-
(4.2.12b)
0
with y ~ - y], = 0
for j ~ Js, k = 1, ..., K ;
(4.2.12c)
in addition we have the conditions K
j ~ J:
Z y~, = 1
(4.2.12d)
k=I
Recall that the equations (3.1.2) for every n e N~ are a consequence of the equations (4.2.12), because by (4.2.4) K
Z r k (n) = 0 for any n ~ N u .
(4.2.13)
k=l
Observe finally that the technology may preclude the presence of some species C k in some stream j; for example some stream can be pure water, atmospheric air, and the like. We then add to the equations (4.2.12) certain conditions fixing the composition of certain streams. We also can, for any k = 1, ..-, K, define the set E k ( c J) of streams where component Ck is (can be) present. Then the additional conditions read k= 1,...,K:
y~,-0
forj~
J-E k.
(4.2.14)
The summation in (4.2.12a) is then, in fact, only o v e r j ~ E k . In (4.2.12c) clearly Js ~ Ek implies Js c E k , and Js e J-E k implies Js n E k = O.
70
Material and Energy Balancing in the Process Industries
For example, again with Fig. 4-2, for k = 1 (species C~ = sulphur) we have E~ = { 11 }; elemental sulphur (stream 11) is completely burnt in unit B and absent in all other streams, thus y'~ = 0 if i ~ 11. For instance the set E2 of streams where oxygen (species C 2) is present contains, a.o., stream j = 2 = Js~, and of course also Js~ = {3, 4} c E 2 (oxygen is present); on the other hand Jsl ~ E4 (Ca = H20 is absent) and of course also Jsl n E 4 = O.
4.3
REACTION INVARIANT BALANCES
The applicability of the component balance equations with reaction terms is limited. It requires the knowledge of the reaction kinetics and then, the equations are rather part of a more complex mathematical model involving heat and mass transfer equations and the like. In balancing proper, the integral reaction rates W~(n) in (4.2.11) can be known only approximately or rather, they are unknown. We will now show how they can be eliminated from the set of balance equations. Let us return to the single node component balances (4.2.1). Let us designate I
n k - iZ=lY~Ji / Mk ;
(4.3.1)
it is the sum of outputs minus inputs of species Ck, in mole units. Let n be the column vector of K components nk. Then the K balances (4.2.1) read R
n =
Z W~ Sr
r=-I
(4.3.2)
where s~ is the column vector of components V l r , "'" , V K r , thus the r-th column vector of the stoichiometric matrix (Vk~); the order of the indices k is arbitrary. Let R be the vector space generated by the vectors s~. Consequently n e R
(4.3.3)
is the information drawn from the assumption (4.2.3) without explicit knowledge of the reaction rates; the assumption specifies certain admissible chemical reactions,thus certain 'degrees of freedom' for the composition changes (4.3.1) in the node. The same space Rcan be generated by an infinite number of other reaction schemes, which corresponds to the formal character of the 'reactions' (4.2.3); the actual mechanism may be quite different.
'11
Chapter 4 - Multicomponent Balancing Consider for example chlorination of methane. The admitted reactions read CH 4 + C12 = CH3C1 + HC1 CH3C1 + C12 = CH2C12 + HC1 CH2C12 + C12 = CHC13 + HC1 CHC13 + C12 = CC14 + HC1
(1)
(2) (3) (4)
representing the four possible degrees of the chlorination. The corresponding stoichiometric matrix in its conventional form reads S1
CH4
g
S2
S3
-1 1
-1
C12
-1
-1
-1
HC1
1
1
1
CH3C1
S4
CH2C12 CHC13 CC14
Clearly, for instance the second reaction can be replaced by the scheme CH 4 + 2 C12 = CH2C12 + 2 HC1 corresponding to formal summation of reactions (1) and (2), or also to summation of columns Sl nd s2; the new vector (Sl+ s2) lies in the space generated by s~, ... ,s4 and conversely, s2 = (Sl + s2) - Sl hence (Sl+ s2) can replace s2 as basis vector. T h e set of c o m p o n e n t s C k that can (but g e n e r a l l y n e e d not) p a r t i c i p a t e in the a d m i s s i b l e r e a c t i o n s is a priori fixed by the g i v e n m i x t u r e , a l o n g with their (possibly only c o n v e n t i o n a l ) c h e m i c a l f o r m u l a e , thus also the s p e c i e s f o r m u l a m a s s e s M k are given. A c c o r d i n g to (C.20), let %k be the n u m b e r o f a t o m s o f e l e m e n t E h in C k . If there are H e l e m e n t s E h p r e s e n t in the f o r m u l a e C k then the H x K m a t r i x A o f e l e m e n t s (Zhk is the atom matrix of the set o f species C k , for arbitrarily g i v e n orders of the indices. For example the atom matrix for the components Ck in the reactions (1)-(4) above reads CH 4
CH3C1
CH2C12
CHC13
CC14
C
1
1
1
1
H
3
2
1
C1
1
2
3
4
C12
HC1
2
1
72
Material and Energy Balancing in the Process Industries
Observe that each of the three rows ~h of the matrix obeys ~hSr = 0 (r = 1, ..., 4) as corresponds to a correctly written stoichiometry. Thus, e.g. c~cls4 = (0 +) 3x(- 1) + 4xl + 2x(- 1) + 1x1 = 0 ; we have (3 + 2 =) 5 C1 on the LHS, (4 + 1 =) 5 C1 on the RHS of the reaction (4). The chemical elements remain conserved.
Let us remark in this context that the H numbers CZhk, thus the k-th column of matrix A does not generally determine the species C k uniquely; consider isomery, possibly stereoisomery. Certain columns of A can be linear combinations of other columns, or even be equal and a vector space generated by the columns makes no sense physically. The chemical species Ck have to be identified a priori. Now the (correctly written) reaction schemes (4.2.3) must obey the laws of chemical stoichiometry (conservation of the elements), hence necessarily r= 1,..-,R:
As~=0
(4.3.4)
where Sr is the r-th column vector introduced in (4.3.2). Thus each s~ belongs to the null space (kernel) KerA, thus also ~ c KerA. Denoting R0 = d i m ~
(4.3.5)
(dimension of space ~ we have R 0 < K - rankA
(4.3.6)
by the laws of linear algebra (as dimKerA = K - rankA). The dimension R0 is the 'number of degrees of freedom' for the composition changes in the node, thus the number of linearly independent reactions (columns of the stoichiometric matrix) that generate the reaction space ~. The number is restricted by the condition (4.3.6), hence the RHS is the maximum possible, given the atom matrix A; in the latter case, we have ~ = KerA. On the other hand we have R 0 = 0 for a node where no chemical reaction is admitted; imagine a mixture of hydrocarbons under atmospheric conditions. Generally, the reaction space ~ w i l l depend on the information we have on the reactivity of the components. Observe that also the equation An = 0
(4.3.7)
C h a p t e r 4 - Multicomponent Balancing
73
(conservation of chemical elements) is a consequence of (4.3.3) with the inclusion R c KerA, hence it brings no further constraint. More explicitly, the result (4.3.7) follows from the mole balance (4.3.2) with (4.3.4) and with arbitrary Wr. Recall that with the interpretation of n (4.3.1), if % is h-th row of A then % n (sum of O~hknk over k) represents the number of atoms of element E h in outputs minus inputs (since ~hknk is the corresponding number in the component Ck-balance). This number remains conserved for any element E h. For example in the chlorination of methane with inputs: pure C12 and CH4, the hydrogen balance 4(ncH4 )in = 4(nEll4 )out + 3(ncn3c0out + 2(ncn2cl_,)out + (ncncl 3)out + (nncl)out is a consequence of the balance (4.3.2) whatever be the reaction rates, thus whatever be neR.
The elimination of the reaction rates consists in finding a basis of the space R. Because the given vectors s~ (r = 1, ..-, R) generate R a basis can be found by column elimination in the stoichiometric matrix S = (s,,..., sR).
(4.3.8)
Using Gauss-Jordan column elimination, by linear combinations of the columns and with possible rearrangement of the rows (thus of the K indices k of species Ck ) we can transform S ~ (S0, OR_%)
(4.3.9)
where OR_R0 is K • (R-R o ) zero matrix, and where
s0/':o /
(4.3.10)
Here, IRo is R o • R o unit matrix and B is a (K-R o ) • R o matrix; the matrix B can have zero rows when some rows of matrix S are zero. The R o columns of S o , say (column vectors) s~o constitute a basis of R. Consequently, whatever be our n R we have
n
-
~o XrSr0
r=-I
thusn-S0x
(4.3.11)
where x (x~, .. 9, XR0)T uniquely corresponds to n as the column vector of its coordinates relative to the basis (s o , ... , s % o ) of R. We can partition the vector n as corresponds to the partition (4.3.10) of matrix S O in the vector equation (4.3.11)2 _
74
Material and Energy Balancing in the Process Industries
n / n'
n -
} R~ } K-R o
(4.3.12)
and we have immediately n o - IRoX - x, and n' = Bx thus
n' = Bn ~ .
(4.3.13)
The latter result is, by the construction, equivalent to the constraint (4.3.3). Consequently, the original information (with unknown reaction rates) is equivalent to the constraint
(-B,
IK_Ro) n
= 0
(4.3.14)
w h e r e IK_Ro is (K-R o ) • (K-R o ) unit matrix. We thus have eliminated the unknown reaction rates. Observe that if in particular R o = 0 (no reaction) then the set of columns of B is empty and the matrix in (4.3.14) is K • K unit matrix; hence the condition reads simply
R0 = 0 :
n = 0
(4.3.15)
in accord with (4.2.1) in the absence of reactions. Let us have a priori fixed some order of the K components Ck. With respect to this order of the components nk of vector n, the columns of the matrix (-B, IK_R0) are rearranged giving matrix (say) D. The matrix is (K-R o ) • K and of full row rank. The final form of the constraint thus reads Dn = 0
(4.3.16)
representing a system of (K-R o ) linearly independent scalar equations. In particular D is unit matrix if R 0 = 0. Recall (4.3.6), thus K-Ro > rankA. It is also easily shown that if a species Ck is nonreacting (thus absent in the reaction schemes, with zero row in the stoichiometric matrix), we obtain also nk = 0 quite formally by (4.3.16). Generally, the matrix D is not uniquely determined; it depends on the elimination procedure. But all such matrices have the same null space R = K e r D , thus the same space of solutions of (4.3.16). As simple example, let us consider a set of esterification reactions CH3COOH
+ R n O H = C H 3 C O O R n + H20
(n = 1, . . . , N)
where CH3COOH is acetic acid (say, A) and RnOH are aliphatic alcohols (say, A n ); thus R n are N different alkyl radicals, say CH 3 , C2H 5 , CH3-(CH 2 )n_2-CH2
Chapter 4 -
MulticomponentBalancing
75
(n > 2) for simplicity. Designate further E s n = C H 3 C O O R n and W = H 2 0 . The reactions (4.2.3) read -
A - A n + Es n + W = 0
with the stoichiometric matrix S n = m
~
1
2
.......
N
-1
-1
.......
-1
-1 -1 An
~
-1 1 Es n
1
W
9
1
.
.
.
.
.
.
.
1
whose columns are clearly linearly independent. Suppose we have also admitted some reactions CH3COOR n + RmOH = CH3COOR m + RnOH
(man)
thus Es m+ A n- Es n- A m-0
;
clearly, the corresponding column equals the difference: m-th column minus n-th column of matrix S , hence is eliminated. Thus the matrix (4.3.10) can be obtained in different manners. In our simple example, it is sufficient to re-order the rows. Denoting by I N the N • N unit matrix we have for instance
76
Material and Energy Balancing in the Process Industries
r
So
IN
'
}
" vector
Es n
1, 1 , . . . , 1
W
-1,-1, ... ,-1
A
n o
9vector n' -IN
An
with the corresponding partition (4.3.12) in the vector equation (4.3.11). Observe that R0 - N; K - 2 N + 2 is the number of components. In Eq.(4.3.14) with the partition (4.3.12) we have "
1,1,'",1
'
-1,-1, ... ,-1 B
m
-I N
and the equation reads, writing the components' symbols in lieu of the vector components c
-1,-1, ... ,-1
Es~ "~
1, 1 , . . . , 1
no
O m
IN+2
IN
Es N
W A A1 ll'
AN
Given an arbitrary a priori order of components, the columns of the matrix are rearranged to give matrix D in (4.3.16).
Chapter 4 - MulticomponentBalancing
77
One can readily verify that the rank of the atom matrix A equals 3, hence K - rankA - 2 N - 1 > R - N whatever be N > 1. The upper limit (4.3.6) is not attained.
4.4
ELEMENTBALANCES
It can happen that we have no information on possible reactions in the node. Then the only constraint we can specify is the conservation of atom species (elements) in the node. This is expressed by the condition (4.3.7); the condition is equivalent to defining the reaction space ~ as maximal, thus ~-
KerA
(4.4.1)
of dimension R 0 - K - rankA
(4.4.2)
We thus admit all chemical reactions that are possible in the node, among the a priori fixed components C k . We obtain immediately the constraint of the form (4.3.16). By elementary row operations, transform
A ~
Ao ) } rankA
(4.4.3)
0 Then D - Ao
(4.4.4)
is the (K-R o) x K full row rank matrix in the constraint (4.3.16). Let us assume that in addition, also certain relatively stable groups of elements remain conserved by the possible reactions; such cases are common in organic chemistry. We then simply regard the groups as 'atoms' and extend thus the atom matrix. The formal consequences will be drawn in the same manner as above. As an example, let us go back to the example in Section 4.3. We have found R 0 = N while K - rankA = 2 N - 1. So having no information on the reactivity, one would admit 2 N-1 independent reactions. The assumption admitting esterification reactions only, leads to reducing the reaction space to d i m ~ - N. The assumption can be also formulated in the manner that the groups R n and CH3COO remain conserved. Indeed, the 'atom matrix' then reads
78
Material and Energy Balancing in the Process Industries
A
An
I
Esn
I w
1
Rn 1
CH3COO
[H 0
1 1
1 1
1
....
1
1
1
....
1
2 ] eliminated
1
1
....
1
1
Subtracting the rows denoted by C H 3 C O O and O from row H yields row (0; 0, ..., 0; -1, .-., -1; 1) and adding the sum of r o w s R n yields row (0; 1, ..., 1; 0, .-., 0; 1) in place of row H, which equals the last row (O); hence row H is eliminated and the remaining rows are linearly independent. The matrix is of rank N+2 and we have K-(N+2) = N - R 0 . The new assumption is thus equivalent to that on the admissible reactions. Recall that the matrix obtained in this manner is matrix A 0 in (4.4.3) by formal analogy with the 'net' atom balance. The equivalence does not preclude different matrices D in (4.3.16). The net elemental (atom) balance is set up in particular when some of the reacting components are of not-well defined structure, and when only empirical formulae are known. Such cases occur in biochemistry. An example is the production of biomass (yeast); see Madron (1992), Example 2.2.
Remark
If D = A 0 then the constraint (4.3.16) is directly equivalent to n e KerA (= KerA0 ). As stated in Section 4.3, in the general case the constraint (4.3.16) is equivalent to n e % where ~ c KerA, as follows from (4.3.4). Hence the constraint (4.3.16) implies in any case the equality (4.3.7). We thus have, for h = 1, ..-, H (number of atom species) K Z O;hk n k - 0 ; k=l
multiplying the h-th equality by the atom mass (say) gh we obtain by summation K H Z (hE__llLthCthk) nk -- 0 k=l
H Z h t~hk = M k . w h e r e h=lg
Chapter 4 -
Multicomponent Balancing
79
Hence the equality K ]~ M k n k - 0 k=l
(4.4.5)
is a formal consequence of the constraint (4.3.16), whatever be n. If now the nk are interpreted by (4.3.1) and if also the condition (4.2.2) is obeyed then
O--
K
I
~,
~ y~ Ji = i~ Ji .
I
k=l i=1
1
Thus also the total mass conservation is a formal consequence of the constraint (4.3.16), with the condition (4.2.2).
4.5 R E A C T I O N INVARIANT BALANCES IN A S Y S T E M OF UNITS Let us again consider a system of units such as in Chapter 3. With (4.2.7) introduced into (4.3.1) we have, in the n-th node n k ( n ) --
-~'~ Cni i~J
y~ m i ]
M k
(4.5.1)
for any component C k . Let n(n) be the column vector of components n k (n) (k = 1, .-., K) and D(n) the matrix introduced in (4.3.16) for the n-th node, computed by the described procedure. Recall that D(n) = A 0 by (4.4.4) when only the element balance (4.3.7) is known in the node n; the case never occurs when the node is a splitter, because then necessarily D(n) is unit matrix (no reaction admitted). Let us adopt again the conventions and notation introduced before the equations (4.2.12a). Then the complete set of reaction invariant balances reads for n ~ Tu 9
D(n) n ( n ) = 0
(4.5.2a)
with (4.5.1), and for s ~ S again
~j
(4.5.2b)
Csj mj -- 0
with y~,~- y~, = 0
for j ~ J~
(k = 1,---, K) ;
(4.5.2c)
Material and Energy Balancing in the Process Industries
80
in addition we have again the conditions K
j e J:
Y, y~ - 1
(4.5.2d)
k=I
Recall also that according to the Remark to Section 4.4, by (4.4.5) we have K
n e Tu 9
Z
k=l
M k n k (n)
= 0
(4.5.3)
for any solution of Eqs. (4.5.2a). If also the conditions (4.5.2d) are fulfilled, any solution obeys the total mass conservation conditions. In the same manner as in Section 4.2, we generally introduce certain additional conditions such as (4.2.14), to obtain the whole set of constraints. The equations can be rewritten in different other manners. A simple modification consists in introducing the sets E k as in (4.2.14). Then the components nk (n) of vector n(n) read n e Tu 9
nk (n)
--
-
Z
ieEk
Cni y~ m i [ M k
(4.5.4)
in (4.5.2a). We can also introduce the coefficients j~
J" Bjk = 1 w h e n j ~ =0whenj~
Ek F_,k
(k-1,
--- , g)
(4.5.5)
thus the conditions (4.5.2d) read K
j ~ J"
kZ__?jk y~, = 1
(4.5.6)
along with the conditions (4.2.14) for the remaining y],. Given splitter node s S, the equations (4.5.2c) are written only for such k that j~ ~ Ek. Observe that the graph G of the system as introduced in Chapter 3 can be, for any k (thus component Ck ), restricted to the arcs Ek, giving subgraph Gk [N, Ek ]. The subgraphs Gk will not, however, generally have the properties required for graph G; they even need not be connected. In the equations, we can introduce the substitutions j ~ Ek 9
m~, = mj y~,
(mass flowrate of Ck in stream j) and
(k = 1 , - . . , K)
(4.5.7)
Chapter 4- Multicomponent Balancing
s ~ S, j e
Js"
81 (4.5.8)
%= mjs
(splitting ratios). Then the equations read ,"
N
1 n e
Tu 9
Z
D(n)
CnjmJk
- 0
(4.5.9a)
Mk jeER (k= 1, ..., K)
and for k - 1, ..-, K: for s e S such that Js e Ek m~- ffjm~ s = 0
( j e Js);
(4.5.9b)
finally for s ~ S 9j]~j~sj - 1 .
(4.5.9c)
Thus the vector equations (4.5.9a) are written for each n e T u (nodes that are not splitters). For the splitters s e S, we have the scalar equations (4.5.9 b and c). We take k = 1, .-., K and for each k, write the equations (4.5.9b) only for such s that Js e Ek (the split streams contain component Ck ); the equations (4.5.9b) are then written for each j e Js (streams obtained by splitting the input stream Js )Finally, for each s e S we have the equation (4.5.9c). The equations (4.5.9) are in variables m~, ( k - 1, ..., K; j e E k ), and o~j (J e Js where s e S), thus in all the component mass flowrates, and all the splitting ratios. We then have K
j ~ J"
mj = kZ=lBjk m],
(4.5.1 O)
and j ~ Ek 9
y~-
( k - 1, ..., K)
(4.5.11)
assuming mj r 0. The coefficients Bjk in (4.5.10) mean simply summation over such k that j ~ E k . The new set of equations is a consequence of the equations (4.5.2), with the restriction to nonnull component flowrates. Conversely having
82
Material and Energy Balancing in the Process Industries
any solution to Eqs.(4.5.9) and computing mj and y~, by (4.5.10 and 11), as is readily shown the latter variables' values obey all the equations (4.5.2), with the convention (4.5.5). So the new set of equations is equivalent to the original one, with the exception of'singular' solutions where some mj = 0. The equations (4.5.9 a and c) are linear in the new variables; only Eqs. (4.5.9b) are nonlinear. The equations (4.5.2a) with (4.5.1) are bilinear in the variables y~ and m i . The whole set of constraints generally does not determine a unique solution, but only what is called an (analytic) solution manifold, a (mathematically smooth, but 'curved') subset of the variables' space. Only if a 'sufficiently great' number of variables is measured and adjusted so as to make the system solvable, the remaining variables can be computed. We shall not attempt to analyze the problem in the same (mathematically rigorous) manner as in Chapter 3. An example in Section 5.5 will show that such problems may sometimes also be 'not well-posed'. For a different approach, see further Chapter 8.
Remark In this section, we have eliminated the integral reaction rates W~ from the equations (4.2.1), considering them a priori unknown. Let us now suppose that we have found a solution of the reaction invariant balances (4.5.2). We thus have determined the quantities nk (n) (4.5.1). Let us consider a reaction node n; going back to the notation (4.3.1), with (4.2.1) we have R
Z Vk~ W~ = n k
(k = 1, .-., K) .
(4.5.12)
r=l
Because n ~ R some solution in W~ exists. Clearly, it is uniquely determined if and only if the matrix (Vk~) is of full column rank R, which means R = R 0 (= d i m ~ ; otherwise there is an infinity of such solutions. This is the case of linearly independent reactions. If we then take arbitrary R linearly independent rows of the matrix, thus the corresponding R (= R 0 < K) equations (4.5.12), the integral reaction rates can be computed. So when desired, we have also obtained an information on how the reaction kinetics works in the reaction node. If the term W~ is further integrated over an interval of time (say, from t~ to t2 ), the integral is called the extent of the r-th reaction from initial t~ to time t2; the concept is useful rather and in particular for batch reactors.
Chapter 4 -
4.6
MulticomponentBalancing
83
E X A M P L E OF M U L T I C O M P O N E N T BALANCE A classical sulphuric acid plant can be schematized according to the
figure 12
8 r
]i
I0
4 13 15
14
Fig. 4-2. Sulphuric acid plant D ... air drying unit, B ... sulphur burning unit, R ... reactor, A1 ... oleum absorption unit, A2 ... acid absorption unit, S 123 ... splitters of streams 1-10 gas streams, 11 sulphur, 12 water, 13-18 acid streams
Atmospheric air (stream 1) is dried in D and as stream 2, is divided into stream 3 going to sulphur burning, and stream 4. Elemental suphur (11) is burnt in B and the combustion products (5) go into contact reactor R where sulphur dioxide is, by heterogeneous catalysis, converted to sulphur trioxide; dry air (4) is added. The gas after conversion (stream 6) is divided into streams 7 and 8 going into absorption units A1 and A2; also the gas from the first absorption unit (stream 9) is introduced into A2 and after the second absorption, the gas (stream 10) leaves the system and goes into the atmosphere. In absorption unit A2, sulphur trioxide is absorbed in circulating sulphuric acid solution; pure water is added as stream 12, and excess water contained in sulphuric acid of lower concentration comes also into A2 from the air drying unit as stream 13. Concentrated sulphuric acid solution produced in A2 (stream 14) is divided into stream 15 going back into the air drying unit, net production (stream 17), and stream 16. In absorption unit A1, sulphur trioxide is absorbed in 'oleum', a solution of SO 3 in sulphuric acid; the acid comes as stream 16, and stream 18 is oleum produced in the unit. The flow scheme of acids and water is simplified. The inventories are included in the environment node, as corresponds to our steady-state convention.
84
Mater&l and Energy Balancing in the Process Industries
The components Ck are C 1 C2
C3 C4
C5 C6
... ... ... ... ... ...
elemental suphur, formula S oxygen, 0 2 nitrogen, N 2 (by convention air is considered as mixture of water, H20 sulphur dioxide, SO2 sulphur trioxide, SO3.
0 2
and N2)
The composition of sulphuric acid solutions as well as that of oleum can be uniquely expressed in terms of (H20, SO3 ), due to instantaneous equilibria. See Section C.1, second paragraph; in particular the quantity of the component H2SO 4 is uniquely determined by those of water and sulphur trioxide. Then the sets Ek of streams containing component Ck are E1
=
E2 E3 E4 E5 E6
= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} = E2 = {1, 12, 13, 14, 15, 16, 17, 18} = {5,6,7,8,9,10} = {5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18}
{11}
(4.6.1)
as corresponds to simplifying balance assumptions adopted; for example sulphur burns completely in unit B, air is completely dried in D, no SO2 is absorbed. Observe immediately that for instance the subgraph G~ [N, E1 ] is not connected; all the nodes with the exception of node B are isolated in G~. The subset T u of production units is Tu =
{D, B, R, A1, A2}
(4.6.2)
and the subset of splitters is S = {S1, $2, $3 }.
(4.6.3)
We have Jsl = 2 and Js2 = 6 and Js3 = 14 and
Jsl = {3, 4} {7, 8} Js3 = { 15, 16, 17 } .
Js2 =
(4.6.4)
The reaction nodes are B and R, not perhaps A1 or A2, due to the elimination of a component like H2SO4 from the set of balance equations. In node
Chapter 4-
MulticomponentBalancing
85
B, we admit the oxidation reactions S 4- 02 - SO 2 S O 2 q- 1/2 02 = S03
, formally , formally
- C~ - C2 + C5 = 0 - 1/2 C2 - C5 + C 6
= 0 .
In node R, we have only the second reaction. In node B we thus have
S
r -1
0
C1
-1
-1/2
C2
0
0
C3
0
0
C4
1
-1
C5
0
1
C6
m
thus for instance multiplying the first column by (-1) and placing row we have C 1
0
0
1
So
\
"~
C 6 as
second
C1
C6
1
-1/2
C2
0
0
C3
0
0
C4
-1
-1
C5
B
from where the matrix (-B, IK_% ) = (-B, 14 ) as in (4.3.14), and finally, after rearrangement
D(B)
=
-1
1
0
0
0
1/2
0
0
1
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
(4.6.5)
operating on vector n(B) with the a priori order of components C~, ... ,C 6 . In node R we have only the second column of matrix S, so we can only place the last row as first, get So and (-B, 15 ), and finally, after rearrangement
86
Material and Energy Balancing in the Process Industries
1/2 D(R) =
15
(4.6.6)
\
as corresponds to vector n(R). Recall again that the matrices D are not unique; the reader can, however, verify that in both cases (B and R) the equation Dn = 0 corresponds to the conservation of the elements O and S, and to the nonreactivity or even absence of C 3 and C4 (and C~ in node R). We are now ready to write the equations (4.5.2). We have, by (4.5.4) with (4.6.1), for example c
yllmll
/ M~
( y 3 m 3 5- y2m5 ) / M 2 (y~m3 - Y~m5 ) / M 3 - n(B)
=
0 5
- ysm5 / M 5 ,
- y56m5 / M 6
,
Of course we shall have y~ - 1; formally, it will follow from (4.5.6). In the same manner are expressed (generated) the other vectors n(n) for n ~ T u , using the incidence properties of graph G and the list (4.6.1) in (4.5.4). By (4.5.2a) we thus have, with (4.6.2) for n = B,R :
D(n) (-n(n)) = 0
where we have (4.6.5 and 6), and for n = D, A1, A2 :
(4.6.7a)
-n(n) = 0
because the nodes are nonreaction, thus D ( n ) is unit matrix; observe that certain components nk (n) of n(n) equal zero identically, for example n~ (n) = 0 for any n~:B. The equations (4.5.2b) read, with (4.6.3) m 2 - m 3 - m 4 m 6
m14
-
=
m7 - m8 - m15
- m16
0
= 0 - m17
-" 0
(4.6.7b)
Chapter 4 - MulticomponentBalancing
87
and the equations (4.5.2c) are written, given s e S only for such k that the input stream j~ e E k thus the split streams Js c Ek; for the other components Ck we have y~s - y~ - 0. Thus, with (4.6.4) and (4.6.1) (s - S1)
y~ _ y2
and y4 _ y~
for k - 2, 3
(s : $2)
y~ = y6
and y~ - y6
for k = 2, 3, 5, 6
(s - $3)
y~5_ y~4, y~6_ y~4 and y~7_ y~4
for k = 4, 6 .
(4.6.7c)
Finally, the equations (4.5.2d) are generated according to (4.5.6), making use of (4.5.5) and the list (4.6.1). Thus for example Bjl = 1 for j = 11 only, the other Bj~ = 0, further Bj2 - 1 for j - 1, 2, ..., 10 while Bj2 = 0 for j = 11, 12, ..., 18, and so on. In this manner, the equations (4.5.2) contain as variables only those mass fractions y~, that can be nonnull by the a priori technological assumptions. Generating the equations (4.5.9) with (4.5.10 and 11) is quite analogous.
4.7
UNSTEADY-STATE BALANCES
Rigorously, an unsteady-state balance should take into account variable concentration profiles in units such as columns, or even in pipelines. Such a balance then, in fact, takes the form of a differential balance; cf. Appendix C. In some cases, the balance can be simplified; for example in a stirred reactor, we can approximate the k-th species' content (accumulation) as Ck V where V is (fixed) volume, Ck is (generally time-dependent) averaged (integral mean) volume concentration of species Ck. Then the unsteady-state balance is again an integral (volume-integrated) balance, extended by accumulation terms. Let us begin with the node balance (4.2.1). On adding the accumulation term, it takes the form dNk
dt
I
R
+ Z y~ Ji - Mk Z Vk~ W~
i=1
r=l
(4.7.1)
for species Ck (k = 1, ..., K). Here, t is time and Nk is mass of species Ck contained in the unit (node), thus for example in a reactor; the other symbols are the same as in Section 4.2. The balance (4.7.1) can be obtained from the exact balance (C.25) using the same simplifying hypotheses as in Section C.4, thus in (C.33), only the change in accumulation is no more neglected. It has the plausible form increase in acumulation plus output minus input = integral production rate.
Material and Energy Balancing in the Process Industries
88
Formally, the (accumulation) term Nk is defined as a volume integral. If Yk is mass fraction of Ck and p is total mass density then (4.7.2)
Ck = Yk 19
is mass of C k per unit volume, and integrating over the whole volume of the unit (say, reactor), we have Nk. Clearly, if the unit is for instance a distillation or absorption column, such formal integration is rather hypothetical. But for example in a stirred vessel, it is quite meaningful to write Nk = Ck V
(4.7.3)
where Ck is the (integral mean) volume concentration (4.7.2), and V is the volume occupied by the liquid; basically, both Ck and V can be time-dependent. In what follows, we shall make abstraction from how the Nkis actually computed. We now can add the term dN k / d t to the other balance equations in Section 4.2. Introducing again the convention (4.2.7), in place of (4.2.8) we have, for k = 1, .-., K R(n)
n e Nu 9
Z y~ Cni m
i -I-
ieJ
d N k (n)
M k Z Vk~(n) W~(n) r=l
(4.7.4) dt
where the argument (n) refers again to the n-th node. Using again the conditions (4.2.2) and (4.2.4), summation over k = 1, ..., K yields the total mass balance of node n n e Nu :
Z Cni mi = an
i~J
(4.7.5)
where a n is increase in accumulation per unit time in the node; see (3.1.1). If the formula (4.7.3) with (4.7.2) makes sense, we have
an _
( p V)n
(4.7.6)
dt where p is (integral mean) total mass density; the subscript n means n-th node. In any case, the total mass conservation is again a formal algebraic consequence of the balances (4.7.4). We can again decompose the set N u into S (splitters) and T u = Nu - S ('technological units'), and we adopt again the conventions (4.2.9 and 10). With the notation (4.2.11), in place of (4.2.12a) we now have
Chapter 4 - MulticomponentBalancing
for n 9 T u 9
89
Z y~ Cnj mj + r k(n) = jeJ
dN k (n)
(k = l, ..-, K ) . (4.7.7)
dt
The accumulation in the splitters will be clearly put equal to zero. Hence the balances (4.2.12 b and c) remain unaltered; also the conditions (4.2.12 d) subsist. We can again introduce the additional conditions (4.2.14). In Section 4.3, it is sufficient to re-define the terms nk (4.3.1). Considering, for the moment, a single-node component balance, let us put more generally
Z y~ Ji +
F/k --
i=1
(4.7.8)
dt
admitting thus the change in accumulation. Then, comparing the balance (4.2.1) with the more general balance (4.7.1), we conclude immediately that Eq. (4.3.2) and all what follows remains formally the same; only the column vector n is now of components n k defined by (4.7.8). In particular the constraint (4.3.16) holds true, now with the interpretation of n by (4.7.8). Also Section 4.4 remains formally unaltered. In the Remark, we have the result (4.4.5); from where again the total mass conservation, now in the form (4.7.5), as a formal algebraic consequence. In Section 4.5 we now put, in place of (4.5.1) 1 / -Z Cni y{ m i + rt k (rt) M k / - ieJ
d N k (n)
dt
(4.7.9)
in node n, for component Ck. Thus n(n) is the column vector of components nk (n) (k = 1, ..., K). D(n) is again the matrix introduced in (4.3.16) by the algebraic transformations of the stoichiometric matrix S (4.3.8). Consequently, the reaction-invariant balances are again of the form (4.5.2), with (4.5.3). We can again introduce the sets E k (of streams where component Ck can be present). Then the components of vector n(n) read dN k (n)
1 (n) - ---7 Mk
]~ Cni Y~ mi + ie Ek
(4.7.1.0)
dt
and with the conventions (4.5.5), we have again the conditions (4.5.6). Notice that the individual-component node balances are naturally written only for such components Ck that are present at least in one stream incident to the node. But formally, if some component Ck is absent in the node balance, we can put simply nk (n) = 0 because then also Nk (n) = 0.
90
Material and Energy Balancing in the Process Industries
Remark
Recall the Remark to Section 4.5. Considering again one fixed node (thus omitting the argument n), the equations (4.5.12) hold with the interpretation (4.7.8) of nk, due to (4.7.1). Let us consider in particular a batch reactor. After introducing the components into the reactor, say at time t = 0, the reactor is closed. We know the initial quantities (say) Nk0 of the components (some of them can equal zero). At times t > 0, we have Ji = 0 in (4.7.8), hence by (4.5.12) R E Vk~ W~ = r=l
1
dN k (k - 1, ..., K ) .
Mk
(4.7.11)
dt
Now at t = tl, let us have measured the quantities Nk - Nkl (say). Denoting t1
Er, = I W~ dt o
(r - 1, ..., R)
(4.7.12)
the conditions (4.7.11) require, for any k g ]~ Vkr Erl = r=l
1
(Nkl- Nk0)
(4.7.13)
Mk
At the same time, the condition (4.3.16) requires, by integration over the interval, D(N~ - N o) = 0
(4.7.14)
where N is vector of components N k / M k, N O at to , N~ at t~. Let us have adjusted (reconciled) the measured results so as to satisfy the condition (4.7.14). We then have K equations (4.7.13), which have some solution due to (4.7.14). I f the R reactions are independent, hence if the rank of the stoichiometric matrix (Vk~), thus S (4.3.8) is ranks = R
(4.7.15)
(full column rank) then there exist also some R linearly independent rows of the matrix, say rows k - 1, ..-, R for an appropriate arrangement. Thus the unique solution of the (sub)set of equations R
1
Z Vk~ E~, = r=l
(Nk~- Nko )
(k = 1, "" ,R)
determines the reaction extents Erl ( r t=t I .
(4.7.16)
Mk
1, 9. . , R) in the interval from t - 0 to
Chapter 4- Multicomponent Balancing
91
Formally, the extent of a reaction can always be introduced by an integral (4.7.12) and computed (in case of independent reactions) from a time-integrated balance (4.5.12) with (4.7.8). For a batch reactor, its value shows directly 'to what extent' the reaction has been realized with the initially present quantities Nk0. Recall, however, once more that the definition of the reaction extent, as well as that of the reaction rate, depends on how the reaction has been written; see the examples (r~) and (r~') in Section 4.1. Clearly, if the r-th reaction scheme is generally multiplied by some a > 0 thus V~,r = a Vk~ (k = 1, ... , K) then the reaction extent becomes E'~ - E~/a ; then Vk~E~ = Vk~E'~ . So the (invariant) item Vk~E~in (4.7.16) gives the production (consumption if negative) of species Ck due to the r-th reaction, in mole units. Let us further suppose that we have measured the Nk-values at different times, say Nk (t) at time t; thus Nk~ - Nk (t~). By (4.7.16), we obtain E~ (t) as functions of time. According to (4.7.12), by numeric or graphical differentiation we find W~ = dE~ / dt
(4.7.17)
as function of time. This is a way of identifying the (integral) reaction rates. In a stirred reactor, we then can assess w~ = W~/ V
(4.7.18)
per unit volume V.
4.8
MAIN RESULTS OF CHAPTER 4
In this chapter, 'multicomponent balancing' means the balancing of individual chemical species (components) present in a technological system. As in Chapter 3, the system consists of units (nodes) connected by oriented streams (arcs), constituting the oriented graph G[N,J]. A reaction node is such where chemical reactions are admitted; else the node is nonreaction. In each reaction node, we have to specify the admitted reaction stoichiometry; see Section 4.1. So if there are K chemical species Ck present in the node, the R admitted chemical reactions are formally expressed by the scheme (4.1.4) K E VkrC k : 0 k=l
(r - 1 --- R) ' '
(4.8.1)
with the convention Vk~> 0 for reaction products. Here, Vk~are the stoichiometric coefficients constituting the stoichiometric matrix (Vk~), denoted later by S. [By another convention, one calls 'stoichiometric matrix' the transpose sT.] For a
92
Material and Energy Balancing in the Process Industries
nonreacting species Ck , we put Vkr = 0 for r = 1, ... , R. Clearly, in any (nonnuclear) reaction the number of atoms of any chemical element must be conserved, hence if o~r~ is the number of atoms of element Eh (h - 1, ..., H) in the formula Ck we have K
E ~hkVkr -- 0
k=l
(h - 1, ... , H; r - 1 -.. '
'
R).
(4.8.1a)
We also suppose (which is always possible) that in the balances, the composition of a mixture is expressed by 'electroneutral' species (not perhaps by ions). Neglecting the change of accumulation in the nodes, the individual component balances of nodes n e N u (units of the system, without the environment node no) are of the form "output minus input = integral production rate" for any component Ck ; see Section 4.2. Here, the integral production rate of C k (in mass units) in node n equals, by (4.2.11)
rk(n ) = M k
R(n) ~-.,Vkr(n)Wr(n ) r=l
(4.8.2)
where Mk is formula (mole) mass of species Ck and Wr the r-th integral reaction rate (volume integral of the local reaction rate w~ in moles per unit volume per unit time); the symbols Vkr and R are as above, the argument (n) refers to the n-th node. For a nonreaction node, we set R(n) = 0 thus rk(n) = 0 for any k. Certain nodes can be splitters; see Fig. 4-1 in Section 4.2. If S is the subset of splitter nodes we have the partition Nu - Tu w S
(T u n S = O)
(4.8.3)
where T u is the remaining subset of 'technological units'. For any splitter node s ~ S, we have one input stream (j~) and the subset Js ( c J) of output streams incident to s; thus Js (4.2.9) is the set of arcs (streams) incident to s, with the condition (convention) (4.2.10) that two (possibly) adjacent splitters have been merged. For a splitter, the individual component balances are reduced to the total mass balance and to the condition (4,2.12.c) that the mass fractions of any Ck are equal for all the incident streams. Finally, we have the condition (4.2.12d): the sum of mass fractions y], of components Ck in any stream j equals unity. We thus have the complete set of balance equations (4.2.12). Let us introduce submatrices Cu and Cspli t of C (reduced incidence matrix of G) restricted to nodes (rows) n ~ T u and s ~ S, respectively. Let further R u be the I Tu I x K matrix of elements
Chapter 4 - Multicomponent Balancing
Ru,nk --
rk(n )
93
( n E T u , k = 1, ..., K)
(4.8.4)
and Y the I J[ x K matrix of elements
Yjk = y~,mj/ M R
(j ~ J, k = 1, .-., K)
(4.8.5)
where mj is the j-th mass flowrate; let m be the vector of components mj. Then the set of balance equations reads CuY + Ru = 0
(4.8.6a)
0
(4.8.6b)
Csplit m
-
with y~s_ y~,
= 0
(s e S, j e Js, k = 1, ..., K)
(4.8.6c)
- 0
(j ~ J)
(4.8.6d)
and K Z y~,- 1 k=I
The total mass balance C m = 0 is an algebraic consequence of the equations (4.8.6) and need not be written explicitly as a further constraint. In the equations, we formally admit the presence of any component CR in any stream j, but in fact we can have certain y~ = 0. Of course if some C k is absent in all the streams j incident to node n then it is also formally nonreacting in the node, hence Vk~(n) = 0 for r = 1, .-- , R(n). We can also formulate the a priori hypotheses (4.2.14): CR is absent in stream j if j ~ E k where E k ( c J) is the subset of streams where the presence of Ck is admitted. In balancing proper, the (integral) reaction rates W~ are certain parameters that can be eliminated; see Section 4.3. The procedure is purely algebraic, based on the assumed stoichiometric matrix S of elements Vk~ ,thus S(n) in reaction node n. By Gauss-Jordan column elimination (4.3.9), rearranging possibly the rows k of S we find matrix S O (4.3.10) of R 0 linearly independent columns
SO --
IR~ ]
B
Ro
} K-
R0
- (S0,
""'
S~
R0 )
(4.8.7)
94
Material and Energy Balancing in the Process Industries
where IR0 is unit matrix; algebraically, the columns Sr0 constitute a basis of the reaction space R o f dimension R 0 , generated originally by the columns of S and with the new order of components Ck. The component balances of the node, with unspecified parameters Wr , are equivalent to the assertion: n e R where n is K-vector of components (4.3.1) thus, in node n
nk(n ) = - jEeCnjYjk
(4.8.8)
where Cnj are elements of C and Yjk the elements (4.8.5). The assertion (n ~ is further equivalent to the equation (4.3.14). Rearranging finally the columns of the matrix (-B, IK-R0) according to some a priori chosen order of the components C k thus of the vector components (4.8.8) of n, we have (full row-rank) matrix D and Eq.(4.3.16) thus D(n)n(n) = 0
(4.8.9)
in node n with stoichiometrix matrix S(n) and reaction space 9~n) of dimension Ro(n ). Here, we can restrict the components of vector n(n) to certain K(n) components that are actually present in some of the incident streams and are thus subjected to the node n balancing; thus D(n) is (K(n)-Ro(n)) • K(n) matrix of full row rank K(n)-Ro(n). For a nonreacting species Ck we obtain, by (4.8.9), nk(n ) = 0. In a nonreaction node, D(n) is unit matrix thus n(n) = 0. Again, the total mass balance is an algebraic consequence of the above constraints. It can happen that we have no information on the possible reactions in the node; then the only constraint we can specify is the conservation of atomic species (elements); see Section 4.4. The constraint reads An = 0
(4.8.10)
where n is again the vector of components (4.8.8) and A the atom matrix (ahk); see (4.8.1a). By elementary row operations, we can transform A to the matrix (4.4.3) where A 0 is of full row rank, viz. that of A. The formally introduced reaction space Ris of dimension R0 = K - rankA (4.4.2) and we can put D = A 0 (4.4.4) thus D(n) = Ao(n)
(4.8.11)
in node n; we then have again the constraint (4.8.9). We can again restrict the vector n(n) to certain K(n) components actually present in some of the streams incident to node n. It is also possible to regard as 'chemical elements' certain groups of elements that, by hypothesis, remain conserved by chemical reactions
Chapter
4 -
MulticomponentBalancing
95
in the node, having thus extended the atom matrix; see the example in Section 4.4. Observe also that conversely, given a priori a reaction space R (stoichiometric matrix S), by (4.8.1a) the constraint (4.8.10) is an algebraic consequence of the constraint (4.8.9) and need not then be written explicitly. Writing the constraints (4.8.9) for any node n ~ T u (non-splitter) and adding the constraints (4.8.6b-d), we have the full set of constraints; see Section 4.5. We thus have the set of reaction invariant balances (4.5.2). 'Reaction invariant' means that the constraints are independent of the reaction rates; of course if certain quantities Wr in (4.8.2) were known a priori, one would have a 'stricter' set of constraints (4.8.6). The algebraic structure of the set of constraints is no more that simple as in the case of a single-component (mass) balance. The structure is generally the less transparent, the more available information has been incorporated. For example a splitter node s can also be simply regarded as a nonreaction node, to which the constraint (4.8.9) applies, with unit matrix D(s) thus n(s) = 0 without further restriction. But then, one woul_d formally admit different mass fractions of some C k in different streams j ~ Js as a possible solution, which is clearly absurd. Also the a priori hypothesis that some component is absent in certain streams complicates the structure, thus the solvability analysis as will be shown later in Chapter 8. We have introduced the sets E k for k - 1, ---, K where K is the number of all the chemical species considered in the whole system. Here, E k ( c J) is the subset of streams where the presence of component C k is admitted by the technology. See then the modifications (4.5.4) - (4.5.6), and the example in Section 4.6. The set of constraints can also be rewritten using the substitutions (4.5.7) and (4.5.8) where m~, - mjy~, is the mass flowrate of component C k in stream j (~ ER), and ~j the splitting ratio mi/mJ~ for stream j (~ Js) in splitter s (~ S). Due to the presence of splitters, the new set of constraints is again nonlinear in the new variables. The final goal is to formulate a minimal set of constraints thus, in a sense to be precised later, such that none is consequence of the other ones and still, all the available information has been incorporated. The set (4.5.2) is generally not minimal. For instance if s ~ S and j ~ J~ , the condition (4.5.2d) for this j follows from that written for Js and from (4.5.2c). It can also be shown that if, in the definition of D(n) in (4.8.9), we consider all the K components Ck (not only K(n) in node n) then D(n) is correctly of full row rank K-Ro(n ) where K > K(n), but the set of constraints (yielding automatically and correctly nk(n ) - 0 for any component Ck absent in the incident streams) is not minimal if K > K(n). The minimal set of constraints will be formulated and analyzed later in Chapter 8, Section 8.2. For the moment, let us only observe that the set of constraints such as in Example 4.6 admits of a final reduction to a minimal one. For example in the matrix D(B) (4.6.5), the fourth column ( C 4 - H20) and the third row (giving n 4 ( B ) - 0 by D(B)n(B) - 0) can be deleted since C4 is absent 9
96
Material and Energy Balancing in the Process Industries
in all the streams incident to node B by (4.6.1); also in the definition of vector n(B) that follows later in the section, the fourth component (n4(B) = 0) is thus deleted. We have neglected the change of accumulation in the nodes n e N u ; in particular nodes such as inventories have been included in the environment node n o. It is not formally difficult to extend the set of variables by the accumulation terms; see Section 4.7. In certain cases (such as stirred reactors), the accumulation terms can be identified by volume and concentrations measurement. In the extended balance, we then replace the definition (4.8.8) of nk(n) by (4.7.10) thus the components of vector n(n) are 1 nk(n ) = -
Z CnjYjk + jeE R Mk
dNk(n) (4.8.12) dt
with (4.8.5); here, because Yjk -- 0 for j ~ Ek, the summation is over j e E k only, and Nk(n) is the accumulation of component Ck in node n, t is time. Neglecting anyway the accumulation in splitters, we have again the constraints (4.5.2) where matrix D(n) is obtained by the same algebraic procedure as above, starting from the stoichiometric matrix S(n) (or from the atom matrix A(n)). In particular for batch reactors, we can also compute the reaction extents (time-integrated reaction rates) (4.7.12) by solving the equations (4.7.16); here, we assume that the reactions are independent (full column rank of the stoichiometric matrix S), and that the measured accumulations have been adjusted so as to obey the constraints (4.7.14).
4.9
R E C O M M E N D E D LITERATURE
The algebraic formalism of a set of chemical reactions in multicomponent balancing has been, in the last three decades, a matter of interest of numerous theoretical works. As a pioneering work, recall Aris (1965). See further papers by Whitwell and Dartt (1973), Schneider and Reklaitis (1975), Bj6mbom (1977 and 1981), and Waller and M~ikil~i (1981). On mass balancing around a chemical reactor, see also Murthy (1973 and 1974). A comprehensive introduction to chemical component (and energy) balancing can be found in Reklaitis and Schneider (1983). The algebraic formalism presented in this chapter is largely taken over from Madron and Veverka (1991). The solvability of the system of multicomponent balance equations in absence of chemical reactions was examined by graph methods in a paper by Kretsovalis and Mah (1987). Concerning the problems of solvability, see also the literature to Chapter 5.
Chapter 4- MulticomponentBalancing
97
Aris, R. (1965), Introduction to the Analysis of Chemical Reactors, Prentice-Hall, Englewood Cliffs, New Jersey Bj6mbom, P.H. (1977), The relation between the reaction mechanism and the stoichiometric behaviour of chemical reactions, AIChE J. 23, 285-288 Bj6mbom, P.H. (1981), Components in chemical stoichiometry, I&C Fundamentals 20, 161-164 Kretsovalis, A. and R.S.H. Mah (1987), Observability and redundancy classification in multicomponent process networks, AIChE J. 33, 70-82 Madron, F. (1992), Process Plant Performance, Measurement and Data Processing for Optimization and Retrofits, Ellis Horwood, New York Madron, F. and V. Veverka (1991), Invariants of the chemical species balances of a reacting system, Chem. Eng. Sci. 46, 2633-2637 Murthy, A.K.S. (1973), A least-squares solution to mass balance around a chemical reactor, Ind. Eng. Chem. Process Des. Develop. 12, 246-248 Murthy, A.K.S. (1974), Material balance around a chemical reactor, Ind. Eng. Chem. Process Des. Develop. 13, 347-349 Reklaitis, G.V. and D.R. Schneider (1983), Introduction to Material and Energy Balancing, John Wiley & Sons, New York Schneider, R. and G.V. Reklaitis (1975), On material balances for chemically reacting systems, Chem. Eng. Sci. 30, 243-247 Waller, K. and P.M. M~.kil~i (1981), Chemical reaction invariants and variants and their use in reactor modeling, simulation and control, I&C Process Des. Develop. 20, 1-11 Whitwell, J.C. and R.S. Dartt (1973), Independent reactions in the presence of isomers, AIChE J. 19, 1114-1120
This Page Intentionally Left Blank
99
Chapter 5 ENERGY BALANCE Physically, an energy balance differs from the total mass and components mass balances in that it involves thermodynamics, namely its First Law. The unequivocal concept of mass is replaced by the intuitive concept of energy which, rigorously, is a quantity rather assumed theoretically than directly identifiable. This holds the more for the energy transformations, introduced as 'heat' and 'work' in traditional thermodynamics. The analysis in Appendix C shows that an energy balance set up in practice is never exact from the rigorous thermodynamic point of view, even from the traditional one. In chemical engineering balancing, a useful concept is that of enthalpy. A simplified energy balance is (not very precisely) called the enthalpy balance. This chapter deals mainly with steady-state enthalpy balancing. For the graph formalism, see Appendix A, Sections A.1 - A.3. The necessary concepts of linear algebra are summarized in Sections B.1 - B.8 of Appendix B.
5.1
ENTHALPY BALANCE
Let us begin with the energy balance of one node (unit). As in Chapter 4, we shall neglect a (possible) change in energy accumulation in the node; then the balance will be considered as the steady-state balance. Imagine the sulphur burning unit (node B) such as in Fig. 4-2 re-drawn in Fig. 5-1. (-?out
p5
| | | i
pll 3
~ |
p3
Fig. 5-1. Sulphur burning unit
,,
~5
1O0
Material and Energy Balancing in the Process Industries
The input streams are 3 (dry air) and 11 (liquid sulphur), the output stream is 5 (combustion products). The node includes a steam generator where the heat of combustion is transferred to boiling water. In an elementary textbook, the energy balance of the node would be set up perhaps as follows. The First Law of Thermodynamics requires Uin + Win-- Uou t --I- Wout --I- Q out
where U is internal energy (a thermodynamic state function), W is work, Q is heat; the items are balanced in a given interval of time and under steady-state operation (thus no accumulation term is present). If superscript j represents j-th stream then Uin-- U3 + U 11 , Uout = U 5.
Let us assume that the node includes also a pump, through which liquid sulphur is supplied; the corresponding work, say Ws is in fact negligible in the whole balance, but let us include the item formally. In addition, Win comprises the terms PJ~ (j = 3 and 11) where P is pressure and V is volume; it is the work due to introducing the streams (volumes V j) into the node. In the same manner, with j = 5 we have Wout. Consequently Wi n = p3 V3 + p ll Vii + Ws , Wout = pSv 5
and denoting Q =-Qout (heat supply, in our case negative) we have the approximate energy balance (U 5 + p5 V 5 )_ (U 3 + p3v3 ) _ (ull + pll vii) _- Q_ W where W - -Ws. Here, H = U + P V is enthalpy. With the convention Hj - H j for outlets, Hj = -H j for inlets we have the balance
Z. H j = Q - W J
where j = 3, 5, 11. It is a long way from this elementary reasoning to a rigorous energy balance as given in Appendix C. The reader not interested in the theory may accept the simplified form ('enthalpy balance') directly. It reads generally, in accord with (C.37)
Chapter 5 - Energy Balance I
^
101
.
Z H'J i - Q- W.
i=1
(5.1.1)
Here, Ji is again, as in Chapter 4, the i-th stream oriented mass flowrate (Ji > 0 for output streams), I is the number of streams i incident to the node. /~i is specific enthalpy of the i-th stream, averaged by (C.34). According to (C.36), W is interpreted as mechanical work per unit time, exerted by the node on the moving parts of its boundaries. A precise definition is only hypothetical; on the level of approximation adopted, let us regard (-W) as certain relevant work exerted on the node per unit time, for example by compressors and other important mechanical power consumers (grinding and the like). Finally Q is, by (C.41), heat supply through the walls, radiation heat included. Recall also the simplified energy balance (C.49) involving electrical energy supply Qe (C.48) to an electrochemical unit. Denoting Q' = Q
+ Oe-
W
(5.1.2)
the steady-state enthalpy balance will read I ]~/-tiff i - Q' i=1
(5.1.3)
In the same manner as in Chapter 4, let in particular the node be a splitter. See Fig. 4-1 and the text following after Eq.(4.2.5). According to the precise definition, the thermodynamic state must not change when the material passes through the splitter; specifically, we have the conditions /T - / 4 for i = 1,-.., I
(5.1.4)
where/-) is the specific enthalpy of the input stream. We have clearly Q' = 0 and with the total mass conservation (4.2.5) I Ji - o
i= 1
the enthalpy balance (5.1.3) is a consequence of (5.1.5) with (5.1.4). The enthalpy balance of a splitter will always be written in the form (5.1.4) and (5.1.5). Let us consider again a system of units such as in Chapter 3, thus the oriented graph G with incidence matrix (Cnj); we have again the equality (4.2.7). N is again the node set of the graph (environment node n o included), N u the set of units, J the set of arcs, thus of material streams. If Q(n) is the quantity Q'
102
Material and Energy Balancing in the Process Industries
supplied to node n, Eq.(5.1.3) reads fjCnj ffl Jmj + Q(n) = 0
n ~ T u"
(5.1.6)
where the equations are written only for T u - N u - S. See further the notation and conventions introduced in the paragraph before formula (4.2.11), in particular (4.2.9 and 10). We thus have for
s ~
S"
Z
C~j mj
= 0
j~J
with
/~J _/~ Js
= 0
for j ~ Js 9
(5.1.7)
Now the quantities Q(n) can also constitute a network. In the expression (5.1.2), the terms Qe and (-W) can be formally regarded as certain energy inputs from the environment, thus as certain oriented streams whose one endpoint is the environment node. If i denotes the corresponding arc, its orientation is determined by the coefficient (say) Dni where Dni = 1 for the inward orientation. If the quantity of energy is (say) qi > 0 then Dni qi > 0 means input (Dni = 1), Dniqi < 0 output (Dni = - 1 ) , thus for example (-W)(n) = Dni qi with Dni = 1 means mechanical energy supply (-W)(n) > 0; if it happens that conversely, some work is exerted by the unit on the environment (imagine a gas turbine) then Dni "- -1 and (-W)(n) = Dni qi < 0. The Q-portion of Q(n) in (5.1.2) can either come from the environment; we then introduce the same convention as above, with Q = Dni qi" It can be electrical or steam heating, or conversely steam production with Dni = -l. Or the Q-term may represent heat exchange between the node and another part of the system. It can be again in form of steam consumed/produced in the node and produced/consumed in another node, or due to heat transfer in a heat exchanger, whose the node is the cool/hot side. Then Q is a 'heat flow' term and can be represented by an arc with both endpoints somewhere in the system of nodes. Then again Q = Dni qi and if n' is the other endpoint in the graph, the same term occurs as Dn, i qi = -Dni qi in the node n' enthalpy balance. We thus can have generally several such streams incident to one node n, corresponding to a partition of the item Q(n) in the node n balance (5.1.6). Let E be the whole set of the 'net energy' streams constituting the Q(n)-terms as explained. Let us introduce the coefficients Dni obeying the convention
Chapter 5 - Energy Balance
103
n~ Tu i~E:
Oni ~
1
if arc i is oriented towards node n
Oni -- -1
if arc i is oriented outwardly from node n
Oni--
if arc i is nonincident with node n.
0
(5.1.8)
Then the enthalpy balances (5.1.6) read n ~ T~" ~ j f n j / Q J m j
+
i~jOniqi- 0
(5.1.9)
while for s ~ S we have again (5.1.7). Here, qi is the amount of energy transported per unit time by the net energy stream (arc) i ~ E. if the transport is in the direction of the oriented arc (5.1.8) then qi > 0. Some remarks have to be added. (i)
As net energy streams, one can also regard certain material streams that do not come into direct contact with the material subject to mass balancing, and only supply (or consume) energy. A common example is steam whose supply (or production) is expressed in energy units (say, watts). Of course only indirect, not perhaps direct steam heating is admitted in such cases ('direct' means mixed with some other material in the node). One then can imagine also certain 'net energy units' that only produce or consume energy. Although including such nodes in the set of units of the system would bring no serious complication, for the sake of simplicity we shall include such units in the environment node. Hence all nodes in the balances (5.1.9) and (5.1.7) are, by convention, incident with some material streams. In large process networks, it can happen that for instance steam produced (as energy) in one node is supplied to several other nodes via certain energy distributors. In that case, if D E is the set of the distributors we have in addition the balances
(5.~.1o)
d E D E 9 i~s
with the orientation convention (5.1.8) for n = d (ii)
~ D E.
A special unit is a heat exchanger. If not contained in a more complex unit balanced as a whole, it can be regarded as a node
Material and Energy Balancing in the Process Industries
104
j,
.~
~ j~
Fig. 5-2a. Heat exchanger
incident with oriented arcs Jl, "", J4" But some information would be lost, as the balance mj, - m h + m h - m j 4 - 0 would admit mjl ~ m h . W e thus divide the node according to the s ch eme
j,
,F
~- j2
i I I i i i
',i ! ! !
!
n
-~ j4
Fig. 5-2b. Partition of heat exchanger
having introduced a net energy stream i e E. Then the balances read mj,-m h-O
and m h - m h = O
which are the balances (3.1.2) for n - n' and n - n", and
(5.1.11)
Chapter 5 - Energy Balance mj,/QJ,
- mj2/QJ2 - qi- 0
105
} (5.1.12)
mj3/~ J3 _ m J4~ J4 ..1-qi - 0 which are the balances (5.1.9) for n - n', n". It can happen that in a mathematical model, the heat transfer term qi is further subject to an equation. If not, in balancing proper we can eliminate the unknown variable qi by simple summation of Eqs.(5.1.12), but the information (5.1.11) remains. Note that if the streams represent multicomponent mixtures then the detailed component balances read, by (4.5.2a) where D(n) is unit matrix (no reaction) n(n') = 0 and n(n") = 0
(5.1.13)
hence by (4.5.1), for example if n = n'
(y~, m j - y~2 mh ) - 0
thus by (5.1.11) also, as a consequence k - 1, ..-, K:
y J ' - y~:
(5.1.14)
assuming of course mj, ~ 0; the same for J3 and J4. Thus the whole information on inlet-outlet mass flowrates and composition equalities is contained in the system of energy and component balances (even if the variable qi has been eliminated). (iii)
Also can happen such cases that a stream produced in one unit (for instance some combustion products) is, from the technological standpoint, regarded as net energy stream coming into another unit:
106
Material and Energy Balancing in the Process Industries
J2
.!
1
v
1
Fig. 5-3a. Node with indirect heat transfer
We then again modify the scheme
I i | ! | i i ! ! !
i I
/'/
Fig. 5-3b. Partition of node with indirect heat transfer
having added the net energy stream qi; from the viewpoint of computation, it is again a parameter that can be eliminated. For the streams Jl and J2, we have again the equations (5.1.11)l and (5.1.14).
Chapter 5 - Energy Balance
107
(iv)
Recalling Appendix C, let us stress that the enthalpy data used in the balances (5.1.9 and 7) have to be thermodynamically consistent. The enthalpy data are represented by the specific enthalpies 171j of the streams. See Section C.3, where/~ stands for any/~J(j ~ J). Basic is the definition of standard enthalpies of all the components Ck present in the system; by a thermodynamic path, the components are then brought into the state they have in stream j, including possible phase transition and mixing. If a component does not participate in any of the reactions in the units, its standard enthalpy (enthalpy in the standard state) can be put equal to zero. Otherwise, the standard enthalpy has to be found in thermodynamical tables, or computed; see (C.20) or (C.23), or Veverka and Madron (1981) in more detail. In this manner, the specific enthalpy /~J is found as function of the thermodynamic state of stream j and the energy (enthalpy) balance equations become equations in the state variables. See also the example in Section 5.3. For another approach, see Section 5.4.
(v)
A brief note should be added concerning the neglected terms in the energy balance. Let us estimate the possible errors committed by neglecting the potential and kinetic energies of the streams. The potential energy can be computed with respect to a conventional zero assigned to the ground level of the system of units (plant). Consider a 50 m high distillation column. The potential energy at the top is some 500 J kg -1. If compared with a typical value of specific heat Cp - 2 kJ kg -~ K -~ for hydrocarbons, the neglected item corresponds to a systematic error 0.25 K in measuring or computing the temperature of the stream. If compared with a typical value 400 kJ kg -~ of the evaporation (condensation) heat withdrawn in the condenser, the error is 0.125 % , most likely smaller than the inaccuracy of available enthalpy data used in the column balance. The kinetic energy per unit mass is (1/2)v 2 where v is scalar velocity. Taking v as high as 20 m s-~ for a gas stream we have 200 J kg -~. With a typical value of Cp = 1 kJ kg -1 K -1 the neglected item corresponds to an error 0.2 K in temperature of the gas stream.
Of the same order of magnitude as potential energy for liquids is the work exerted by (liquid) pumps; imagine its expression in terms of total liquid head (equivalent height). Also power supply to pumps, though not perhaps negligible in the economic balance of the plant, is usually not detectable in the enthalpy (energy) balance set up around the units.
108
Material and Energy Balancing in the Process Industries
G R A P H AND M A T R I X R E P R E S E N T A T I O N OF THE E N T H A L P Y B A L A N C E
5.2
The matrix C of elements Cnj (n e N u , j e J ) is the reduced incidence matrix of graph G, with the environment node as reference node; see Chapter 3. Let us now admit the presence of energy distributors. Then the matrix D of elements Dni (n E T u t,.) D E , i e E) has, according to (5.1.8), the properties of reduced incidence matrix of a graph. Again, the arcs i that have only one endpoint in Tu o r D E will be considered incident to the environment node. Then the matrix D becomes the reduded incidence matrix of oriented graph (say) G E of nodes n e T u and d e D E, and arcs i e E. The graph need not be connected. Let us partition Du )
} rows (nodes) n ~ T
De )
} rows (nodes) d
D-
(5.2.1)
u ~
DE .
columns (arcs) i ~ E Let us further partition the set J of arcs (columns of matrix C) into those incident to some splitter node s ~ S, and theremaining arcs. The first subset is, by (4.2.9 and 10), disjoint union of subsets J~ (s ~ S), say m
J'
-
~
k_) Js s~ S
m
(Js' t'~ J s " -
O
f o r s' ~: s")
and the remaining subset being (say) Ju - J J = J. w J'
( J ' n Ju = Q).
(5.2.2) -
J' we have (5.2.3)
Then matrix C is decomposed
C -
Ca C'
o Ju
c"
/
}Tu
(5.2.4)
}s
J'
because Csj - 0 for s e S and j e Ju. Restricting graph G to arcs j e Ju determines a subgraph of G whose reduced incidence matrix is represented by the columns j e Ju; but then, clearly, C u is reduced incidence matrix of subgraph (say) G, [N - S, Ju] obtained by deleting arcs j e J' and nodes s e S in G, with environment as reference node added to nodes n e T u. As a plausible hypothesis, we can assume G, connected; then matrix C, is of full row rank.
Chapter 5 - Energy Balance
109
If Gu is not connected then at least one of the connected components does not contain the environment node and represents a subsystem connected with the remaining nodes only via certain arcs (streams)j ~ J' (5.2.2); recall that the whole graph G of material streams is connected. Thus all the input streams are outlet streams from some splitter, and all the output streams from the subsystem have some splitter as the other endpoint. Although such scheme is conceivable, it can be regarded as unlikely. In this chapter, the simplifying hypothesis (Gu connected) is irrelevant; but see later Chapter 8.
Let us now partition the column vector In of mass flowrates introduced in (3.1.6) as corresponds to the partition (5.2.3) mu ] m =
m'
}
Ju J'
(5.2.5)
Let us further introduce the vector h of components/~Jmj (j ~ J) and rearranging the vector components in the same order as in (5.2.5), partition
hu / }Ju h' } J'
h =
(5.2.6)
In the same manner, the corresponding vector h of components/)J is partitioned
A / u/,Ju h-
1]'
} J'.
(5.2.7)
The columns of the matrix C are arranged as corresponds to the components of the above column vectors. In particular the columns j e J' are arranged into groups j e Js (s e S) according to (5.2.2), and each J~ is further decomposed according to (4.2.9) into column Js (input) and columns Js (split output streams). Observe that matrix C" is thus partitioned Js o
C
l!
m
-0~ s
where as (s e S) are row vectors
s ~ S
(5.2.8)
110
Material and Energy Balancing in the Process Industries m
Js o:S -
(-1; 1, ..., 1 ) 9
w"-
Js
(5.2.9)
F
Js
and where the remaining elements of the s-th row equal zero, as corresponds to the s-th splitter mass balance _
- 0
Finally let q be the column vector of components q~ (i ~ E), arranged as the columns of matrix D (5.2.1). With these conventions, the whole set of enthalpy balance equations (5.1.9), (5.1.7), and (5.1.10) reads Cuh u + C ' h ' + Duq = 0
(5.2.1 la)
Deq - 0 = 0
and C"m"
(5.2.1 lb)
- 0
Here, the equation Sla' = 0 represents the e q u a t i o n s block-diagonal form
S-
(5.1.7)2.
Thus, in
(5.2.12)
Ss
m
where s ~ S and where matrix S s operates on columns j ~ Js, thus (-1
-1 SS
1
1 (5.2.13)
u
\
-1
1 v'-
Js
Js
Chapter
5 -
Energy Balance
111
is partitioned into column j~ and unit matrix. In order to write explicitly the information that the vector h (5.2.6) is of components/~Jmj, let us introduce the following notation. If v is an arbitrary column vector of (say) N components v~, ..., vN then designate diagv = diag(vl, ..., VN)
(5.2.14)
the N x N diagonal matrix with elements v~, ... , vN on the diagonal. Then, in (5.2.11) we have h u - (diagm u ) 1~u - (diagfiu) mu
(5.2.15)
and h' - (diagm') fi' - (diagll') m'
(5.2.16)
according to the partitions (5.2.5)-(5.2.7). The equation (5.2.1 lb) follows from the mass balance (3.1.6), hence is redundant if the set (5.2.11 a) is written along with the complete mass balance or with the more detailed multicomponent balance comprising the balances (4.2.12b) thus (4.5.2b). Let us finally recall Remarks (ii) and (iii) to Section 5.1. Having a couple of nodes representing a (partitioned) heat exchanger (Fig. 5-2), or also an arrangement such as in Fig. 5-3, we can eliminate the (unique) arc i ~ E connecting the two nodes by merging them. This corresponds to the summation of the two rows of matrix (Cu, C', Du), thus to the elimination of variable qi in (5.2.1 l a). Note that by the merging, the subgraph Gu is reduced to (say) G~, which remains connected if G u is. Then the matrix C~ obtained by the summation of rows is again of full row rank. [Of course in the mass balance, the nodes are not merged.]
5.3
E X A M P L E OF ENTHALPY BALANCE
Numerous simple examples of energy balances are given in Chapter 6. As an example of complex balance, consider again the sulphuric acid plant according to Fig. 4-2. Into the sulphur burning unit, elemental sulphur is conveyed in liquid form. The preceding operation is melting of sulphur, and liquid sulphur is stored; for simplicity and according to our steady-state convention, we include also this part of the plant in the environment node. So stream 11 in Fig. 4-2 is liquid sulphur. Now taking account of the energy transformations, the scheme will be completed by adding net energy streams and
112
Material and Energy Balancing in the Process Industries
certain nodes where only energy is transformed. The flow of heat into the ambient atmosphere due to imperfect insulation will be neglected. Concerning the mechanical energy transformation (power supply), we shall limit ourselves to the relevant items. The power supply to pumps in the acid circulation (units D, A1, A2) is not detectable in the enthalpy balance. Only the fan introducing atmospheric air into the drying unit (stream 1) rises the temperature of the air in a detectable manner. So let us cut stream 1
1
environment
l
.~
O
2
D
F
v
I
l.f I
!
I I
15
] net energy ' stream
13
I I
Fig. 5-4. Power supply f to fan F
where f ~ E and qf is power supplied to the fan. In the combustion unit B is included a boiler producing steam; by convention, the production is expressed in enegy units and the scheme is completed
!
!
Ib
11
.I
I i I I i |
~5
"1 Fig. 5-5. Steam production (stream b) in sulphur burning unit B
Chapter 5 - Energy Balance
1 13
on adding arc b e E, where qb represents the steam production. Finally in the acid units D, A1, A2 are included acid coolers where absorption heat is transferred to cooling water and further to the environment; we thus complete the scheme 12 8
Id
l al
I
I
1
1
!
1"
,~
D
2
7 . . . . . . . y
ti
r
A1
it
15 13
18 16
" a2
y
A2
10
11
13 14
Fig. 5-6. Heat withdrawn from drying unit D as stream d and from absorbers A 1 and A2 as streams al and a2 on adding streams d, a l, a2 where q~, qal, qa2 represent the corresponding net energy flowrates expressed again in energy units. The hot gas from the reactor going to absorption is cooled and heat is recovered. From the possibilities let us consider the following one. The dry air from unit D is divided into streams 3 (air for combustion) and 4; the cool stream 4 controls the temperature in the multistage reactor. The air in stream 3 can be pre-heated using the heat content of stream 6 to increase the steam production. So let us cut the streams 3 and 6 according to the scheme ,r to $2, instead of 6
from R
v
l
from S1 toB, ~, instead of 3 " Fig. 5-7a. Heat exchanger E
3
114
Material and Energy Balancing in the Process Industries
including heat exchanger E. According to Fig. 5-2b, E is partitioned
e
"1
E3
Fig. 5-7b. Partition of heat exchanger E
and net energy stream e is introduced, representing the transferred heat q~. Thus 3' stands now for 3 also in Fig. 5-5. The multicomponent balances of the nodes in Fig. 4-2 remain the same as in Section 4.6, substituting only stream 1' for stream 1 in D, 3' for 3 in B, and 6' for 6 in $2. In addition we have the balances of the new nodes F, E6, and E3. They are trivial; D(n) is unit matrix for n = F, E6, E3 thus in (4.6.7a) we have also n(n) = 0 for the latter nodes. The extension of the list (4.6.1) is easy, using the equality of composition in streams 1 and 1', 3 and 3', 6 and 6'. The modified partition of nodes now reads T u = {F, D, B, R, E3, E6, A1, A2}
(5.3.1)
and again
s = {s 1, s2, s3 }
(5.3.2)
while i s 1 - 2 and Jsl - {3, 4} Js2 = 6 ' and Js2 = { 7 , 8 } Js3 = 14 and Js3 = {15, 16, 17}.
(5.3.3)
According to (5.2.2), J' is union of sets {Jsh } and Jsh (h - 1, 2, 3), and by (5.2'3) Ju = {1, 1', 3', 5, 6, 9, 10, 11, 12, 13, 18}.
(5.3.4)
Then, in (5.2.4), C u is reduced incidence matrix of the modified mass flow graph restricted to arcs j ~ Ju. Matrix C' consists of elements Cnj where n ~ T~ and
Chapter 5 - Energy Balance
1 15
j ~ J' as set up above, Cnj being the elements of the modified incidence matrix. Finally matrix C" is of the form (5.2.8) where as~ = (-1; 1, 1) ~$2--(-1; 1, 1) C~s3 = (-1; 1, 1, 1)
(5.3.5)
as corresponds to the splitter mass balances (5.2.10) thus (4.6.7b), where only 6' stands now for 6. The set of net energy streams equals E = {f, e, b, d, a l, a2 }.
(5.3.6)
The set DE of energy distributors in (5.2.1) is empty. The matrix D u has nonnull elements in row F: D: B: R: E3: E6: AI: A2:
DFf = 1 DDO = -1 Dab = -1 none DE3,e = 1 DE6,e = -1 Dal,a 1 = -1 DAE,a2 = - 1 ;
(5.3.7)
the other elements are zeros. So the set of equations empty, and in the matrix S (5.2.12) we have
Deq
=
0 in (5.2.11a) is
234 Ssl
SS2
-1 1 0 / 3 -1
0
1
6'
7
8
4
-1 1 0 ] 7 -1
0
1
8
14151617 -1100 Ss3
-1
0
-1
00
15 1 0
16
1
17
(5.3.8)
116
Material and Energy Balancing in the Process Industries
specifying the equation Sfi' - 0 in (5.2.11a). We have thus specified the whole set of equations (5.2.11). Recall again that Eq.(5.2.11b) is a consequence of the multicomponent balance; it is comprised in the set (4.6.7b) where now 6' stands for 6. The whole task now consists in specifying the components of vectors h, and h' to be used in (5.2.15 and 16). The composition of the streams follows from the list (4.6.1) and from the equality of compositions in streams 1 and 1', 3 and 3', 6 and 6'. Nonreacting are the components C3 (N2) and C4 (H20) due to the elimination of possible component H2SO 4. Their standard enthalpies will be put equal to zero for gaseous N2 and liquid H20 at some 'normal' temperature TOand pressure P0. We shall immediately neglect the pressure dependence in all the specific enthalpies. The other components than C3 and C4 are reacting. Suppose we know the standard reaction heats, on the mole basis A' for reaction S A"
(5.3.9)'
+ 0 2 = SO 2
SO2 + 1/2 02 = SO3
(5.3.9)"
where S is in solid state, the other components in gaseous state. Indeed, the data are available in standard literature. Recall that the reactions are exothermic, thus A' < 0 and A" < 0. Let us recall Section C.3, formula (C.23). Writing the first reaction as SO2 - 02 = S the 'reaction heat' equals (-A'). For convenience, we take the components SO2 as 'basic' thus, by convention
0 2
and
m
i4r ~tJt
k
0
for k = 2, 3, 5 (gaseous state) (5.3.1.0)
and m
H4r176 = 0
(liquid state)
while H} ~ --A'
(solid state)
H6~~
(gaseous state) .
A"
}
(5.3.11)
m
Then the specific enthalpies are (1/M k ) Hkr176 In the gaseous streams 1, 1', 2, 3, 3', 4, 5, 6, 6', 7, 8, 9, 10, we shall neglect the heat of mixing; but recall that H20 is present as vapour. We thus make use of the formula [cf.(C.24)]
1 17
Chapter 5 - Energy Balance 6
1
121- Z Yk Cpk(T-To) + Y4/~4{~ + ~ k=2
M6
Y6A''
(5.3.12)
because Yl = 0 in all gaseous streams, and putting generally Yk -" 0 if Ck is absent. Here, Cpk is integral mean specific heat of gaseous Ck dependent on temperature T; L4~~ is evaporation heat per unit mass of water at (To,Po)./t is the quantity/~ in the j-th stream. In the stream 11 (liquid sulphur), we put
17111= -
1
A' + cpl(S)(Tml-To) + Lml + cpl(1)(Tll-Tml ) .
(5.3.13)
M1 Here, cpl(s) resp. r is (isobaric) specific heat of component C1 (sulphur) in solid resp. liquid state, Tm~ is melting temperature of C~, Lml is the corresponding heat of melting per unit mass. T j is generally temperature of j-th stream. In the stream 12 (liquid water) we have /_~12 __
Cp4(1)( T
'2-To)
(5.3.14)
where the argument (1) makes distinction from the notation in (5.3.12); (1) means again liquid phase. In the acid streams 13-18, the absorption and mixing heats are quite important. The streams are mixtures (H20, SO3) by our convention. Using thermodynamical tables, we can find directly the function h(T, y) representing specific enthalpy of the liquid solution at temperature T and y = Y6 (mass fraction of SO3). The function refers to zero levels
(5.3.15)
h(0, To)= h(1, To)= 0 ;
specific enthalpies of liquid H20 and SO 3 equal zero at To; for y ~ 0 we have h(T, y) < 0. Now the assumption (5.3.15) corresponds to our/44~~ - 0 by (5.3.10), but we must bring gaseous SO3 with enthalpy/46C~ into the liquid state. Thus in the acid streams ^
H - Y6
1
M6
A " - L(6~
h (T, Y6)
(5.3.16)
where L6~~ (> 0) is evaporation heat of liquid SO 3 at T0, per unit mass. If the reader is well-trained in chemical thermodynamics, he can find other ways for computing the function h(T, y) from otherwise given data.
118
Material and Energy Balancing in the Process Industries
The thermodynamically consistent conventional values of specific enthalpies /4J(j ~ J) constitute the components of vector h, partitioned according to (5.2.7) in Eqs.(5.2.1 l a). The set of balance equations is thus complete and expressed in variables mj, y~, and T j (temperature of stream j), with variables q~ in addition. Recall that the variable qe (see Fig. 5-7b) can be eliminated by summation of the node E3 and node E6 enthalpy balances in (5.2.11a)~, as DE3,e + DE6,e = 0 by (5.3.7).
Remark
Conceivable is (and was actually proposed) a technology of sulphuric acid manufacture under elevated pressure, where the steam boiler is replaced by a gas turbine. We thus have an example of positive work exerted by the system. The whole scheme is then different; in particular in Fig. 5-5 we can imagine stream b as mechanical power produced by the unit.
5.4
HEAT AND MASS BALANCING
We have chosen, in Section 5.3, a classical technology where available thermodynamic data allow us to compute the balance according to the general scheme (5.2.11). The formulation (5.2.11) of the enthalpy (approximate steady-state energy) balance is, however, not the only possible, and not always the most convenient one. In practice, one must frequently put up with a number of empirical data specific to the system and not found in thermodynamical tables. The data can even be more reliable than those found by a hypothetical thermodynamic path involving not precisely known items. For example the standard enthalpies of the components are, in fact, certain extrapolations computed backwards from reaction heats under realistic experimental conditions; for instance [see (5.3.9)] sulphur is certainly not burnt at, say, 273 K. Because the theoretical items are subtracted in the input - otput node balance, a relatively small error in the data may cause a significant relative error in the result. Let us go back to the node balance (5.1.9). The specific enthalpy/4 of a stream can be expressed in the form K FI-
f1(o) 5".yk.. k + h
k=l
(5.4.1)
where the term h is sum of increments due to bringing the components from the standard state into the actual state. We have
Chapter 5 - Energy Balance
Cnj/-tJmj jeJ Z
119
g
-- k=Z1P,k (~ jZj Cnj y~,mj + jZj Cnj hj mj K
^
= z CnjhJm -
j~.J
R(n) =
K
Z CnjhJmj - r=~_lWr(n)k~==~kr(n)Mkt?-l(k~ j~J I
by (4.2.12a) and (4.2.11). We have Mk/4~~ = "'k/4(0)(standard molar enthalpy of Ck), and (say) g
,.,.
(5.4.2)
Qr(n) = k~l Vkr (rt)Hk(~
is the (isobaric) standard heat of the r-th reaction in node n, on the mole basis; we have Q~ (n) < 0 for an exothermic reaction. The balance (5.1.9) thus reads
/2 • Wu
jE]~jCnj hJmj + /E]~EDniqi
R(n) = r=Z_lQr (n) Wr(n) .
(5.4.3)
The integral reaction rates W~ (n) can be computed, if the component balance equations have been solved for the quantities n k (n), provided the reactions are independent; see Remark to Section 4.5. Let R(n) = 1 for simplicity. Omitting the indices r and n, Eq.(4.5.12) reads
W
nk
...
Vk
whatever be k. Consider for example the reaction - S O 2 - 1/2 0 2 "tnode R of Example 4.6, thus Vso2 = -1 and by (4.5.1) with Fig. 4-2
SO 3
=0in
nso2 = N~s02-/~so2 because SO 2 is absent in stream 4 (air); N~o~ is molar flowrate of SO2 in stream i. If we know the gas flowrates and SO2-concentrations, we can already compute
W = N SO 5 2 -~N~o2 The example suggests that the RHS in (5.4.3) can sometimes be computed or estimated on the basis of a limited information.
120
Material and Energy Balancing in the Process Industries
The enthalpy terms hj in (5.4.3) can comprise heats of phase transition and, as in Example 5.3, also heats of mixing. As another example, consider the condensation of vapour (say) CI from a gaseous stream.
Fig. 5-8. Condenser C
Streams 1 and 2 are gaseous, stream 3 is the condensate, c is stream of heat transferred to the cooling medium. Chemical reactions do not take place, hence Eq.(5.4.3) reads hlml
- h2m2 - h3m3 -
qc
=
0
.
For j = 1 and 2 we approximate in the same manner as in (C.24) K
hj =
Z YJkC~k(TLTo) + yl L} ~
k=l
and for j = 3 h 3 = Cpl 3 (Z3_Zo) .
we take the standard states of aggregation gaseous, with the exception of liquid C~ with evaporation heat L~(~ Let further K
c~= kZ__lY{C~k
(5.4.4)
be, for any stream, assessed as a constant (or an integral mean specific heat of the mixture, only temperature-dependent), specific to the system under certain 'normal' operation conditions. Then the balance reads
Chapter 5 - Energy Balance 1
m 1Cp ( T ~ - T o )
2
121
2
- m 2 Cp (T -To)-
1 2 where m~ Yl- m2Yl
-
m3C3p( T 3 - T o ) - qc + (ml Yll-
m 2 Y ~ )f,l ~ - 0
m3 is the mass flowrate of the condensate.
Further examples are left to the reader as an exercise. In the end, we obtain the balance (5.4.3) in a form like n ~ T,: j Ej Cnj h~ mj + i~EDniqi + s(n)= 0
(5.4.5)
where Ft~ are certain assessed quantities specific to the streams j in the given technological system and dependent only on temperature; s(n) is a (positive or negative) 'heat source term' in node n, also specific to the system, dependent generally on composition and flowrates of the incident streams, assessed a priori or conversely computed from the balance. In particular if kt~ - Cp J (TLTo), with integral mean specific heat c~ of stream j, then/z~ is (so-called) sensible heat of stream j. For instance if stream j is vapour of component Ck then ft~ can comprise also the evaporation heat, and possibly the correction to elevated pressure; imagine high-pressure overheated steam. The enthalpy balance of the form (5.4.5) will be called heat balance of nodes n ~ T u , replacing Eq.(5.2.1 l a)l. Due to the presence of mass flowrates mJ, it will be written along with the mass balance. The whole set of equations will read, having rewritten Eq.(3.1.6) according to (5.2.4 and 5) Cum u + C ' m '
= 0
C"m'
= 0
Cuhsu+C'h s+ Duq+S=0 Deq Sh's
(5.4.6)
= 0 = 0.
Here, according to Eq.(5.4.5) we have introduced the column vector h~ of components hJsmj (j e J), partitioned
hs =
hsu h,s
} Ju } j,
(5.4.7)
and the column vector s of components s(n) (n ~ T u ); in addition 1]s is the column vector of components h~ (j ~ J), again partitioned
hs =
hsu
} Ju
1~,s
} j,
(5.4.8)
122
Material and Energy Balancing in the Process Industries
and we thus have, with the general notation (5.2.14) hsu = (diagm u ) l~u = (diagfi~u) m u
(5.4.9)
h'~ = (diagm') 11'~= (diagl~'~) m' .
(5.4.10)
Note that h~ is vector of material heat (most simply sensible heat) flowrates, 1~s the corresponding vector of heat content factors (per unit mass), by definition only temperature-dependent. The partitions (5.2.4), (5.2.5), (5.4.7), (5.4.8) correspond to the partition of the set N u of units into S (splitters) and T u (non-splitters, say 'material-treating units'), and to the corresponding partition of the set J of material streams into J' (incident to some splitter) and Ju (nonincident to any splitter). We further have the column vector q of components qi (i ~ E) representing nonmaterial energy flowrates in streams i; E is the set of the streams. Recall Remark (i) to Section 5.1 for the conventions. By definition, no stream i (~ E) is incident to any splitter; hence the streams can be incident only to the environment node, the nodes (units) n ~ T u, or also some node d ~ D E regarded as energy distributor. No material stream j (~ J) is incident to any energy distributor d (~ DE). The oriented graph of arcs i ~ E, and nodes n ~ T u and d e D E, denoted as GE, has reduced incidence matrix D; the environment node is again reference node. The node set of GE is partitioned into environment node, set T u, and DE; correspondingly are partitioned the rows of D according to (5.2.1). Finally S is the matrix (5.2.12) with (5.2.13). The last vector equation in (5.4.6) means again that for any splitter s (~ S), the thermodynamic state (thus temperature thus the heat content factor) of the input stream Js equals that of the split output streams j ~ Js ; recall the conventions (4.2.9 and 10). As an example, imagine a complex heat exchanger network where heat produced in some units is recovered by preheating colder streams; see for instance Section 6.3, Fig. 6-10. Recall that the variables qi that represent simple heat transfer flowrates can be eliminated. If n' and n" are the two endpoints of the arc i (~ E) representing the cold and hot sides of an exchanger according to Fig. 5-2b, by the summation of rows n' and n" in (5.4.6)3 o n e eliminates qi, as Dn'i qi -I- Dn,, i qi = 0 .
(5.4.11)
See the more detailed discussion in Remarks (ii) and (iii) to Section 5.1; imagine h~ instead of/T in (5.1.12).
123
Chapter
5 - Energy Balance
5.5
REMARKS ON SOLVABILITY
The complete set of balance equations comprises the component (chemical species) balances and the energy balance. In an analogous manner as in Section 3.3, having measured or otherwise fixed certain variables' values, the variables can be classified into measured and unmeasured; the latter are to be computed as unknowns in a system of equations. A finer classification as in Section 3.3 is, however, less obvious. Relatively simple is the system of equations (5.4.6). Under plausible assumptions, it can be shown that it has certain properties of 'regularity'; see later in Chapter 8. Having measured the values of certain variables thus having restricted the number of unknowns this regularity can get lost. Let us give a simple example. Let us have the system
a ~
5 :u3
b ~
t-7
6
r
F i g . 5-9. E x a m p l e
of balances m I + m 3 - m 5 = 0
mlh 1 + m3h 3 - msh 5 = 0
(a)
m 2 + m 4 - m 6 -
m2h 2 + m4h 4 - m6h 6 -
(b)
0
m 5 + m 6 - m 7 = 0
msh 5 + m6h 6 - m7h 7
0
= 0;
(r
here, hj stands for ~t~ in (5.4.6). Measuring hj thus means measuring the corresponding temperature. Let us have measured the values m 7 -- m +7
( , o)
and 9 +
hj = hj ,
j= 1,...,7.
124
Material and Energy Balancing in the Process Industries
If h~ r h~, h~ r h4, and h~ r h~ then m 5 and m 6 are uniquely determined by (c), then also m~ and m 3 by (a), and m2 and m 4 by (b), hence the unknown variables can be called 'observable'. Let, however, h~ = h~ and h ~ - h~. Then from (a) and (b) follows m 5 m 6 (h 2 -
-
0
) -
0
and assuming naturally m5 r 0 and m 6 :r 0, the equations are not solvable unless h~ - h~ and h~ - h~ (in which case they have an infinity of solutions). Let in addition h~ = h2, but let us have found h~ r h~. Clearly, the conditions are contradictory due to measurement errors. If we regard h~ and h~ as true values then the variables m5 and m 6 are uniquely determined by (c), but the remaining equations are not solvable. Generally, in a nonlinear system the solvability with respect to the unmeasured variables depends on the measured values and, as is frequently the case, the system is not solvable unless the measured values are adjusted by (nonlinear) reconciliation. In the above example however, a detailed analysis would show that the (iterative) reconciliation procedure would not converge for reasons of principle. Instead of speaking of observability/unobservability, one would rather say that the problem is not well-posed. See chapter 8 for more detailed discussion.
5.6
UNSTEADY ENERGY BALANCE
Recall the introducing paragraph to Section 4.7. Again, the use of unsteady energy balances is limited; we shall again consider only simple cases where the accumulation of energy in the node can be approximated in terms of averaged thermodynamic state variables. Recall now the introducing paragraphs to Section 5.1. The elementary reasoning leading to Eq.(5.1.1) can be modified, giving the balance dU Uin + Win "- Uout + Wout + Qout +
dt
where in addition U is internal energy accumulated in the node. The same consideration, including the terms P J V j in Win and Wout, leads to the balance dU
dt
+ZHj=Q-W j
Chapter
5 -
125
Energy Balance
where (with positive specific enthalpies) Hj > 0 for outlets, Q = -Qout, and W is work (per unit time) exerted by the node. Observe that the accumulation of energy is expressed by U (internal energy), not perhaps H (enthalpy). The general (simplified) energy balance can be obtained according to Appendix C from Eq.(C.26), where we neglect kinetic, potential (and electromagnetic) energy accumulated in the node. The other simplifying hypotheses are the same as in Sections C.4 and C.5. Hence in place of the balance (5.1.3) with (5.1.2) we finally have dU
I
,,.
+ Z/-/' S~ = Q'. dt i=1
(5.6.1)
Here, U is the integral over region N(the node)
U = ~ 9(YdV
(5.6.2)
N
where 9 is mass density and 0 specific internal energy. Clearly, the derivative
d U/dt can be, at most, only roughly approximated. We shall give two examples where such approximation is plausible. (a)
Imagine a reactor with fluidized bed of solid catalyzer; the reacting phase is gas phase. We can neglect the accumulation of energy in the reacting gas. The region N(the bed) is considered constant. We have 0 = / 4 - PV
(5.6.3)
where/-) is specific enthalpy, V specific volume, and P is pressure. We take P as a constant average value and V = 1/9 constant for the catalyzer bed. In the fluidized bed, temperature T can be considered spatially constant. Then, approximately dU
dt
~ pcpdV
dT dt
(5.6.4)
where Cp is (isobaric) specific heat of the catalyzer. Eq.(5.6.1) with (5.6.4) is the unsteady energy balance. (b)
Imagine a stirred homogeneous reactor, with liquid as the reacting phase. Region N is the liquid phase. We take again pressure P as constant. Then
126
Material and Energy Balancing in the Process Industries
(5.6.5)
U = H - PV
where
V - ~ dV
(5.6.6)
N is the volume of region N and H-
I 9/-)dV N
(5.6.7)
where/-) depends on temperature and composition of the liquid Let us now assume that the reactor is stirred in the manner that the liquid phase can be considered uniform. We then can make use of the classical definition of partial specific enthalpy of component C k OH
/)k-
~N k
(5.6.8)
where Nk is mass of species Ck in the mixture whose thermodynamic state is determined by the variables T, P, and the extensive variables N k (k = 1, ..., K). We further designate OH
C -
- Cp~ pdV N
OT
(5.6.9)
the heat capacity of the liquid mixture; its (isobaric) specific heat is Cp and the integral is total mass of the liquid, at given time t. With constant pressure we thus have dU
dT - C
dt
dt
K ^ dN k dV + E Hk -P ~ . k=l dt dt
(5.6.10)
The energy balance reads dT C ~ dt
K ,, dN k I + Z Hk + ]~/2/iJ k=l dt i=1
i -
Q'+ P
dV
.
(5.6.11)
dt
Recall that/)k is partial specific enthalpy of component C k in the uniform mixture, while H ~is specific enthalpy of i-th stream incident to the node. Q' is energy input by (5.1.2). ^
.
Chapter 5 - Energy Balance
127
The derivatives dNk/dt further obey the balances given in Section 4.7. The latter can be recast into reaction-invariant form, thus eliminating the (possibly unknown) reaction rates. On the other hand, if the reaction rates can be assessed then we can directly substitute, for dNk/dt, the terms of Eq.(4.7.1). Observe that in (5.6.11) we have, for stream i K
/T = Zly~/4~
(5.6.12)
k=
where/-]r~ is partial specific enthalpy of C k in the i-th stream. Hence the balance reads, as the reader readily verifies dT
C~
I K ,,. R K dV + ~ Z (H~: - Hk) yikJi + ~ ( Z Vk,:MkI?tk) W r - Q' + P . (5.6.13) dt i=1 k=l r=-I k=l dt
Here, if I is the unique outlet stream from the reactor, one can assume that its thermodynamic state will equal that of the uniform reacting mixture, at given instant t. Thus H~ =/4k for k = 1, ..., K, and the I-th summation term vanishes. Denoting K
r - 1, ..., R: Qr - kZ__lVk~Mk Hk
(5.6.14)
is (isobaric) heat of r-th reaction, at the thermodynamic state of the uniform mixture in the reactor. Putting m~ = -Ji for i < I (positive mass flowrates of inlet streams), the balance finally reads Qr
dT
dV
C ~ - Q' + P ~ dt dt
R
I-1
K
Z Q~W~ + Z Z (/t~-/-tk)Yk r=l i=1 k=l
mi .
(5.6.15)
Recall that Q~ < 0 for an exothermic reaction, by convention. The states of aggregation of the input streams are arbitrary, assuming thermodynamically consistent enthalpy values.
5.7
MAIN RESULTS OF CHAPTER 5
In practice, an energy balance is never thermodynamically rigorous; some less relevant terms are neglected, and other only approximated. Neglecting also the change of accumulation of energy in the nodes, such simplified energy balance is called enthalpy balance; see Section 5.1. As in Chapters 3 and 4, the
128
Material and Energy Balancing in the Process Industries
units (nodes) connected by material streams (arcs j ~ J) constitute the graph G[N,J] with environment node added to the set N u of units. The set N u is again partitioned according to (4.8.3) into splitters s ~ S and the other n ~ T u. In addition to the streams j ~ J, we consider net energy streams thus arcs i ~ E; they represent flow of energy expressed in energy units (say, watts) irrespective of whether (possibly) the energy is associated with mass of a heat transfer medium, not mixed with other streams. In addition to the nodes n ~ N u, we then generally consider in addition certain nodes d ~ D E regarded as energy distributors; they are incident only with arcs i ~ E. By convention, the arcs i ~ E are oriented; see (5.1.8) where we consider also n = d ~ D z. Then the whole set of constraints (enthalpy balance) is (5.1.9), (5.1.7), and (5.1.10);/4J is specific enthalpy of material stream j, qi is flow of energy in net energy stream i ~ E. Certain streams i ~ E can represent heat flow in a heat exchanger; see Remark (ii) to Section 5.1, or also Remark (iii) ibid. According to Figs. 5-2 and 5-3, the units where indirect heat transfer (through a dividing wall) takes place are formally divided into two parts, so as to take account of the separate mass (and chemical components) balances of each of them. However approximated, in principle the enthalpy data have to be thermodynamically consistent; see Remark (iv) to Section 5.1. In Remark (v) ibid., we give some numerical estimates of terms neglected in the complete energy balance (kinetic and potential energy); also mechanical energy supply to liquid pumps and agitators can usually be neglected in the total energy balance. The technological system extended by net energy streams and energy distributors can be represented by graphs G and GE; see Section 5.2. Here, the additional Gz is of node set N E = {no} u T, u D z
(5.7.1)
where n o is the environment node, and of arc set E; we have T u = No - S where nodes s e S (splitters) are not incident with any arc i e E. The reduced incidence matrix of Gz is D (5.2.1); its rows are partitioned giving submatrices D u (nodes n e Tu) and D e (nodes d e DE), where D E can be empty thus D e absent. The reduced incidence matrix of G [N, J], thus C is partitioned according to (5.2.4); here, the rows are partitioned according to the decomposition Nu = Tu u S, and the columns according to the decomposition J = Ju u J' where the arcs j e J' (5.2.2) are incident to some of the splitters, the arcs j e Ju are the remaining ones. Thus the nodes n e T u can be incident with arcs j e Ju (submatrix Cu), and also be adjacent to certain splitters via some arcs j e J' (submatrix C~. The nodes s e S are not incident with any arc j e Ju. Thus the submatrices Cu and Cspli t in (4.8.6 a and b) are partitioned
130
Material and Energy Balancing in the Process Industries
plus the equation C"m' = 0, which is the mass balance of the subset of splitters. The latter equation (included in the balance Cm = 0) is an algebraic consequence of the chemical component balances. If some heat transfer rate qi in an exchanger is not given a priori, it can be eliminated by merging the two endpoints of arc i (say n~' and ni" in T u ), thus by summation of the two rows (ni' and ni") in submatrix (Cu, C',Du ), which corresponds to the summation of the two scalar equations in (5.7.5)1. Of course in the components (mass) balance, the nodes are not merged. The constraints (5.7.5) require having a thermodynamically consistent database for the specific enthalpies/~J as functions of temperature, pressure, and composition (mass or mole fractions); the pressure dependence can often be neglected. The mass fractions Yk and mole fractions Xk of components Ck are interrelated (C. 12) Yk
xk =
K y~
thus
mk Z
1=1 M l
Mk Xk
(5.7.6)
Yk --
K
Z m~x~ l=l
in a K-component mixture; M k is formula (mole) mass of C k, The partial specific enthalpy/~ of Ck in stream j equals H~,/M k where H~, is partial molar enthalpy, and we have generally K
.
^
.
I?-P= Zly~, H~,
(5.7.7)
k=
where all/4~ (j e J) have to be thermodynamically consistent. The constraints (5.7.5) are written along with the constraints (4.5.2) thus (4.8.9) for n e T u , and (4.8.6b-d). See Sections 4.6 and 5.3 as an example. It is also possible to consider the constraints (4.8.6a-d) with explicitly written (integral) reaction rates W~ (n), and introduce the standard (isobaric) reaction heats Q~ (n) (5.4.2). If there are K(n) chemical species in the streams j incident to node n, we have K(n)
Or(n) =
k~__lVkr(n) "'k/4(0)
( r - 1, ..., R(n))
(5.7.8) m
with stoichometric coefficients Vkr(n ) and standard molar enthalpies --k14(o)ofspecies Ck; the standard heats can also be given directly for the reactions considered. Observe that Q~ (n) < 0 for an exothermic reaction. We then have the node balances (5.4.3) with (5.4.1) for n ~ T u. Thus, for any stream j, we introduce the quantity hj that represents the sum of increments due to bringing the components
Chapter 5 - Energy Balance
131
from their standard states into the actual state of the mixture in the stream, hence hj = Z y~ (/-)~ - "'k~r(~)
(5.7.9)
k
according to (5.7.7), with summation over components Ck present in stream j; (0) _ H(0)/Mk" [For example if the standard state of aggregation of all the "'k components is liquid, as well as in the mixture (and neglecting the pressure dependence and the enthalpy of mixing), we have hj - c~ (T j - T0) where TO is standard temperature, T j temperature of the stream, and c~ the (isobaric, integral mean) specific heat of the mixture.] We then partition the streams into Ju and J' and denote by hu resp. h' the vector of components hj for j e Ju resp. j e J', in lieu of lau resp. 11' in (5.7.3 resp.4). We further introduce the vector qR of components R(n)
qRn = - Z Or (n) W~(n) (n e T u)
(5.7.10)
r=l
(zero for a nonreaction node). Then along with the constraints (4.8.6) we have Cu (diagmu)flu + C' (diagm') fi' + Ouq + qR = 0 Deq Sh'
= 0
(5.7.11)
= 0
with 'source term' (vector) qR due to (standard) reaction heats. It can happen that our information is limited and the detailed chemical components balance not needed. Then only 'heat and mass' balances are set up; see Section 5.4. A typical example is a heat exchanger network. In the equations (5.7.11), the quantities h j (5.7.9) are approximated as functions of temperature only, say ~t~ (T j ) in stream j. Formally, we can consider in addition certain 'source terms' s(n) in some nodes n ~ T u , for example due to heats of reactions, a priori assessed or regarded as unknown parameters to be computed from the set of constraints (given measured values of mass flowrates and temperatures). For example in a heat exchanger network, kt~(T j ) - CpJ (TJ-To) is the sensible heat of stream j, with temperature T j , specific heat.c~, and reference temperature To. We introduce the vectors h~u of components hJ~,j ~ Ju, and h'~ of components hJ~ for j ~ J' (5.4.8), then the vectors hsu (5.4.9) of components h~ (j ~ Ju) and h's (5.4.10) of components h~ for j ~ J'; the quantity hJs.- mj hJs is the 'heat flowrate' in material stream j, with 'heat content factor' his . Finally s is the vector of components s(n), n ~ T u . Then the heat and mass balance is represented by the equations (5.4.6). Again, the heat transfer rates q~ through dividing walls can be eliminated by summation of the two scalar equations in (5.7.11)~, viz. the n'i-th
Material and Energy Balancing in the Process Industries
132
and n'i'-th where n] and n'~ are the two endpoints of arc i (~ E). Consider in particular a heat exchanger network without source terms (s = 0), without energy distributors (DE = O), and such that all the qi (i ~ E) represent heat transfer rates in exchangers (thus both endpoints of any i ~ E are in T u , not perhaps no). Let then, in (5.4.6), C~ resp. C'* be matrix obtained from Cu resp. C' by the summation of rows, separately over each couple {n], n'i'} of endpoints of arcs i ~ E. The balance then reads Cumu + C'm' = 0 C"m'
= 0
C~ hsu + C ' * h ;
- 0
(5.7.12) Sfis
- o
where the summation is not performed in the first two vector equations. The matrix C~ is of full row rank if (as assumed above) C a is. The minimal set of balance constraints (multicomponent chemical species balance and energy balance) will be formulated and analyzed in Chapter 8, Section 8.3; it is a set of independent scalar equations taking still account of all the available information. Solvability problems arise when certain variables' values are given a priori; see again Chapter 8. For the moment, let us only recall Section 5.5 as example of a complication. Formally, it is also possible to set up a balance taking into account the change in accumulation of energy in certain nodes; see Section 5.6. The general (but again simplified) form is (5.6.1). Here, the change in accumulation is represented by the term dU/dt where t is time and U the integral (5.6.2) of internal energy in the node. The possibilities of using such balance in practice are limited. The example of a stirred homogeneous reactor (5.6.5-15) is perhaps representative. [Note that in contrast to (5.7.8), Q~ (5.6.14) is reaction heat at the actual thermodynamic state of the mixture.]
5.8
RECOMMENDED LITERATURE
A rigorous thermodynamic formulation of the energy balance requires considering nonideal systems; see for example Holland (1977). For a complete integral balance, see then Veverka and Madron (1981). In a mathematically formal manner, the problems of solvability of mass and energy balance equations with given (measured) data were analyzed by Stanley and Mah (1981 a and b). Less formal but nore general is the analysis by Kretsovalis and Mah (1988); the authors consider multicomponent mass balance along with energy balance. See also Mah (1990).
Chapter 5
-
Energy Balance
133
Holland, C.D. (1977), Energy balances for systems involving nonideal solutions, Ind. Eng. Chem. Fundamentals 16, 143-168 Kretsovalis, A. and R.S.H. Mah (1988), Observability and redundancy classification in generalized process networks, I and II (Algorithms), Comput. Chem. Engng. 7, 671-703 Mah, R.S.H. (1990), Chemical Process Structures and Information Flows, Butterworths, Boston Stanley, G.M. and R.S.H. Mah (1981a), Observability and redundancy in process data estimation, Chem. Eng. Sci. 36, 259-272 Stanley, G.M. and R.S.H. Mah (1981b), Observability and redundancy classification in process networks (Theorems and algorithms), Chem. Eng. Sci. 36, 1941-1954 Veverka, V. and F. Madron (1981), Differential and integral energy balances of complex chemically reacting systems, Chem. Eng. Sci. 36, 825-832
This Page Intentionally Left Blank
135
Chapter 6 ENTROPY AND EXERGY BALANCES This chapter deals with thermodynamic analysis of a technological process from the standpoint of exploitation of energy. It is included in the book only marginally, as another example of balancing a quantity associated with material flow. This quantity, called exergy, is intuitively interpreted as 'available (exploitable) energy', and its 'balance' is, in fact, an imbalance: due to the 2 "d Law of Thermodynamics, in any process some exergy is wasted (lost). The loss of exergy can be computed, and possibly compared for different alternatives of the process. The relation to the 2 no Law is explained in more detail in Appendix D.
6.1
EXERGY AND LOSS OF EXERGY
Let us have a technological unit (node) in steady-state operation, schematically W
F"
w-
materials streams
9
"1
0t
w, ~
boundaries of the node
Fig. 6-1. Node balance
The streams incident to the node are oriented according to Fig. 6-1. Thus oriented mass flowrate F i > 0 for inlets, F i < 0 for outlets, W' is mechanical power supply, and Q is heat supply per unit time; we consider the heat supply through the walls divided into several streams Qh. If compared with the notation in (5.1.1) we have F i - -Ji and W' = -W. Electromagnetic phenomena are not considered, hence the steady-state enthalpy balance reads
136
Material and Energy Balancing in the Process Industries
'~l/2/iFi + ~h Qh + W' - 0
(6.1.1)
where/2f is specific enthalpy of i-th stream. According to Appendix D, the 2 nd Law can be formally written as an 'entropy balance'
E S~F i + Z Q h + Qs = 0 i
h
(6.1.2)
Th
where S ~ i s specific entropy of i-th stream. The sum over indices h is an approximation for the integral in (D.11), where the whole heat transfer surface W has been divided into elements with temperatures Th. Observe that W is a fictitious surface of zero width. Considering an actual wall we have to decide where the surface W is traced, because there is a temperature difference between both sides of the wall. If we trace W near the outer side then Th is temperature of the outside medium. The equation (6.1.2) is, in fact, an operational definition of the entropy production term Qs (more precisely integral entropy production rate). Its continuum thermodynamic definition is by (D.10) where the entropy production density qs is determined by the irreversible processes in the node; for example if tracing the wall W at the outer side of the node then the entropy production due to heat conduction under temperature gradients in the wall region is included in Qs. The 2 nd Law claims that Qs > 0
(6.1.3)
for any technological (thus 'natural') process; the limit case Qs = 0 corresponds to an idealized ('infinitely slow') process under thermodynamic equilibrium. So far, all was pure (though simplified) contemporary thermodynamics. The following step goes back into the past century, into the time of Carnot cycles. We now choose a temperature To , that of the 'environment' regarded as an infinite heat reservoir (bath); say To = 273 K, or To = 298 K, according to the season. Multiplying Eq. (6.1.2) by To and subtracting from (6.1.1) we have
Z(/2P - T0~)F i + Z T~ )Qh + W' - ToQ s - O . i h ( 1 - --~-h
(6.1.4)
Here,
TIh = 1 -
r0
(6.1.5)
Chapter 6 - Entropy and Exergy Balances
137
is the traditional Camot efficiency: thus 'lqh Qhis 'mechanical work content' in the stream Qh of heat, i.e. the work (per unit time) that could be hypothetically gained by 'reversible transfer' of heat Qh from temperature Th to the temperature To of the environment (our infinite reservoir). Let us designate Eix = ( ~ - To ~i ) Fi
(6.1.6)
and call it the exergy(-flowrate) of the i -th (oriented) stream. If we imagine an idealized reversible (equilibrium) process then Qs = 0, and the balance (6.1.4) can be regarded as the balance of'available (exploitable) energy', from which Eix is attributed to the i-th material stream, mutually transformable with rib Qh ('exergy of heat flow') and W'. For any natural process, we have Qs > 0 and some exergy is lost (wasted). The term To Qs > 0
(6.1.7)
is thus the loss of exergy (per unit time) by the (steady-state) process in the node. Instead of 'available energy' (thus exergy) one says also briefly availability. In fact, there can be found subtly different meanings of the three terms, due to historical reasons; we can disregard them.
6.2
SIMPLE EXAMPLES
Clearly, computing the loss of exergy is equivalent to computing the term Qs. In addition the latter is, by (6.1.2), independent of the choice of TO. So let us give the expressions for Qs in certain simple types of industrial units. For the sake of simplicity, the terms of the balances are computed using approximate thermodynamic relations. Example 1. Steam generator
TQ"
.I 1 -
I
T4 2
-
b)
1
-
I
t 3 Fig. 6-2. Steam generator
138
Material and Energy Balancing in the Process Industries
According to scheme a), hot combustion products (1) are cooled by heat transfer (Q') and leave the unit as stream 2. We have Q = -Q' in Fig. 6-1. We trace the boundary W at the steam side of the generator, hence we can approximate T = Tb as the constant boiling point of water at given pressure. If m (= m~ = m2) is the gas mass flowrate and if the specific heat of the gas is approximated by a constant Cp, the balance (6.1.1) reads mCp (7"1- T2) = Q'
(6.2.1)
where Tj is temperature of stream j. Using the relation (D.4), we have the 'balance' (6.1.2)
Qs (a) -
O'
Tl
- mCp l n ~
(6.2.2)
where (a) refers to the scheme 6.2a, from where immediately the expressions for Qs in terms of 7'1 and T2 . In terms of T~ and Q' we have
Qs (a) -
Q'
7'1
- mCp In
Tb
-
Q'
Q'
+ mCp In
O
~
_
(6.2.3)
mCp T 1
Tb
T l-
mCp
According to scheme b), the steam side of the generator is included in the node and the streams 3 resp. 4 represent feed water resp. produced stream. We approximate the specific heat of liquid water also by a constant, Cpw, and let /_, be the evaporation heat at temperature Tb; we neglect the pressure dependence for liquid water enthalpy. Then, by (6.1.1) ^
(6.2.4)
mCp (T 1-T2) - m w (Cpw(Tb-T3) + L)
where mw is mass flowrate of water, thus also of produced steam. The specific entropy ~4 of steam is computed following a thermodynamic path from temperature T3 to Tb for liquid, then evaporation at Tb . The hypothetical path is reversible; thus at the boiling point, we have the equilibrium condition (~(vapour) - (~(liquid), with Gibbs function (D.6). We thus have
S(vapour) - S(liquid) -
L
(6.2.5) ^
quite generally, with evaporation heat L and boliling point Tb of any liquid.
6 - Entropy and Exergy Balances
Chapter
139
According to (D.5), we neglect also the pressure dependence of liquid water entropy. Then
~4
~3 _
-- Cpw
In ~
+
L
(6.2.6)
and the entropy balance (6.1.2) reads
L
Qs (b) - -mcp In ~
+ mw (Cpw In ~
+
L Tb
).
(6.2.7)
The enthalpy balance of the steam side reads mw (Cpw (Tb-T3) + L) = Q ' .
(6.2.8)
So if feed water is introduced at temperature Tb , by T3 = Tb we have Q' - mw L and Qs (b) - Qs (a). Let thus T3 = Tb for simplicity. According to (6.2.2) and (6.2.1), putting Qs - Qs (a) - Qs (b) we have
(say) ~ =
To Qs
Q'
-
To
rb
-
To
T, ln~.
T,-T2
(6.2.9)
T2
Here, Q' means simply steam production in energy units and the whole expression represents loss of exergy per unit steam production. With constant T0, is function of Tb , T 1 and T2 . Clearly, e decreases with increasing Tb , thus with increasing pressure of the produced steam (given 7'1 > T2 , with the condition Tb < T2 so as to make the process thermodynamically possible). The conclusion is quite plausible: with higher Tb, the energy is obtained in a 'nobler' form. We can also examine the dependence on 7"1 and T2. Denoting f = e/T o we find /)f
1 -
~T,
T,(T,-T 2)
Of
1 -
~T2
q~(x) where x =
Tz(T,-T2)
T2
lnx
7"1 ~(y) where y =
T~
-1>0
< 1 and q~(x)x-1
lny > 1 and ~ ( y ) -
T2
hence the derivatives are positive and we have also
>0
1y-1
140
Material and Energy Balancing in the Process Industries
3e
38 > 0 and
OT l
> 0.
(6.2.10)
OT2
For example with the following values T0 = 2 7 3 K
T1 = 1 2 0 0 K
Tb = 400 K
T2 = 450 K
we have = 0.325 . Replacing T~ by T ] -
1400 K we obtain
e' = 0.356 ; leaving T 1 - 1200 K but setting T~ = 500 K in place of T2 we have e" = 0.341. The formal result (6.2.10) can be physically interpreted as increased irreversibility: on the average, increasing T1 or T2 heat flows from even higher temperatures to the final Tb . Still, what kind of inference can be drawn herefrom is left to further speculations. For instance increasing the combustion temperature 7'1 can mean smaller excess of oxygen in the combustion chamber; it is not immediately clear why more 'exploitable energy' is thus wasted in the generator per unit steam production. See the next example, after formula (6.2.12).
Example 2. Imperfectly insulated pipeline We usually neglect the heat loss terms in the balances. This example is an exception.
IQ"
! ! 1
.
!
.
.
! .
! !
.
I" !
2 i
~) Fig. 6-3. I m p e r f e c t l y i n s u l a t e d p i p e l i n e
1
. . . . .
TQ" !
,.-~ I'
'
i
!
,
b)
,.-2
Chapter 6 - Entropy and Exergy Balances
141
We consider a segment of pipeline as drawn in Fig. 6-3. According to scheme a), the boundaries consist of two cross-sections (stream 1 in, stream 2 out), and of the outer side of the wall (possible insulation included). With Q' = -Q (heat flow into the atmosphere), the balance (6.1.1) is again of the form (6.2.1); m (= m~ = m 2 ) is mass flowrate of the fluid, Cp is specific heat, Tj is absolute temperature at cross section j. Let T' be the outer wall temperature; if the difference 7"1-7"2 is not too great, we can consider T' as a constant average value. We then have the entropy production Qs(a) again by formula (6.2.2), with T' in place of Tb. According to scheme b), the boundary is placed near the wall, but at some distance where the temperature is approximately equal to the atmospheric temperature To . Although the heat flow is mainly due to convection by turbulence, we do not consider any net mass flow across the boundary traced in the atmosphere. Hence the balances are of the same form as in case a), only T' is replaced by To . We thus have, in case b)
Qs ( b ) - Qs (a) + Q'
1
1
To
T'
(
(6..2.11)
The last term represents entropy production by heat flow between temperatures T' and To . Clearly, it is the expression
To Qs (b) = Q' - mcpT o In
(6.2.12)
that can be regarded as the actual loss of exergy, because the heat at temperature T' is not utilized, thus also lost. The example itself is rather trivial. Still, imagine for example combustion gas from a steam generator (stream 2 in Fig. 6-2). Suppose that the stream goes into the atmosphere. It is difficult to compute the entropy production by mixing the stream with the atmosphere. Nevertheless, some (basically exploitable) energy is irreversibly lost. The loss can be estimated by the following trick. In a thought-experiment (quite in the style of traditional thermodynamics), let the gas be led through a tube with outer temperature To; if the tube is of infinite length, the final temperature will be also To , that of the environment. We then can use formula (6.2.12) where our T2 (temperature of stream 2 in Fig. 6-2) is substituted for T~, and To for T2 . In place of Q', we now set mCp (T2-T o). Then, if Qs is the entropy production,
To Qs - mcp (T2- T o ) - mCp T o In
To
(6.2.13)
142
Material and Energy Balancing in the Process Industries
By the way, in the same style, let us compute the work (per unit time) exerted by an infinite series of 'infinitesimal reversible Camot cycles' transferring infinitesimal heats dQ - -mCp dT from T to TO, with Carnot efficiency (1 - To~T). We obtain
~2(1 - To
To
,
(6.2.14)
--T- ) mCp dT = T o Qs
This hypothetical work is lost, since the latter experiment (with Carnot cycles) has not been realized. It should be noted that Qs is not the actual entropy production (the latter would also include terms due to diffusion of the gas components etc.), and TOQs cannot be generally put equal to the lost 'exergy of the exit gas', thus to m (/)2-T0 ~2) by (6.1.6). The latter value will depend on the zero levels adopted for enthalpy and entropy in the whole set of production units; for instance in the combustion chamber, one will take zero levels rather for chemical elements such as C (carbon), thus the final CO2 will be assigned negative enthalpy value at its standard state. It is not always this easy to set up the whole 'exergy balance' of a plant, and the less to draw inference from it. Generally, we can compute the entropy production (or loss of exergy) in individual nodes, but the final judgement will depend on how the node is included in the technological system. See also Sections 6.3 and 6.4. Example 3. Heat exchanger
r/'l m
I.
y ! !
1
I ! !
T2 Ff
m
r,
T">T"
Q>O F
T~
2
Fig. 6-4. Heat exchanger
We consider a countercurrent heat exchanger. The hot stream, of mass flowrate m", is cooled from temperature T2" to Tl"; by the transferred heat Q the cold stream, of mass flowrate m', is heated from T~' to T2'. Hence m"cp" (T 2''- T';) = Q = m'c o' (T 2 - T'~ )
(6.2.15)
Chapter 6 - Entropy and Exergy Balances
143
with specific heat %. Consequently
a t!
T2 -
T2 -
t!
m"Cp
+ T~ (6.2.16)
O m' c'p
+ T~
and denoting A - T'~- T; (> 0)
(6.2.17)
we have 1
T ~ - T~ - Q m
tt
1 tt
Cp
m
~
Cp
+A
;
(6.2.18)
let us assume m' Cp' _>m"Cp", thus A is the smallest temperature difference between the streams. The entropy balance will be written for the whole exchanger, with the heat transfer surface inside. Thus, using again (D.4) with constant Cp, we have ~2_~1 = Cpln(T2 / T 1 ) and the balance reads
Qs = m'Cp' In
T2
T ',
- m"Cp In
T2
(6.2.19)
T ';
as corresponds to the orientation of the streams. With the above equalities, we have
Qs = m' cp' In 1 +
Q ) -m"c~ In
m'c' T;
O
1 +
m"Cp (T' l + A)
(6.2.20)
Given the specific heats and flowrates, Qs is expressed as function of Q, A, and
T'l. If Q = 0 then clearly Qs = 0. We have 3Qs
T ~ - T~
bQ
T 2 T~
(6.2.21)
as the reader readily verifies. Hence so long as T~ > T2 we have Qs > 0 whenever Q > 0. In the limit case with m'C'p = m"c'~ and A = 0 we have T' - T" in the whole exchanger, thus Qs = 0; hypothetically, we can still admit Q > 0 in
144
Material and Energy Balancing in the Process Industries
(6.2.15), which corresponds to a reversible heat transfer under vanishing temperature difference between both streams (thus with infinite area of the heat transfer surface). We further find, at constant Q and T'~ ~)Qs
~A
-
Q
(6.2.22)
T'; T 2
positive whenever Q > 0. Thus Qs is minimum if A - 0 thus T'l = T'; ; assuming m' Cp' > m"c~ we have still T i,2 > T2, and Qs > 0; the process is no more reversible but given TI' and Q, the minimum entropy production (or loss of exergy) will be again attained in the limit at the expense of an infinite surface for heat transfer. It is also easy to verify that increasing m'C'p in (6.2.20) makes Qs increase. Observe that with given A this means increasing the other temperature difference (6.2.18); the average driving force for heat transfer increases, and so does the entropy production. Finally the reader can verify that, at constant Q and A 3Qs
Q
1-
m
aT]
T'~ T~
T'; T2") r', T;
< 0
(6.2.23)
whenever Q > 0 and T" > T' in the exchanger. Using (6.2.15) in (6.2.10) we have
T~ Q
= . To . . In . 1 + T'2-T1' ) - . To . . . In T'1 T2-Tl T2-T l
1 + T'~-T'~ T'I+A
.
(6.2.24)
With given temperature differences and transferred heat Q, the loss of exergy increases with decreasing inlet temperature T'~ of the cold stream. The conclusion is, however, more difficult to interpret in terms of lost exploitable energy. Nevertheless, if the reader likes thought-experiments with Carnot cycles, he can imagine the following one. Let infinitesimal quantity of heat dQ be transferred from temperature T" to T'. If dQ were transferred from 7" to TO by a reversible Carnot cycle, the work thus gained would be
dW"-(1- T~ ) d Q . T' But we have transferred our dQ from T" to T' irreversibly. What remains is still the hypothetical gain of work
145
Chapter 6 - Entropy and Exergy Balances
To
dW'-(l
The difference 1
T"-T'
1
dW"- dW' = TO T'
d Q - TO
T"
dQ T'T"
is the lost work. Clearly, with the difference 7"'-T' fixed the lost work decreases with increasing T', in accord with our statement above. Observe that if the difference tends to zero then the lost work is inversely proportional to the square of the absolute temperature. See Remarks at the end of this section. In Fig. 6-4, let us imagine a narrow segment of the countercurrent heat exchanger, with temperatures T' and T" and transferred heat dQ. In the same manner as in (6.2.15) we find the 'infinitesimal balances' dQ - m"c'~ dT" = m'Cp' dT'
and by integration from cross-section 1 to cross-section 2 we obtain the integral of (dW" - dW')
To
'2 dT' ~ Cp T~
m' '
'
T'
T~ dT")
- m"c"
P
~
T~"
T"
- To Qs
where Qs is the entropy production (6.2.19). Thus the integral of the 'lost work' equals just the loss of exergy TOQs. If nothing else, the result is remarkable theoretically: thermodynamics works. Another question is, however, what kind of energy has been actually wasted in TOQs at low temperature levels (where TOQs is relatively greater). There can be no actual use of this 'low-potential heat' in a real plant. See Section 6.3, Subsection 6.3.1.
Example 4. Pressure reduction by throttling
PI y
v
2 Fig. 6-5. Pressure reduction
P1 ~ P2
146
Material and Energy Balancing in the Process Industries
The pressure of gaseous stream, of mass flowrate m, is reduced from P~ to P2. The enthalpy balance implies /~2 _ / ~
(6.2.25)
for specific enthalpies, and Qs = m( ~2-~' ) 9
(6.2.26)
Generally, knowing the (/~, S) dependence with parameter P (pressure), the difference in (6.2.26) can be found at given/-) as S(/4, P2) - S(/), P~ ). Note that d/~/- 0 implies, in the (T, P) coordinates dT+
dP- 0
,9T
,9P
hence with (C.21 and 22) f'-T~ dT = -
af, /gT
dP
(6.2.27)
Cp
at constant/4. Thus, by (D.4 and 5)
dS= Cp dT - c)l~"dP T
,9T
equals ^
dS = -
V
dP.
(6.2.28)
T Hence ~2 > ~1 as P2 < P~, thus Qs > 0 by (6.2.26) and given the initial state at cross-section 1, Qs increases with decreasing P2. The conclusion is in agreement with the intuition: some exploitable work (power) is lost by the throttling. An estimate can be found as follows. From the equation of state PV-
zgmT
(6.2.29)
with gas constant R m per unit mass and compressibility factor z, we obtain
C h a p t e r 6 - Entropy and Exergy Balances
147
dP as
(6.2.30)
-" - z e m ~
P Approximating z by a constant Z gives the loss of exergy
To Qs = mRm To z In
P1
(6.2.31)
P2 In particular for an ideal gas (z = 1) this equals the power exerted by isothermal expansion from P1 to P2, at temperature To; this amount is lost by the throttling. We also conclude from (6.2.28) that for a liquid, the loss of exergy will be usually negligible, as V is relatively small for a condensed phase. If the fluid is an ideal gas, let us expand it from P1 to P2 isothermally at its actual temperature T (> TO). With ~ = 1 in (6.2.31) the power exerted will be ^
W-
To Q s
at the expense of heat supply Q - W. If the heat were transferred reversibly from T to TOby a Carnot cycle, we should gain
W
~
1
TO
T - 1)ToQ s
hence in the total, we have lost W - W' = ToQ s
which is just the loss of exergy.
Example 5. Blending of streams with different temperatures
Fig. 6-6. Blending of streams
148
Material and Energy Balancing in the Process Industries
T w o streams of the same composition, stream j with mass flowrate mj and temperature Tj, are blended according to Fig. 6-6. The balances read m~ /~l + m2 /_~2 __ (m l+m 2 )/.)3
(6.2.32)
and m l
+
m2
+ Qs - ( m l + m 2 )
^
(6.2.33)
9
^
Taking H = 0 and S = 0 at temperature To we obtain, with constant specific heat Cp m 2 Cp ( T 2 - T o ) - (m,+m 2 ) Cp (T3-To )
m 1 Cp ( T l - T 0 ) +
thus m l T1 + m2 T2 T3 =
(6.2.34) m1+ m 2
and
7"1 m 1c o
In
7"o
+ m 2co
In
Vo
+ Qs - (ml+m2) Cp In
7"o
hence
To Q s = cp T o
m 1 In
7"3
(6.2.35)
+ m 2 In
T~
T2
with T 3 by (6.2.34). Clearly, if T1 - 7'2 then also T 3 = 7'1 - T2 and TOQs - 0. Denoting A-
T 2 - T,
(6.2.36)
Qs is function of T~ and A, given m~ and m2. The reader can verify the derivatives ~Qs ~A
- Cp
m 1m 2
A
ml+m 2 T 2 T 3
(6.2.37)
Chapter 6 - Entropy and Exergy Balances
151
(C. 12). If i-th stream is of mass flowrate mi, with mass fraction y~ of component Ck,then the mole flowrate nki o f C k equals i _
nk
1
i
-Mk Ykmi
(6.2.48)
and the mole fraction of Ck equals, in a K-component mixture i nk
x~= K
(k = 1, ..., K)
(6.2.49)
i ~E n~ l=l
Let us now return to our Fig. 6-6. Stream i is of mass flowrate mi, with composition determined by mole fractions x~, according to (6.2.48 and 49); recall that only K-1 mole (or mass) fractions are independent. For simplicity, let however (temperatures) (6.2.50)
T~- T 2 - T (say). The component balances read, first in mass units y~ ml + y2 m2 = y3 (m,+m2) .
(6.2.51)
Pressure P being fixed, the specific enthalpy /4ok of pure Ck will be written as Hok (T) at temperature T. Hence using the additivity (6.2.47), the enthalpy balance reads K Z k=l y ~ H o k ( T ) m
1
K + k~l Y2/Q~
K = k~l Y 3 / ~ ~
hence by (6.2.51) K
K
Z yk3/)Ok (7) -- k__E1y3/)Ok (T3)
k=l
where the LHS is specific enthalpy of the stream 3 mixture at temperature T, the RHS that of the same mixture at temperature T3 Because specific enthalpy of a given mixture increases with temperature, we must have also T3 = T hence the temperature remains unchanged.
(6.2.52)
Material and Energy Balancing in the Process Industries
132
In the entropy balance, we shall make use of the formula (6.2.45) with (6.2.48 and 4 9 ) H e n c e , in i-th stream m i S,,.~ -
~K
k=l
r/ki (S0k-Rlnx~)
(6.2.53)
m
where Sok means molar entropy of pure Ck at the given (T, P), the same for all streams. Here, rtki a n d x ki are k n o w n for i = 1 and 2. Because the n u m b e r s of moles remain conserved, we have the balances (6.2.51) in mole units
Xk
I + ~
n2 -
X3k(nl+n 2)
(6.2.54)
where K n i
l=l
nl
9
,,,-,.--,..-,.-,/
C o n s e q u e n t l y the entropy balance reads
Qs
=
K k~l n3 (S~
K
Rlnx3) -
k~l
K n~ (Sok- Rlnx~) - k=~l n[ (S0k- Rlnx~) -
K (n 3 - n k1_ n 2k ) S- o k + R K - n k31nX3k) = 22 Z (n l l n x 1 + n 21nX~k k k=l k=l w h e r e rt k3 (/'/~ + rtk 2) = 0. Here, we put formally (limit value) XklnX k -- 0 if Xk = 0, thus if c o m p o n e n t Ck is absent in some s t r e a m . Hence _
Qs=R
K Z k=l
1 In - -
nk
X3
+
2 In
nk
(6.2.56)
/
X3 /
where rt 1 n2 x3 - n~ + n 2 x~, + n l + n 2 X2k
(6.2.57)
with (6.2.55) for i = 1 and 2. In this manner, the entropy production is d e t e r m i n e d by the given parameters of the inlet streams 1 and 2. It is seen immediately that if the streams 1 and 2 are of the s a m e 1 c o m p o s i t i o n then Qs - 0, because thus ~ = x k = ~ . It can be shown quite formally that otherwise Qs > 0. 1
1
The idea of the proof is as follows. One sets Yk(t) = Xk + Pk t where Pk = ~ - Xk 9 One then examines the function Qs (t), where Yk(t) is substituted for ~ in (6.2.56) with i i (6.2.57) and nki = nXk. One can show that Qs (0) = 0 and (derivatives) Q~ (0) = 0, Qs (t) > 0 for any t. Hence Qs (1) > 0, with Qs (1) = Qs (6.2.56).
153
C h a p t e r 6 - Entropy and Exergy Balances
Let in particular streams 1 and 2 consist of pure species C~ and C2, respectively. Then /,/1
x] -
?/2
and
n 1+ n 2
x23 -
/,/1 +
(6.2.58)
n2
and 1
1
Qs = R (n 1 In _-S-_3+ n2 In ~ X1
)
X~
hence Qs = - R(n ~ln x~ + n 21n x3) = - R(n' + n 2) (x~ln x~ + x~ln x~).
(6.2.59)
The meaning of the entropy production can be illustrated by considering an inverse process, viz. separation of components; see the next example.
Example 7. Separation of components The following example is a higly idealized example of absorption with solvent regeneration. Gas mixture of components C~ and C2 is separated by absorption of C2 in a solvent where C1 is insoluble, and which can be .regenerated by desorption of C2 under reduced pressure and heat supply. The solvent itself is of negligible equilibrium vapour pressure (nonvolatile) at the desorption temperature. The gas mixture (C1, C2) is ideal. 1
c
~- Ct
- -
pressure reduction
I
Qm
p I I I
win
Fig. 6-7. Absorption unit with absorber A, desorber D, cooler C, pump P, and vacuum pump VP
MaterialandEnergyBalancingin the ProcessIndustries
154
Mixture (C~, C 2 ) is separated in absorber A. The fraction of C2 in outlet stream 1 is neglected. Liquid solvent containing absorbed C2 flows into desorber D, where heat Qin is supplied, and is then pumped through cooler C back into A. From C, heat Qout is withdrawn. The power supply to pump P and vacuum pump VP is Win. The outlet stream 2 from VP is pure C2. The energy balance reads
Qin + Win "- gtlflp (Zl-Z3) -t- n2f2p (Z2-Z3) + Qout
(6.2.60)
because the enthalpy of the ideal gas mixture is simple sum of enthalpies of the components; nj are mole flowrates, C~ are (constant) molar heats of streams (pure components) j = 1 and 2 (n3=nl+n2).The entropy balance (inequality) reads
0
Qout ~
QS
--
Oin -
Tout
-I" n 1
Rlnx31 + n 2 Rlnx~2 + n~Clp In
Tin
T1
T3
+ n 2 ~ In
T2
T3
as the reader can readily find using (6.1.2) and (6.2.53). Here, we have denoted by Qs the entropy production in the separation unit. Hence
Qout
-
Lut
Qin + n 1 1 T1 Co In + n2 ~ln Tin T3
7"2
=Qs, +Qs >Qs
(6.2.61)
T3
where Qs is the entropy production by blending components C1 and C2 according to (6.2.59). Thus if the mixture has been made up from the components by blending at temperature T3 , TOQs was the loss of exergy. The re-separation of the components according to our scheme requires some heat supply Qin at temperature Tin and heat Qout is withdrawn at temperature Tout , obeying in addition the balance (6.2.60), possibly with power supply Win. For simplicity, we take Tin and Tout as constant on the heat transfer Surfaces. Using (6.2.60) in (6.2.61) we have _
Lut
Qin + Win ----
Tin T1
-n'Clp(T,-T3-Toutln-~3 ) +n2C~p(T2- T~- ToutlnmT3
+ Tout(Qs+Qs) (6.2.62)
where Qs > 0. The equation is of another type than those examined above. We do not know the temperatures T~, T2 , Tin, To,t , nor the heat input/output. They will depend on the detailed design of the process. If they were known, we could
Chapter 6 - Entropy and Exergy Balances
155
again evaluate the loss of exergy TOQs. Our goal is, however, conversely to assess the minimum energy (exergy) requirements for the separation. Let us plausibly assume that Qs' > n lC~ In T1 + n 2 ~ In T2
(6.2.63)
because the RHS is sum of terms representing only change of entropy due to change of temperature from/'3 to T~ resp. T2 for stream 1 resp. 2; for example if T~ ~ T3 we shall have anyway some (irreversible) heat transfer in the absorption column. Recall in addition that the absorption itself is an irreversible process producing entropy. We then have the inequality
1
-
root) Tin
Qin + Win > n' C~p(T~-T3) + n 2 Cp2 (Tz-T3) + Tout Qs
9
(6.2.64)
Suppose the RHS is positive. Because decreasing Tout decreases the RHS and increases the coefficient at Qin, let us set Tout = TOas the lower limit; by the way, lower temperature of the solvent is favourable for the absorption. Then
1
-
.T~
Qin § Win ~ n l C o1 (T1-T3) + n 2 C~p(T2-T3) + TOa s
(6.2.65)
where the LHS can be regarded as consumption of exergy. Let T3 = T0, T~ > TO and T2 > T0. Then under plausible assumptions, the loss of exergy by mixing represents a lower bound for exergy consumed in re-separation. The conclusion appears obvious due to the intuitive idea of exergy: its loss has to be re-supplied. In our lengthy derivation, we have specified how it can be done. Denoting n = n l + n 2 and x = x 3 in (6.2.59) we have To Qs = - nRTo ((l-x) In (l-x) + xlnx