VLE Regression Toolkit (Excel + Python Scripts)
The VLE Regression Toolkit is a computational resource combining Excel-based interfaces and Python scripts to regress vapor–liquid equilibrium (VLE) data for thermodynamic modeling, enabling parameter estimation for equations of state (EoS) and activity coefficient models. It facilitates fitting binary and multicomponent phase equilibrium data to models such as NRTL, UNIQUAC, Peng–Robinson, and Soave–Redlich–Kwong. The toolkit bridges spreadsheet usability with programmatic flexibility for robust, reproducible thermodynamic parameter optimization.
📖 Overview
📑 Key Components
🎯 Applications
- ✓ Parameter estimation for activity coefficient models in solvent design
- ✓ Calibration of cubic equation-of-state parameters for hydrocarbon or CO₂-containing mixtures
- ✓ Validation and benchmarking of new thermodynamic models against NIST TRC or DDBST experimental databases
📐 Key Formulas
Bubble Pressure (Raoult’s Law Extension)
P = \sum_i x_i \gamma_i P_i^{sat}(T)
Calculates total pressure at bubble point for a liquid-phase mixture using activity coefficients (γ_i) and pure-component saturation pressures (P_i^sat)
Objective Function (Weighted Sum of Squares)
SSE = \sum_{j=1}^{N} w_j \left[ y_j^{exp} - y_j^{calc}(\theta) \right]^2
Minimized residual sum of squares for regression, where y_j^exp are experimental values (e.g., vapor-phase mole fractions), y_j^calc depends on adjustable parameters θ, and w_j are weighting factors
NRTL Activity Coefficient
\ln \gamma_i = \frac{\sum_j x_j G_{ji} \tau_{ji}}{\sum_k x_k G_{ki}} + \sum_j x_j \left[ \frac{G_{ij}}{\sum_k x_k G_{kj}} (\tau_{ij} - \sum_l \frac{x_l G_{lj} \tau_{lj}}{\sum_k x_k G_{kj}}) \right]
Computes activity coefficient γ_i for component i using NRTL model parameters τ_ij (energy interaction) and G_ij (non-randomness factor)