Details

Chemical and Biomedical Engineering Calculations Using Python


Chemical and Biomedical Engineering Calculations Using Python


1. Aufl.

von: Jeffrey J. Heys

60,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 28.11.2016
ISBN/EAN: 9781119267089
Sprache: englisch
Anzahl Seiten: 288

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p>Presents standard numerical approaches for solving common mathematical problems in engineering using Python.</p> <ul> <li>Covers the most common numerical calculations used by engineering students</li> <li>Covers Numerical Differentiation and Integration, Initial Value Problems, Boundary Value Problems, and Partial Differential Equations</li> <li>Focuses on open ended, real world problems that require students to write a short report/memo as part of the solution process</li> <li>Includes an electronic download of the Python codes presented in the book</li> </ul>
<p>Preface xi</p> <p>About the Companion Website xv</p> <p><b>1 Problem Solving in Engineering 1</b></p> <p>1.1 Equation Identification and Categorization 4</p> <p>1.1.1 Algebraic versus Differential Equations 4</p> <p>1.1.2 Linear versus Nonlinear Equations 5</p> <p>1.1.3 Ordinary versus Partial Differential Equations 6</p> <p>1.1.4 Interpolation versus Regression 8</p> <p>Problems 10</p> <p>Additional Resources 11</p> <p>References 11</p> <p><b>2 Programming with Python 12</b></p> <p>2.1 Why Python? 12</p> <p>2.1.1 Compiled versus Interpreted Computer Languages 13</p> <p>2.1.2 A Note on Python Versions 14</p> <p>2.2 Getting Python 15</p> <p>2.2.1 Installation of Python 17</p> <p>2.2.2 Alternative to Installation: SageMathCloud 18</p> <p>2.3 Python Variables and Operators 19</p> <p>2.3.1 Updating Variables 21</p> <p>2.3.2 Containers 23</p> <p>2.4 External Libraries 25</p> <p>2.4.1 Finding Documentation 27</p> <p>Problems 28</p> <p>Additional Resources 29</p> <p>References 30</p> <p><b>3 Programming Basics 31</b></p> <p>3.1 Comparators and Conditionals 31</p> <p>3.2 Iterators and Loops 34</p> <p>3.2.1 Indentation Style 39</p> <p>3.3 Functions 39</p> <p>3.3.1 Pizza Example 43</p> <p>3.3.2 Print Function 44</p> <p>3.4 Debugging or Fixing Errors 45</p> <p>3.5 Top 10+ Python Error Messages 45</p> <p>Problems 47</p> <p>Additional Resources 49</p> <p>References 49</p> <p><b>4 External Libraries for Engineering 51</b></p> <p>4.1 Numpy Library 51</p> <p>4.1.1 Array and Vector Creation 51</p> <p>4.1.2 Array Operations 55</p> <p>4.1.3 Getting Helping with Numpy 55</p> <p>4.1.4 Numpy Mathematical Functions 56</p> <p>4.1.5 Random Vectors with Numpy 57</p> <p>4.1.6 Sorting and Searching 57</p> <p>4.1.7 Polynomials 58</p> <p>4.1.8 Loading and Saving Arrays 59</p> <p>4.2 Matplotlib Library 60</p> <p>4.3 Application: Gillespie Algorithm 63</p> <p>Problems 66</p> <p>Additional Resources 68</p> <p>References 68</p> <p><b>5 Symbolic Mathematics 70</b></p> <p>5.1 Introduction 70</p> <p>5.2 Symbolic Mathematics Packages 71</p> <p>5.3 An Introduction to SymPy 72</p> <p>5.3.1 Multiple Equations 75</p> <p>5.4 Factoring and Expanding Functions 76</p> <p>5.4.1 Equilibrium Kinetics Example 77</p> <p>5.4.2 Partial Fraction Decomposition 78</p> <p>5.5 Derivatives and Integrals 78</p> <p>5.5.1 Reaction Example 79</p> <p>5.5.2 Symbolic Integration 80</p> <p>5.5.3 Reactor Sizing Example 80</p> <p>5.6 Cryptography 81</p> <p>Problems 83</p> <p>References 86</p> <p><b>6 Linear Systems 87</b></p> <p>6.1 Example Problem 88</p> <p>6.2 A Direct Solution Method 91</p> <p>6.2.1 Distillation Example 95</p> <p>6.2.2 Blood Flow Network Example 95</p> <p>6.2.3 Computational Cost 98</p> <p>6.3 Iterative Solution Methods 100</p> <p>6.3.1 Vector Norms 100</p> <p>6.3.2 Jacobi Iteration 100</p> <p>6.3.3 Gauss–Seidel Iteration 103</p> <p>6.3.4 Relaxation Methods 105</p> <p>6.3.5 Convergence of Iterative Methods 105</p> <p>Problems 107</p> <p>References 112</p> <p><b>7 Regression 113</b></p> <p>7.1 Motivation 113</p> <p>7.2 Fitting Vapor Pressure Data 114</p> <p>7.3 Linear Regression 115</p> <p>7.3.1 Alternative Derivation of the Normal Equations 118</p> <p>7.4 Nonlinear Regression 119</p> <p>7.4.1 Lunar Disintegration 122</p> <p>7.5 Multivariable Regression 126</p> <p>7.5.1 Machine Learning 127</p> <p>Problems 129</p> <p>References 134</p> <p><b>8 Nonlinear Equations 135</b></p> <p>8.1 Introduction 135</p> <p>8.2 Bisection Method 137</p> <p>8.3 Newton’s Method 140</p> <p>8.4 Broyden’s Method 143</p> <p>8.5 Multiple Nonlinear Equations 146</p> <p>8.5.1 The Point Inside a Square 149</p> <p>Problems 151</p> <p><b>9 Statistics 156</b></p> <p>9.1 Introduction 156</p> <p>9.2 Reading Data from a File 156</p> <p>9.2.1 Numpy Library 157</p> <p>9.2.2 CVS Library 159</p> <p>9.2.3 Pandas 159</p> <p>9.2.4 Parsing an Array 162</p> <p>9.3 Statistical Analysis 162</p> <p>9.4 Advanced Linear Regression 164</p> <p>9.5 U.S. Electrical Rates Example 168</p> <p>Problems 172</p> <p>References 175</p> <p><b>10 Numerical Differentiation and Integration 176</b></p> <p>10.1 Introduction 176</p> <p>10.2 Numerical Differentiation 176</p> <p>10.2.1 First Derivative Approximation 177</p> <p>10.2.2 Second Derivative Approximation 180</p> <p>10.2.3 Scipy Derivative Approximation 181</p> <p>10.3 Numerical Integration 183</p> <p>10.3.1 Trapezoid Rule 185</p> <p>10.3.2 Numerical Integration Using Scipy 186</p> <p>10.3.3 Error Function 187</p> <p>Problems 190</p> <p>Reference 192</p> <p><b>11 Initial Value Problems 193</b></p> <p>11.1 Introduction 193</p> <p>11.2 Biochemical Reactors 193</p> <p>11.3 Forward Euler 195</p> <p>11.4 Modified Euler Method 198</p> <p>11.5 Systems of Equations 199</p> <p>11.5.1 The Lorenz System and Chaotic Solutions 200</p> <p>11.5.2 Second-Order Initial Value Problems 203</p> <p>11.6 Stiff Differential Equations 203</p> <p>Problems 206</p> <p>References 210</p> <p><b>12 Boundary Value Problems 211</b></p> <p>12.1 Introduction 211</p> <p>12.2 Shooting Method 212</p> <p>12.3 Finite Difference Method 216</p> <p>12.3.1 Reactions in Spherical Catalysts 220</p> <p>Problems 224</p> <p>Reference 226</p> <p><b>13 Partial Differential Equations 227</b></p> <p>13.1 Finite Difference Method for Steady-State PDEs 227</p> <p>13.1.1 Setup 228</p> <p>13.1.2 Matrix Assembly 230</p> <p>13.1.3 Solving and Plotting 232</p> <p>13.2 Convection 233</p> <p>13.3 Finite Difference Method for Transient PDEs 236</p> <p>Problems 241</p> <p>Reference 244</p> <p><b>14 Finite Element Method 245</b></p> <p>14.1 A Warning 245</p> <p>14.2 Why FEM? 246</p> <p>14.3 Laplace’s Equation 246</p> <p>14.3.1 The Mesh 246</p> <p>14.3.2 Discretization 247</p> <p>14.3.3 Wait! Why Are We Doing This? 248</p> <p>14.3.4 FEniCS Implementation 248</p> <p>14.4 Pattern Formation 249</p> <p>Additional Resources 253</p> <p>References 254</p> <p>Index 255</p>
<p><b>Jeffrey J. Heys</b> is currently the department head in Chemical and Biological Engineering at Montana State University. He has taught numerous courses in Chemical and Biological Engineering for 15 years. He also taught courses in Applied Mathematics at the University of Colorado at Boulder, including Numerical Analysis, for three years. Jeff has been creating mathematical models of biological systems for approximately 20 years, published more than 40 peer reviewed papers, and has programmed extensively in FORTRAN, C, C++, MATLAB<sup>®</sup>, and Python<sup>®</sup>.
<p><b>Chemical and Biomedical Engineering Calculations Using Python<sup>®</sup></b> <p>Presents standard numerical approaches for solving common mathematical problems in engineering using Python<sup>®</sup>Python<sup>®</sup> is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, and Java. The Python programming language is ideal due to its rapid growth and strong recent interest among practitioners in areas as diverse as numerical modeling, data science, and bioinformatics. <i>Chemical and Biomedical Engineering Calculations Using Python<sup>®</sup></i> presents standard numerical approaches for solving common mathematical problems in engineering. <p>The book covers the most common engineering calculations used by students and utilizes the freely available Python software and its supporting libraries. <i>Chemical and Biomedical Engineering Calculations Using Python<sup>®</sup></i> features topics on: <ul> <li>Programming in Python</li> <li>Common External Libraries for Engineering</li> <li>Plotting</li> <li>Symbolic Mathematics</li> <li>Linear Systems</li> <li>Regression</li> <li>Nonlinear Equations</li> <li>Statistics</li> <li>Numerical Differentiation and Integration</li> <li>Initial Value Problems</li> <li>Boundary Value Problems</li> <li>Partial Differential Equations</li> <li>Finite Element Method</li> </ul> <p><i>Chemical and Biomedical Engineering Calculations Using Python<sup>®</sup></i> is written to be accessible to engineering students in a numerical methods or computational methods course as well as for practicing engineers who want to learn to solve common problems using Python. Also included is an electronic download of the Python codes presented in the book.

Diese Produkte könnten Sie auch interessieren:

Chemistry for the Protection of the Environment 4
Chemistry for the Protection of the Environment 4
von: Robert Mournighan, Marzenna R. Dudzinska, John Barich, Marjorie A. Gonzalez, Robin K. Black
PDF ebook
213,99 €
Wörterbuch Labor / Laboratory Dictionary
Wörterbuch Labor / Laboratory Dictionary
von: Klaus Roth, Theodor C.H. Cole
PDF ebook
36,99 €