项目作者: CodingBobby

项目描述 :
Python module you can calculate rectification processes with
高级语言: Python
项目地址: git://github.com/CodingBobby/rectipy.git
创建时间: 2019-06-07T21:59:42Z
项目社区:https://github.com/CodingBobby/rectipy

开源协议:

下载


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

  1. import rectipy as rp
  2. # first, we create the components, our mixture will be made of
  3. # the argument is a string of the lowercase name of the component
  4. # for available components and their exact spelling, check the README
  5. water = rp.Component('water')
  6. ethanol = rp.Component('ethanol')
  7. # then, we mix them together
  8. # it is important in which order you pass the components,
  9. # as the first one will be reference to concentration
  10. # values in the following procedure
  11. mixture = rp.Mixture(ethanol, water)
  12. # and now initialize the rectification process
  13. # the required arguments are:
  14. # mixture: the created Mixture object
  15. # xA: concentration of the swamp
  16. # xF: concentration of the feed
  17. # xD: concentration of the product
  18. rectification = rp.Rectification(mixture, 0.12, 0.4, 0.78)
  19. # with this, we get the McCabe-Thile plot of our mixture
  20. # with operation lines and rectification steps drawn in
  21. 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