Skip to content

Python module you can calculate rectification processes with

Notifications You must be signed in to change notification settings

CodingBobby/rectipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rectipy

Hi! Cool that you found my small python module that automatically calculates an entire rectification process for you. Here's how to do it:

Usage

import rectipy as rp

# first, we create the components, our mixture will be made of
# the argument is a string of the lowercase name of the component
# for available components and their exact spelling, check the README
water = rp.Component('water')
ethanol = rp.Component('ethanol')

# then, we mix them together
# it is important in which order you pass the components,
# as the first one will be reference to concentration
# values in the following procedure
mixture = rp.Mixture(ethanol, water)

# and now initialize the rectification process
# the required arguments are:

# mixture: the created Mixture object
# xA: concentration of the swamp
# xF: concentration of the feed
# xD: concentration of the product
rectification = rp.Rectification(mixture, 0.12, 0.4, 0.78)

# with this, we get the McCabe-Thile plot of our mixture
# with operation lines and rectification steps drawn in
rectification.plot()

This is the produced output—beautiful, right?

example plot

Available compounds

At this state, you can create mixtures with the following compounds:

  • water
  • ethanol
  • ethyl acetate
  • benzene
  • p-xylene
  • toluene

About

Python module you can calculate rectification processes with

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages