1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//! Mixing rules for cubic equations of state.
//!
//! When applying a pure-component EOS to a mixture, you need rules to combine
//! individual a_i, b_i parameters into mixture-average values a_mix, b_mix.
//! The choice of mixing rule significantly affects prediction quality:
//!
//! - **Classical rules** (IVDW, IIVDW, Classical): Quadratic in composition,
//! use binary interaction parameters kij. Simple but limited for non-ideal
//! liquid mixtures.
//!
//! - **Excess-Gibbs-energy rules** (Wong-Sandler, Huron-Vidal, MHV1/2): Incorporate
//! activity coefficient model information into the EOS mixing rule. This gives the
//! EOS the accuracy of activity models for liquids while retaining correct behavior
//! at high pressure. The key innovation of Wong-Sandler (Ref 21) is satisfying the
//! quadratic composition dependence of the second virial coefficient.
//!
//! - **C-parameter rules** (PatelTejaC, PatelTejaUSBC, SchmidtWenzelC): Specific to
//! three-parameter EOS from the Pascal codebase. These define how the third
//! constant c is mixed — either by simple mole-fraction or weighted averaging.
//!
//! # References
//! - (21) Orbey & Sandler — Wong-Sandler mixing rules
//! - (4) Da Silva & Báez (1989) — C-parameter mixing for 3-param EOS
/// Mixing rule for combining pure-component EOS parameters into
/// mixture parameters (a_mix, b_mix, and optionally c_mix for 3-parameter EOS).
///
/// The first 8 variants (WongSandler through Classical) apply to the a and b
/// parameters of any two-parameter cubic EOS. The last 3 variants handle the
/// additional c parameter needed by Schmidt-Wenzel and Patel-Teja EOS.