Engineering With Python Rotating Header Image

Posts under ‘Scipy arrays’

Calculate a Four Component ‘Flash’ – Solution

Solve the Problem: Let’s see what the output of the program looks like: We can see that the mole fractions are propane = 0.071, butane = 0.183, pentane = 0.310 and hexane = 0.435 and they (whew!) add up to 1.0 which is a good sign.  We calculate α = 0.1219 and Rosen and Adams […]

Calculate a Four-Component ‘Flash’ – 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 […]

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 […]

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 […]

Steady-State Material Balances on a Separation Train – Solution

Solve the problem: Execute the script and let’s see what the molar flow rates of D_1, D_2, B_1 and B_2 are?  I’m on the edge of my seat…however, I have been working for a while and kinda need to go, if you know what I mean, but I digress, let’s see it. Molar Flow Rates […]

Steady-State Material Balances on a Separation Train – Programming Approach

Plan your solution: Draw a picture, in this case, list all of your data and equations (see the first post of this series) Remember the fundamentals (steady state material balance) and apply Draw your material or energy balance envelope (continuous distillation at wikipedia) Remember [Accumulation = In – Out + Source/Sink] Think about what you […]