Engineering With Python Rotating Header Image

Posts Tagged ‘scipy’

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

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

Reversible, Exothermic, Gas Phase Reaction in a Catalytic Reactor – Solution

Solve the problem: Okay, let’s open our IPython window, pull up our script and run to see what happens.  We should see the following plot. Where is the plot for x and y?  This only has the temperature.  Hmmm, well, the range for x is only from 0.0 to 1.0 and the temperature in the […]