Appendix F. + 1 Ma 1. 2 Ma Ma Ma ln + K = 0 (4-173)

Similar documents
Root-finding and optimisation

COMPUTING AND DATA ANALYSIS WITH EXCEL. Numerical Methods of Solving Equations

An area chart emphasizes the trend of each value over time. An area chart also shows the relationship of parts to a whole.

4.5 COMPLEX CHEMICAL EQUILIBRIUM BY GIBBS ENERGY MINIMIZATION

TALLINN UNIVERSITY OF TECHNOLOGY, INSTITUTE OF PHYSICS 6. THE TEMPERATURE DEPENDANCE OF RESISTANCE

Stoichiometric Reactor Simulation Robert P. Hesketh and Concetta LaMarca Chemical Engineering, Rowan University (Revised 4/8/09)

cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO

Computer simulation of radioactive decay

Assignment 1: Molecular Mechanics (PART 1 25 points)

Course in. Geometric nonlinearity. Nonlinear FEM. Computational Mechanics, AAU, Esbjerg

Using Tables and Graphing Calculators in Math 11

Combining Numerical Problem Solving with Access to Physical Property Data a New Paradigm in ChE Education

QUANTUM CHEMISTRY PROJECT 1

Aspen Plus PFR Reactors Tutorial using Styrene with Pressure Drop Considerations By Robert P. Hesketh and Concetta LaMarca Spring 2005

If you like us, please share us on social media. The latest UCD Hyperlibrary newsletter is now complete, check it out.

NONLINEAR EQUATIONS AND TAYLOR S THEOREM

1. Open polymath: 2. Go to Help, Contents F1 or Press F1

DEVELOPED LAMINAR FLOW IN PIPE USING COMPUTATIONAL FLUID DYNAMICS M.

Chemical Engineering 374

You w i ll f ol l ow these st eps : Before opening files, the S c e n e panel is active.

Experiment: Oscillations of a Mass on a Spring

Free Fall. v gt (Eq. 4) Goals and Introduction

Fluid Flow Analysis Penn State Chemical Engineering

New correlation for hydrogen-natural gas mixture compressibility factor

Space Objects. Section. When you finish this section, you should understand the following:

Presented at MASSEE International Conference on Mathematics MICOM-2009

Chapter 2 Solutions of Equations of One Variable

Pipe Flow/Friction Factor Calculations using Excel Spreadsheets

Using Microsoft Excel

LAB 5 INSTRUCTIONS LINEAR REGRESSION AND CORRELATION

Tutorial 23 Back Analysis of Material Properties

LOSSES DUE TO PIPE FITTINGS

Lab 1: Dynamic Simulation Using Simulink and Matlab

A Simple Introduction to EES Version (Handout version 5.1) Copyright C. S. Tritt, Ph.D. September 20, 2005

WMS 9.0 Tutorial GSSHA Modeling Basics Infiltration Learn how to add infiltration to your GSSHA model

Experimentally estimating a convection coefficient. 2. Demonstration and preliminary data reduction

Tutorial: Premixed Flow in a Conical Chamber using the Finite-Rate Chemistry Model

DISCRETE RANDOM VARIABLES EXCEL LAB #3

Using Excel To Solve Business Problems Vault Analytics

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION

Module 2A Turning Multivariable Models into Interactive Animated Simulations

Enhancing Computer-Based Problem Solving Skills with a Combination of Software Packages

Univariate Statistics (One Variable) : the Basics. Linear Regression Assisted by ANOVA Using Excel.

150A Review Session 2/13/2014 Fluid Statics. Pressure acts in all directions, normal to the surrounding surfaces

Applied Fluid Mechanics

LOOKING FOR RELATIONSHIPS

Calculating Bond Enthalpies of the Hydrides

1 The best of all possible worlds

Connect the Vernier spectrometer to your lap top computer and power the spectrometer if necessary. Start LoggerPro on your computer.

Solving an optimization problem of a profit calculation taking into account fixed costs in Excel

