
Chemical Engineering Analysis and Optimization Using MATLAB
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Tackle challenging optimization problems with MATLAB® software
Optimization techniques measure the minimum or maximum value of a given function depending on circumstances, constraints, and key factors. Engineering processes pertaining to design or manufacture involve optimization techniques at every stage, designed to minimize resource expenditure and maximize outcomes. Optimization problems can be challenging and computationally intensive, but the increasingly widely-used MATLAB platform offers numerous tools enabling engineers to tackle these essential elements of process and industrial design.
Chemical Engineering Analysis and Optimization Using MATLAB® introduces cutting-edge, highly in-demand skills in computer-aided design and optimization. With a focus on chemical engineering analysis, the book uses the MATLAB platform to develop reader skills in programming, modeling, and more. It provides an overview of some of the most essential tools in modern engineering design.
Chemical Engineering Analysis and Optimization Using MATLAB® readers will also find:
- Case studies for developing specific skills in MATLAB and beyond
- Examples of code both within the text and on a companion website
- End-of-chapter problems with an accompanying solutions manual for instructors
This textbook is ideal for advanced undergraduate and graduate students in chemical engineering and related disciplines, as well as professionals with backgrounds in engineering design.
More details
Other editions
Additional editions

Persons
Weiguo Xie, PhD, is a Professor of Chemical Engineering at the University of Minnesota, Duluth, MN, USA. He has previously held faculty appointments in UK and Australian universities. He has authored over 100 scientific publications, with particular expertise in mathematical modeling, simulation, optimization, and related subjects.
Sam Toan, PhD, is an Associate Professor of Chemical Engineering at the University of Minnesota, Duluth, MN, USA. He has nearly a decade of experience teaching engineering courses focused on MATLAB and has authored over 60 scientific publications.
Richard Davis, PhD, is a Jean G. Blehart Distinguished Professor of Chemical Engineering at the University of Minnesota, Duluth, MN, USA. He has over three decades of experience teaching and researching computational methods, focusing on process modeling and simulation, energy conversion, chemical process safety, and environmental management.
Content
Preface xi
About the Companion Website xiii
1 Introduction to Modeling 1
1.1 Numerical Methods 3
1.1.1 Linear vs. Nonlinear Equations 5
1.1.2 Standard Features of Numerical Methods 6
1.1.3 Significant Figures and Computer Round-Off Error 7
1.2 Mathematical Model Building 12
1.2.1 Laws of Conservation 14
1.2.2 Lumped vs. Distributed Systems 16
1.2.3 Degrees of Freedom 23
1.2.4 Dimensionless Equations 23
1.2.5 Stochastic vs. Deterministic Modeling 24
1.2.6 Model Verification and Validation 24
1.3 Expert Problem-Solvers 25
2 MATLAB Skill Preparation 27
2.1 Introduction 27
2.1.1 MATLAB User Interface 27
2.1.2 MATLAB File Extensions 29
2.2 Some Useful MATLAB Commands and Functions 33
2.2.1 MATLAB Commands 33
2.2.2 MATLAB Functions 33
2.3 Vector and Matrix Operations 39
2.3.1 Vector Operations 39
2.3.2 Matrix Operations 40
2.4 Loops & Conditional Statements 42
2.5 Solving Equations 43
2.5.1 Linear and Nonlinear Equations and Systems 44
2.6 Optimization Toolbox 46
2.6.1 Minimization vs. Maximization Problems 46
2.6.2 Optimization Solvers 46
Problems 49
3 Model Fitting and Spline Functions 51
3.1 Introduction 51
3.1.1 Linear Equations 52
3.1.1.1 Linear Models 52
3.1.1.2 Model Linearization 52
3.1.2 Algebraic Nonlinear Models 53
3.1.2.1 Nonlinear Models 53
3.1.2.2 Solution Methods for Nonlinear Problems 53
3.1.3 Model Fitting 55
3.1.3.1 Least Squares Procedure 55
3.1.3.2 Regression Analysis 55
3.1.4 Spline Functions 57
3.1.4.1 Linear Interpolation 57
3.1.4.2 Polynomial Interpolation 57
3.1.4.3 Cubic Spline Interpolation 58
3.2 Curve Fitting Toolbox in MATLAB 58
3.2.1 Two Ways to Curve Fitting 58
3.2.2 An Example of Using Curve Fitting App 59
3.2.2.1 Open the Curve Fitting App in Command Window 59
3.2.2.2 Selecting Data and the Default Linear Model 60
3.2.2.3 Selecting Better Models 60
3.3 Model Fitting via Optimization Algorithms 65
3.4 Spline Functions for Complex Models 65
3.4.1 Spline Interpolation in MATLAB - interp1 66
3.4.2 Spline Interpolation in MATLAB - interp2 68
3.5 Application in Chemical Engineering 69
3.5.1 Using Linear Equations 69
3.5.2 Using Nonlinear Equations 72
3.6 Summary 75
Problems 76
4 Optimization 79
4.1 Optimization Overview and Solver Options 79
4.1.1 What Is Optimization? 79
4.1.2 Built-In Function and MATLAB's Toolbox for Optimization 80
4.2 Extreme Value Problem 82
4.2.1 Unconstrained Functions 82
4.2.2 Constrained Functions 92
4.3 Linear Programming 93
4.3.1 Standard Procedure of Linear Programming 94
4.3.2 Solving Linear Programming in MATLAB 95
4.4 Quadratic Programming 96
4.4.1 Standard Procedure of Quadratic Programming 96
4.4.2 Solving Quadratic Programming in MATLAB 97
4.5 Nonlinear Programming 98
4.6 Application in Chemical Engineering 100
4.6.1 Reaction Kinetics Optimization 100
4.6.2 Reaction Productivity Optimization 101
4.6.3 Refinery Economics 103
4.6.4 Chemical Production Optimization 105
4.6.5 Productivity Profit Optimization 107
4.6.6 Catalyst System Design Optimization 108
4.6.7 Reaction Kinetic 109
4.7 Summary 110
Problems 110
5 Enhanced Optimization 115
5.1 Introduction 115
5.1.1 Differences Among Optimization Solvers in MATLAB 115
5.1.2 The Differences in Algorithms 116
5.2 Enhanced Optimization Through Treatment of Constraints on the Search Region 119
5.2.1 Lagrange Method 119
5.2.1.1 Method of Lagrange Multiplier 119
5.2.1.2 Method of Optimizing S Function 124
5.2.2 Convert Inequality Constraints to Equality Constraints 126
5.2.3 Penalty Function Method 128
5.2.4 Enhanced Constraints Method 133
5.3 Application in Chemical Engineering 135
5.3.1 Optimization of a Three-Stage Compressor 135
5.3.2 Productivity Profit Optimization 138
5.3.3 Optimization for the Operation of a Continuous Stirred Tank Reactor (cstr) 140
5.4 Summary 145
Problems 145
6 Global Optimization 147
6.1 Introduction 147
6.1.1 Local vs. Global Optima 147
6.1.2 Four Standard Heuristic Techniques (Often Incorporate Randomization) 148
6.2 Global Optimization Toolbox in MATLAB 151
6.2.1 Global Optimization Solvers in MATLAB 151
6.2.2 The Differences in the Syntax of the Solvers 152
6.3 The Selection of Global Optimization Methods 156
6.3.1 Based on Constraints 156
6.3.2 Based on the Number of Variables 159
6.3.3 Based on Computational Time 162
6.4 Application in Chemical Engineering 166
6.4.1 Optimization of a Three-Stage Compressor 166
6.4.2 Productivity Profit Optimization 172
6.4.3 Optimization for the Operation of a Continuous Stirred Tank Reactor (cstr) 179
6.5 Summary 186
Problems 186
7 Optimal Experimental Design 189
7.1 Introduction 189
7.1.1 Experimental Design 189
7.1.2 Experimental Error 190
7.1.2.1 Random Error 190
7.1.2.2 Systematic Error 192
7.2 Design of Experiments (DOE) 192
7.2.1 Statistical Design of Experiments 192
7.2.2 MATLAB Functions for the Design of Experiments 193
7.2.3 Orthogonal Experimental Design 196
7.3 Model Building with Experimental Data 200
7.3.1 The Relationships Among M Values vs. Three Factors 201
7.3.2 The Power Relationships and Multiplication used for Model Building 203
7.3.3 The Model Fitting to Determine the Unknown Parameters 203
7.4 Application in Chemical Engineering 208
7.4.1 Experimental Design for Nanoparticle-Reinforced Silica Gels 208
7.4.2 Experimental Design for Turbulence Model Development of a Flotation Cell 211
7.4.2.1 The Relationships Among M Values vs. Four Factors 212
7.4.2.2 The Power Relationships and Multiplication Used for Model Building 216
7.4.2.3 The Model Fitting to Determine the Unknown Parameters 217
7.5 Summary 220
Problems 220
8 Data Statistics 223
8.1 Introduction 223
8.1.1 Data Types 223
8.1.2 Physical Units 226
8.1.3 Dimensional Analysis 228
8.1.4 Some Dimensionless Groups 228
8.1.5 Buckingham Pi Method 231
8.1.6 Model Analysis 232
8.2 Data Statistics Toolbox in MATLAB 234
8.2.1 Statistics and Machine Learning Toolbox 234
8.2.2 Statistics Visualization 234
8.2.2.1 Scatter Plots 234
8.2.2.2 Box Plots 235
8.2.2.3 Distribution Plots 236
8.2.3 Analysis of Variance 238
8.2.3.1 One-Way ANOVA 238
8.2.3.2 ANOVA with Multiple Responses 238
8.2.4 Regression 241
8.2.5 Principal Component Analysis 248
8.3 Application in Chemical Engineering 250
8.3.1 Application of Buckingham Pi (p) Method for a Flotation Rate Model 250
8.3.2 Statistics Visualization for Particle Size Distributions 251
8.4 Summary 261
Problems 262
9 Complex Equation Systems 265
9.1 Introduction 265
9.1.1 Dynamic Systems 265
9.1.2 Lump Parameter System and Distributed Parameter System 266
9.2 Ordinary Differential Equations (ODEs) 267
9.2.1 ODEs for Dynamic Systems 267
9.2.2 Higher-Order ODEs 267
9.2.3 Numerical Integration and Differentiation 268
9.2.4 Numerical Method to Solve ODEs 271
9.2.4.1 Euler's Explicit Method 271
9.2.4.2 Euler's Implicit Method 274
9.2.4.3 Runge-Kutta Methods 276
9.2.4.4 Finite-Difference Method 277
9.2.5 MATLAB ODE Solvers 279
9.3 Partial Differential Equation Toolbox in MATLAB (PDE) 283
9.3.1 Forms of Equations Can Be Solved 283
9.3.2 MATLAB PDE Solver pdepe 284
9.4 Application in Chemical Engineering 288
9.4.1 Complex Chemical Reactions 288
9.4.2 Liquid Level Response 289
9.4.3 Plane Poiseuille Flow 292
9.5 Summary 295
Problems 295
10 Process Integration and Optimization 299
10.1 Introduction 299
10.1.1 Process Simulators 299
10.1.2 Flowsheet Simulation and Design 300
10.2 Process Integration and Optimization 300
10.2.1 Process Models 300
10.2.2 Simulating Novel Processes and Equipment 300
10.2.3 Physical and Chemical Property Estimation 303
10.2.4 Process Optimization 305
10.3 Application in Chemical Engineering 305
10.3.1 Introduction to Solvent Extraction 305
10.3.2 Ternary Diagram (Partially Soluble Ternary Systems) 306
10.3.3 Ternary Diagram - One Equilibrium Stage 306
10.3.4 Ternary Diagram - Cross-Current Two Stages Solvent Extraction 310
10.3.5 Ternary Diagram - Counter-Current Two Stages Solvent Extraction 310
10.3.6 Ternary Diagram - Counter-Current N Stages Solvent Extraction 313
10.3.7 Case Study - Cross-Current Multistages Solvent Extraction 314
10.4 Summary 331
Problems 331
References 333
Index 335
1
Introduction to Modeling
Modeling in engineering and science transcends the glitz of fashion runways and the meticulous craftsmanship of hobbyists. It embodies a rigorous approach to understanding, analyzing, and optimizing systems, processes, and operations crucial to society's advancement.
Mathematical modeling, a cornerstone of applied mathematics, is more than a mere problem-solving tool - it is a language deeply rooted in mathematical physics. Engineers and scientists leverage mathematical models to conceptualize system behaviors, rigorously testing these hypotheses through meticulous validation and verification.
Engineering modeling entails:
- Crafting mathematical representations of physical reality, expressed through equations and algorithms.
- Employing simulations of these mathematical models as proxies for real-world experimentation.
- Elevating the value of models through rigorous validation processes.
While engineering modeling shares some traits with fashion and hobby modeling, its essence lies in its ability to distill complex phenomena into actionable insights. Like fashion modeling:
- Models serve as idealized depictions of reality, facilitating understanding and analysis.
- They establish relationships between different system states and parameters.
Resonating with hobby modeling:
- Careful construction is paramount to ensure fidelity to the real-world system.
- Models amalgamate empirical laws and constitutive relations to capture system dynamics.
- The distinction between system states and parameters is pivotal in model formulation.
Historically, engineering relied heavily on empirical methods, with designs forged through trial and error experimentation. However, the advent of mathematical modeling, coupled with modern computing tools, has revolutionized this paradigm. Mathematical models serve as powerful guides for equipment and process design, streamlining experimentation, and mitigating risks associated with empirical approaches.
Equation-based models, derived from fundamental principles like mass and energy conservation, thermodynamics, and kinetics, empower chemical engineers to address a myriad of questions, such as:
- Will our concepts translate into practical solutions?
- What measurements are essential for validation?
- Which factors significantly influence system behavior?
- Is the proposed solution economically viable and safe?
- Can we effectively control and optimize the system?
- What scale can we feasibly implement?
Engineers and scientists navigate complex technical challenges with precision and confidence by strategically integrating mathematical modeling, propelling innovation, and societal progress. In navigating this terrain, we must balance simplicity and utility. Levenspiel's (2002) concept of "the US$10, US$100, and US$1000 models" serves as a reminder: while complex models may incur significant costs, they do not always offer proportional increases in understanding. Expensive experiments yield to relatively inexpensive computer simulations, offering a cost-effective alternative. Moreover, as depicted in Figure 1.1, the decreasing cost of computing contrasts with the rising costs of traditional experimentation over time.
Models vary in complexity based on their intended purposes. Simple models can often provide sufficient insight to guide decisions on whether to proceed with further development, pause for further investigation, or alter engineering directions. However, the demand for increased model detail grows as the need for accuracy and precision intensifies in design and decision-making processes.
The cost associated with developing a mathematical model hinges on the level of uncertainty deemed acceptable in the model predictions. As depicted in Figure 1.2, generally, the higher the tolerance for uncertainty in the calculated results, the lower the overall cost of the model.
The escalating costs of achieving greater certainty in model predictions often stem from the endeavor to solve the model equations. In preliminary engineering models, there is a propensity toward higher uncertainty - lower precision - particularly when efforts to mitigate uncertainty fail to justify the exponentially increasing modeling expenses.
Contrastingly, scientific models tend to gravitate toward minimizing uncertainty - higher precision - aiming for a comprehensive comprehension of natural phenomena. To navigate the uncertainty, engineers often incorporate design safety factors. For instance, a chemical engineer might design a distillation column by calculating the minimum number of ideal stages, then doubling this figure and adjusting the reflux to attain the desired separation (Walas 1990).
Figure 1.1 Computing costs are decreasing as the cost of experimentation increases over time.
Figure 1.2 Cost of mathematical modeling as a function of the degree of uncertainty in the model predictions.
1.1 Numerical Methods
Numerical methods are computational techniques employed to approximate solutions to mathematical models that may prove inconvenient, challenging, or even impossible to solve through standard analytical methods. Analytical solutions yield symbolic representations, often involving explicit rearrangements of equations to isolate variables. However, when analytical solutions are unattainable, numerical methods offer practical approximations.
Consider calculating the molar volume of a gas using models that correlate molar volume with temperature and pressure. The ideal gas law and the Redlich-Kwong equation of state for nonideal behavior are two potential candidates. We can rearrange the ideal gas law to solve for the molar volume:
(1.1)where Rg is the ideal gas constant, T is the temperature, and P is the pressure. However, we cannot rearrange the following nonideal Redlich-Kwong model explicitly for either molar volume or temperature1:
(1.2)The parameters a and b are functions of the critical temperature and gas pressure. There is no way to rearrange Eq. (1.2) with the molar volume only appearing on one side of the equation. Instead, we determine the Redlich-Kwong equation's molar volume from numerical approximation methods for specific cases of T and P.
Many numerical methods rely on iterative calculations, often facilitated by computers. Compared to analytical solutions, numerical approaches can be easier to implement, saving time and effort that can be directed toward addressing other challenges.
In chemical engineering, typical problems involve large systems of linear equations arising from applying fundamental principles like the conservation of momentum, mass, and energy. Additionally, nonlinear equations abound due to the inherent complexities of physical and chemical properties, transport phenomena, thermodynamics, and chemical reactions.
Some common examples of nonlinear functions encountered in chemical engineering include the temperature-dependent Antoine equation for vapor pressure, the modified Arrhenius function for reaction rate constants, and the modified Henri function for enzyme reaction kinetics with substrate inhibition.
(1.3) (1.4) (1.5)While linear equations possess analytical solutions, determining the solution of a system larger than three or four equations can often prove tedious. Analytical solutions for such large systems entail extensive algebraic manipulations and symbolic bookkeeping. Moreover, many nonlinear equations lack analytical solutions altogether. Hence, methods for obtaining practical approximations of nonlinear functions and large systems of linear equations are essential.
To underscore the necessity of numerical methods, let us consider a simple model from chemical reaction engineering.
The following reaction mechanism is elementary, irreversible, and first order in species A:
(1.6)Consider the steady-state mole balance for product species B around a perfectly stirred chemical reactor, as illustrated in Figure 1.3, with feed and effluent concentrations of CA0 and unreacted CA and product CB, respectively.
We start with species conservation to mathematically model this reactor. With no B in the feed, the concentration of B leaving the reactor equals the product of the residence time, t, with the rate of generation of B per unit volume in the reactor, rB:
(1.7)For elementary, first-order reactions, the rate of production of B is a linear function of concentration:
(1.8)where (CA0-CB) is equivalent to the concentration of unreacted A in the reactor in terms of the initial concentration of reactant A, and k is the first-order reaction rate constant. We can rearrange Eqs. (1.7) and (1.8) explicitly for the concentration of product CB exiting the reactor:
(1.9)Figure 1.3 Well-mixed, steady-state...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.