Kyupii / CheToolbox

A personal project which packages common Chemical Engineering Calcs & Physical properties libraries.
GNU General Public License v3.0
2 stars 0 forks source link

CheToolbox

Co-Written by Quan Phan & Ethan Molnar

About

CheToolbox (Chemical Engineering Toolbox) is a Python package designed to formalize calculations learned throughout university and professional experience in code. Functions are written to be clear, concise, easy to use, and save time compared to starting from scratch. This code is written in a semi-functional programming style, with a focus on internal consistency.

License

CheToolbox is distributed under GPL License version 3 (GPLv3)

Dependencies

The following dependencies will be necessary for CheToolbox to build properly,

eq_points = np.array([[0.02, 0.05], [0.03, 0.1], [0.1, 0.3], [0.2, 0.48], [0.3, 0.59], [0.4, 0.68], [0.5, 0.75], [0.59, 0.8], [0.8, 0.9], [0.91, 0.95] ]) eq_curve = separations.eq_curve_estim(eq_points) # estimate equilibrium curve for binary mixture

liqlineH = common.point_conn((0, 15), (.95, 5)) # enthalpy curve (assumed linear) for liquid mixtures vaplineH = common.point_conn((0, 55), (.95, 40)) # enthalpy curve (assumed linear) for vapor mixtures Fpoint = (xf, vaplineH.eval(xf) - 30.) # enthalpy of feed

separations.ponchon_savarit_full_est(eq_curve, liqlineH, vaplineH, Fpoint, q, xd, xb, Rmin_mult, PLOTTING_ENABLED = True)

Returns:
```py
     tieline: <common.LinearEq object at 0x00000239FE74B710>
        Rmin: 0.5039208963545665
           R: 0.6550971652609364
  min_stages: 5.447199278007249
ideal_stages: 10.779371485763459

Ponchon Savarit Diagram that Displays All Equilibrium Tielines and Both Enthalpy Lines