ENG3103 Engineering Problem Solving Computations Semester 2, 2013

Evaluating implicit equations

Exercises for Windows

6.2 Modeling of Systems and Components

Turbulent Compressible Flow in a Slender Tube

BOND LENGTH WITH HYPERCHEM LITE

Forces and Newton s Second Law

v Prerequisite Tutorials GSSHA WMS Basics Watershed Delineation using DEMs and 2D Grid Generation Time minutes

Work with Gravity Data in GM-SYS Profile

Leaf Spring (Material, Contact, geometric nonlinearity)

17-Nov-2015 PHYS MAXWELL WHEEL. To test the conservation of energy in a system with gravitational, translational and rotational energies.

STEEL BUILDINGS IN EUROPE. Multi-Storey Steel Buildings Part 8: Description of member resistance calculator

EXCELLING WITH BIOLOGICAL MODELS FROM THE CLASSROOM T0 RESEARCH

Weather Station Case Study. Prepared by : Ahmad Mujahid Ubaidilllah Zakaria

PUMP SYSTEM ANALYSIS AND SIZING. BY JACQUES CHAURETTE p. eng.

Measuring ph with Smart Cuvettes

Multiphysics Modeling

Michælmas 2012 Operations Research III/IV 1

THE CRYSTAL BALL FORECAST CHART

Module 10: Finite Difference Methods for Boundary Value Problems Lecture 42: Special Boundary Value Problems. The Lecture Contains:

Basic Analysis of Data

How many states. Record high temperature

INTRODUCTION TO CHEMICAL ENGINEERING COMPUTING

This paper outlines the steps we took to process the repository file into a Geodatabase Utility Data Model for Bloomfield Township s analysis.

Athena Visual Software, Inc. 1

1 Introduction to Minitab

Force vs time. IMPULSE AND MOMENTUM Pre Lab Exercise: Turn in with your lab report

THE CRYSTAL BALL CHARTS: OVERLAY AND TREND

ON SITE SYSTEMS Chemical Safety Assistant

The purpose of this laboratory exercise is to verify Newton s second law.

Ocean Optics Red Tide UV-VIS Spectrometer (Order Code: SPRT-UV-VIS)

General Chemistry Lab Molecular Modeling

Appendix B Microsoft Office Specialist exam objectives maps

Lab 10: Ballistic Pendulum

Section 26.1: Reporting Conventions. Section 26.2: Fluxes Through Boundaries. Section 26.3: Forces on Boundaries

Quantification of JEOL XPS Spectra from SpecSurf

Relationship between Hazen-William coefficient and Colebrook-White friction factor: Application in water network analysis

Investigating Models with Two or Three Categories

Colour by Numbers in Excel 2007: Solving Algebraic Equations Without Algebra

MT-CLIM for Excel. William M. Jolly Numerical Terradynamic Simulation Group College of Forestry and Conservation University of Montana c 2003

Pressure Swing Distillation with Aspen Plus V8.0

Excel SOLVER for Fitting Bioanalytical Data to Weighted Polynomial Equations

Mathematical Modelling Using SimScape (Electrical Systems)

Physics 4C Simple Harmonic Motion PhET Lab

NINE CHOICE SERIAL REACTION TIME TASK

Spreadsheet Solution of Systems of Nonlinear Differential Equations

THE CRYSTAL BALL SCATTER CHART

EXPERIMENT 2 Reaction Time Objectives Theory

Taguchi Method and Robust Design: Tutorial and Guideline

The effect of geometric parameters on the head loss factor in headers

Transcription:

