VLE Parameter Regression fits binary NRTL interaction parameters to your measured vapor–liquid equilibrium data, so VLE / Flash can calculate with fitted parameters instead of tabulated or missing ones. Its params table is VLE / Flash's binary_params input, so the two chain directly in a workflow. It runs on CPU.
How it works
The model is the same as VLE / Flash's: an NRTL liquid with τᵢⱼ = aᵢⱼ + bᵢⱼ/T and a single symmetric α, plus a Peng–Robinson or SRK vapor. Feeding the fitted parameters back into VLE / Flash reproduces the fit.
- What's fitted. Any of
a12,a21,b12,b21, andalpha. The default fitsb12andb21with α fixed at 0.3. Parameters you don't fit stay atinitial_guess(0 by default) oralpha. - Objective. Bounded least squares on bubble-point residuals: temperature for isobaric data or pressure for isothermal data (
residual_basis: autodecides), plus y₁ where the row has it. - Bounds. aᵢⱼ between −100 and 100, bᵢⱼ between −20,000 and 20,000 K, and α between 0.001 and 1.
- Uncertainty. Asymptotic standard errors at the solution, or none when there are too few points.
Warnings flag failed points, missing y₁, a solver that didn't converge, and poor fits (RMSE above 5 K or 10 % of P), which usually mean wrong units or the wrong components.
Inputs
components: exactly two, bynameorsmiles, with optionaltc_k,pc_pa, andomega.data: up to 200 rows oftemperature_k,pressure_pa,x1, and optionaly1, with at least one more row than the number of fitted parameters (and at least 3). Units are in the column names; convert other units first, or run the data through the VLE Thermodynamic Consistency Checker, which converts them and emits this exact table.eos,residual_basis,fit_parameters,alpha, andinitial_guess.
Outputs
| File | Contents |
|---|---|
params.csv | One row per direction: component_i, component_j, tau_a, tau_b, alpha (VLE / Flash's binary_params) |
params.json | The fitted parameters as NRTL matrices, fit statistics, solver status, and warnings |
residuals.csv | Measured and calculated values and residuals per point, with ok or failed |
result.json | A summary: basis, parameters, standard errors, and RMSE |
Not covered
- Liquid–liquid equilibrium, ternary or larger systems, and UNIFAC group parameters.
- Cubic-equation-of-state kᵢⱼ: VLE / Flash builds its vapor from critical properties alone, so a fitted kᵢⱼ wouldn't change its results.
Related tools
VLE Thermodynamic Consistency Checker, VLE / Flash, and Group-Contribution Properties for critical properties.