Engineering With Python Rotating Header Image

Posts from ‘September, 2009’

Calculate a Four-Component ‘Flash’ – Problem Description

Reference: This is from E.M. Rosen and R. N. Adams, “A Review of Spreadsheet Usage in Chemical Engineering Calculations”, Computers and Chemical Engineering, Vol. 11, No. 6, pp. 723-736, but they took it from Henley and Seader, “Equilibrium Stage Separation Operations in Chemical Engineering”, Wiley, NY 1981 pg. 279. Problem Description: Rosen and Adams were […]

‘Graphical’ Evaluation to Calculate the Number of Transfer Units – Solution

Solve the Problem: Calculate the number of transfer units (Nog) Run the program and let’s see what the output shows.  It will show up in your IPython window. The answer we get is NOG = 3.52 transfer units.  Henley and Seader got 3.44 transfer units (obtained graphically) and Rosen and Adams calculated 3.73 units (with […]

‘Graphical’ Evaluation to Calculate the Number of Transfer Units – Programming Approach

Plan your solution: Draw a picture, in this case, list all of your data Remember the fundamentals and apply Draw your material or energy balance envelope (If necessary, not in this case) Remember [Accumulation = In – Out + Source/Sink] Think about what you need to do and the answer you want You need to […]

‘Graphical’ Evaluation to Calculate the Number of Transfer Units – Problem Description

Reference: This is from E.M. Rosen and R. N. Adams, “A Review of Spreadsheet Usage in Chemical Engineering Calculations”, Computers and Chemical Engineering, Vol. 11, No. 6, pp. 723-736, but they took it from Henley and Seader, “Equilibrium Stage Separation Operations in Chemical Engineering”, Wiley, NY 1981 pg. 653.  I don’t have a copy of […]

A New Set of Problems to Work…From the Early Days of Personal Computers

What Next? We just completed working the ten problems from the 1997 ASEE workshop.  We worked a variety of problems that had solutions with other software packages such as Microsoft Excel, MATLAB, Mathematica, Maple and Polymath.  Please compare and let me know what you think.  Now, let’s look at the following journal article for a […]

Fitting Polynomials and Correlation Equations to Vapor Pressure Data – Solution

Solve the problem: 1. Fit the Data to a Polynomial Below is the program output in IPython with values for the various data fits. It is a little confusing, but now you know why in the earlier post that the polynomial coefficients are ‘backwards’.   You see the polynomial defined as p = 0.0007449*x3 + 0.03945*x2 […]

Fitting Polynomials and Correlation Equations to Vapor Pressure Data – Programming Approach

Plan your solution: Draw a picture, in this case, list all of your data and equations Remember the fundamentals and apply Draw your material or energy balance envelope (If necessary, not in this case) Remember [Accumulation = In – Out + Source/Sink] Think about what you need to do and the answer you want You […]

Fitting Polynomials and Correlation Equations to Vapor Pressure Data – Problem Description

Reference: This is Problem 3 in the ASEE 1997 problem set.   We will be fitting vapor pressure data for benzene to  a polynomial and then to a couple of correlating equations. Concepts: Put the data into arrays so that we can work with it Use Ipython with Scite editor to edit and save files Import […]