5:39p.m. Page:949 Trimsize:8.5in 11in Appendix F F.1 MICROSOFT EXCEL SOLVER FOR NON-LINEAR EQUATIONS The Solver is an optimization package that finds a maximum, minimum, or specified value of a target cell by varying the values in one or several changing cells. It uses an iterative process, beginning with trial values of the coefficients. The value of each coefficient is changed by a suitable increment, the new value of the function is then calculated, and the change in the value of the function is used to calculate improved values for each of the coefficients. The process is repeated until the desired results are obtained. The Solver employs the gradient methods or the simplex method to find the optimum set of coefficients. Constraints can be applied to the Solver using the Add button under the heading Subject to the Constraints. The Solver is an Excel Add-in, a separate software package. To save memory, it may not automatically be opened whenever Excel is started. To install the Solver, choose Add-Ins from the Tools menu. Then select Solver Add-Ins from the resulting Add-Ins dialog box. Once the Solver feature has been installed, it will remain installed unless it is removed by reversing the above procedure. To use the Solver to perform multiple non-linear least squares curve fitting, the procedure is as follows: 1. Start with a worksheet containing the data (independent variable X and the dependent variable Y obsd ) to be fitted. 2. Add a column containing Y calc values, calculated by means of an appropriate formula, and involving the X-values and one or more coefficients to be varied. 3. Add a column to calculate the square of the residual (Y obsd Y calc ) for each data point. 4. Calculate the sum of squares of the residuals. 5. Use the Solver to minimize the sum of the squares of residuals (the target cell) by changing the coefficients of the function (the changing cells). on a series of successive refinements derived from an initial guess. For an adiabatic compressible fluid using the Excel spreadsheet (Example 4-11.xls) in Chapter 4 of the book, the implicit adiabatic equation in cell C53 is set to zero (Figures F-2a-f). The equation is expressed by ( 2 + 1 2 Ma1 Ma 2 2 1 + 1 2 + 1 Ma 1 + 2ln 2 + 1 Ma 1 2 ) +1 2 1 + 1 Ma 1 2 + K = 0 (4-173) The objective is to use Goal Seek to find the value of cell B44 that makes the function (in C53) equal to zero. The accuracy of the result depends on the magnitude of the Maximum Change parameter, which can be adjusted by choosing the Calculation tab in the Options command of the Tools menu. The default value is 0.001, and adjusting the Maximum Change parameter is critical when using Goal Seek. This allows Excel to stop iterating when the change in the result is less than the Maximum Change parameter. Therefore, the Maximum Change parameter needs to be adjusted to match the value of the function. For most calculations, the Maximum Change is set to 1E-12 or 1E-15. The steps in using Goal Seek are as follows: 1. Select Goal Seek from the Tools menu as shown in Figure F-2a. 2. Enter $C$53 in the Set cell box. 3. Put the cursor in the To value box and enter the desired value, zero. 4. Put the cursor in the By Changing cell box and enter $B$44 by selecting the cell or by typing. 5. Then click on OK box. Since the Solver operates by a search routine, it will find a solution most rapidly and efficiently if the initial estimates that are provided are close to the final values. Conversely, it may not be able to find a solution if the initial estimates are far from the final values. To ensure that the Solver has found a global minimum rather than a local minimum, a solution is obtained using different sets of initial estimates. The least-squares regression coefficients that are returned may be slightly different depending on the starting values being provided. The Excel spreadsheet prog6a.xls (Figures F-1a-f) uses the Solver to determine the outlet pressure P 2 of isothermal compressible fluid flow of Example 4-9 in the Chapter 4 of the book. F.2 SOLVING EQUATIONS USING GOAL SEEK IN EXCEL Microsoft Excel provides a built-in way to perform non-linear equations using the Goal Seek command in the Tools menu. Goal- Seek varies the value of a selected cell (the changing cell) to make the value of another cell (the target cell) reach a desired value. This feature permits rapid solutions of algebraic equations using iterative (i.e. trial and error) root-finding techniques based 949 After a few iteration cycles the Status dialog box Figure (F-2e) is displayed. If a solution is obtained, the value of the root will appear in the cell originally containing the initial guess. The value in the cell containing the formula will show a value that is close to zero (or zero). This last value will appear within the Goal Seek status dialog box. Cell $B$44 gives the root of the function cell (B44), which causes the target value to equal zero. The final value of the function depends to some extent on the starting value of Ma 1. The likelihood of obtaining a converged solution will be enhanced, if the initial guess is as close as possible to the desired root. For problems requiring the variation of two or more parameters, that is, varying the values of several cells to make the value of another cell reach a desired value involves the use of the Solver. The Excel spreadsheet Prog6a.xls uses the Goal Seek routine to determine the friction factor of Colebrook White implicit equation as defined by { F f D = 1 + 0 8686 ln f D 1/ 2 3 7D + 2 51 Re f D } (F-1) Font Size:9/10pt

