Skip to content

polykin.thermo.acm¤

ScatchardHildebrand_gamma ¤

ScatchardHildebrand_gamma(
    T: float,
    x: FloatVector,
    delta: FloatVector,
    v: FloatVector,
) -> FloatVector

Calculate the activity coefficients of a multicomponent mixture according to the Scatchard-Hildebrand model.

\[ \ln{\gamma_i} = \frac{v_i}{R T} (\delta_i - \bar{\delta})^2 \]

with:

\[\begin{aligned} \phi_i &= \frac{x_i v_i}{\sum_j x_j v_j} \\ \bar{\delta} &= \sum_j \phi_j \delta_j \end{aligned}\]

where \(x_i\) are the mole fractions, \(\delta_{i}\) are the solubility parameters, and \(v_i\) are the molar volumes.

References

  • Prausnitz, J. M.; Lichtenthaler, R. N.; de Azevedo, E. G. Molecular Thermodynamics of Fluid-Phase Equilibria, 3rd ed.; Prentice Hall, 1999, p. 325.
PARAMETER DESCRIPTION
T

Temperature [K].

TYPE: float

x

Mole fractions of all components [mol/mol].

TYPE: FloatVector(N)

delta

Solubility parameters of all components [(J/L³)^(1/2)].

TYPE: FloatVector(N)

v

Molar volumes of all components [L³/mol].

TYPE: FloatVector(N)

RETURNS DESCRIPTION
FloatVector(N)

Activity coefficients of all components.

See Also
Source code in src/polykin/thermo/acm/scatchard.py
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
def ScatchardHildebrand_gamma(
    T: float,
    x: FloatVector,
    delta: FloatVector,
    v: FloatVector,
) -> FloatVector:
    r"""Calculate the activity coefficients of a multicomponent mixture according to the
    Scatchard-Hildebrand model.

    $$ \ln{\gamma_i} = \frac{v_i}{R T} (\delta_i - \bar{\delta})^2 $$

    with:

    \begin{aligned}
    \phi_i       &= \frac{x_i v_i}{\sum_j x_j v_j} \\
    \bar{\delta} &= \sum_j \phi_j \delta_j
    \end{aligned}

    where $x_i$ are the mole fractions, $\delta_{i}$ are the solubility parameters, and
    $v_i$ are the molar volumes.

    **References**

    *   Prausnitz, J. M.; Lichtenthaler, R. N.; de Azevedo, E. G. Molecular Thermodynamics
        of Fluid-Phase Equilibria, 3rd ed.; Prentice Hall, 1999, p. 325.

    Parameters
    ----------
    T : float
        Temperature [K].
    x : FloatVector (N)
        Mole fractions of all components [mol/mol].
    delta : FloatVector (N)
        Solubility parameters of all components [(J/L³)^(1/2)].
    v : FloatVector (N)
        Molar volumes of all components [L³/mol].

    Returns
    -------
    FloatVector (N)
        Activity coefficients of all components.

    See Also
    --------
    * [`ScatchardHildebrand`](ScatchardHildebrand.md): Related class.
    """
    phi = x * v
    phi /= phi.sum()
    δm = dot(phi, delta)
    return exp(v / (R * T) * (delta - δm) ** 2)