Engineering With Python Rotating Header Image

Posts Tagged ‘blog’

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

Solving Differential Algebraic Equations – Solution

Solve the problem: So, let’s execute the program we developed in the last post and see how the concentration changes with time and if we believe what the computer is telling us.  If you need a refresher for how to execute a program script in IPython, go to IPython documentation webpage.  It has a tremendous […]