Page:950 950 APPENDIX F (a) Figure F-1a Non-linear equation estimation using Solver from the tools menu of Microsoft Excel of Example 4.9. (b) Figure F-1b (continued).

Page:951 APPENDIX F 951 (c) Figure F-1c (continued). (d) Figure F-1d (continued).

Page:952 952 APPENDIX F (e) Figure F-1e (continued). (f) Figure F-1f (continued).

Page:953 APPENDIX F 953 (a) Figure F-2a Solving implicit adiabatic compressible fluid flow equation of Example 4-11 using Goal Seek. (b) Figure F-2b (continued).

Page:954 954 APPENDIX F (c) Figure F-2c (continued). (d) Figure F-2d (continued).

Page:955 APPENDIX F 955 (e) Figure F-2e (continued). (f) Figure F-2f (continued).

5:39p.m. Page:956 Trimsize:8.5in 11in 956 APPENDIX F where = Relative pipe roughness, in. D = Pipe size, in. f D = Darcy friction factor Re = number. Re-arranging the friction factor equation in the form F f D = 1 { + 0 8686 ln f D 1/ 2 3 7D + 2 51 } (F-2) Re f D 1/ 2 The worksheet (Solution-1) in Excel spreadsheet program (Prog6a.xls) calculates the friction factor for given relative pipe roughness, pipe size, and Reynolds number. The Excel spreadsheet program Prog6a.xls and the Fortran program PROG6 show how the friction factor is determined. Table F-1 shows the computer results of a 2 in. (internal diameter = 2.067 in.) stainless steel pipe size Sch 40, with pipe roughness of 0.0018 in. and Reynolds number of 184,000 (highly turbulent flow). The calculated friction factor f = 0 02063 with an initial guess of 0.015. The worksheet (Solution-2) in Excel spreadsheet Prog6a.xls calculates the friction factor for flow of a suspension of fibrous particles to the Reynolds number given by an empirical equation of the form [5]: ( ) 1 1 ( = ln Re ) ( f + 14 0 5 6 ) (F-3) f k k where f = friction factor Re = Reynolds number k = constant determined by the concentration of the suspension. Re-arranging Eq. (F-3) gives F f = 1 f 1 / 1 2 k ln ( Re f 1 / 2) 14 0 + 5 6 k TABLE F-1 (F-4) Newton Raphson Method for a Non-Linear Equation Initial Guess of the root x = 0.0150 Iteration x F(x) 1 0.19423E 01 0.22078E+00 2 0.20577E 01 0.93463E 02 3 0.20630E 01 0.17983E 04 Tolerance met in three iterations Final root x = 0.20630E 01 F(x) = 0.17983E 04 FURTHER READING 1. Coker, A.K., Fortran Programs For Chemical Process Design, Analysis and Simulation, Gulf Publishing Co., Houston, TX, 1995. 2. Gottfield, B.S., Spreadsheet Tools for Engineers Excel 5.0 Version, The McGraw-Hill Co. Inc., 1996. 3. Billo, E.J., Excel for Chemists A Comprehensive Guide, Wiley-VCH, Inc., 1997. 4. Gottfried, B.S., Spreadsheet Tools for Engineers Excel 2000 Version, McGraw-Hill s Best Basic Engineering Series and Tools, 2000. 5. Lee and Duffy, Relationships Between Velocity Profiles and Drag Reduction in Turbulent Fiber Suspension Flow, AIChE J., 1976, pp. 750 753. Font Size:9/10pt