Skip to content

Isotherms

Isotherm Models

The isotherm describes the equilibrium adsorbed-phase loading of a component, \(q_i^*\), as a function of the local state: the pressure and composition of the gas in the cell, and the temperature of the solid. It is the thermodynamic ceiling that the kinetic rate model drives the actual loading \(q_i\) towards.

Each component in each adsorbent material is assigned its own isotherm. In a deck, every component of every adsorbent has an isotherm type and the parameters of that model. How the components' isotherms combine in a mixture is the adsorbent's mixing rule: each on its own (the default), or Ideal Adsorbed Solution Theory over their pure isotherms. To plot or check an isotherm outside a simulation, evaluate it with the engine's own code from Python: skarstrom.evaluate_isotherm(kind, params, pressure, temperature) (see Isotherm Fitting).

Partial pressure vs. concentration. Several models come in two forms. Partial-pressure models are written in terms of the partial pressure \(P_i = y_i P\). Concentration models use the molar concentration \(C_i = P_i / (R T)\), computed internally from the ideal gas law. The two forms are otherwise identical; choose whichever matches how your isotherm parameters were regressed.

Heat of adsorption. Each component also has an isosteric heat of adsorption \(\Delta H_i\), stored with the adsorbent (parameter adsorbent[<id>].heat_of_adsorption[<component>]). It couples the isotherm to the energy balance; it is a separate input and is not part of the isotherm equation itself. The temperature-dependent parameters in the models below (the \(q\), \(B_2\), \(\Delta H_0\) terms) describe how loading shifts with temperature but do not by themselves supply the heat released on adsorption.

The sections below give the exact formula implemented for each model together with its parameter names: they are the names in deck files, in the Python parameter paths (adsorbent[<id>].isotherm[<component>].<name>) and in skarstrom.isotherm_parameters(kind). \(R\) is the ideal gas constant and \(T\) the temperature.

Which temperature. In a simulation every isotherm, and the concentration \(C_i = P y_i/(R T)\) of the concentration forms, is evaluated at the solid temperature \(T_s\) of the cell. Under local thermal equilibrium that is the single bed temperature; under local thermal non-equilibrium it is the solid's own temperature, not the gas temperature.

Mole fractions near zero. Freundlich, Sips, Sips 2, Dual Site Sips, Redlich–Peterson, Toth, Toth 2, toth_wadst, toth_humid and toth_catso compute their partial pressure from a smoothed mole fraction, \(P_i = P\,\tilde y_i\), a smooth \(\max(y_i, 0)\): \(\tilde y_i = \tau \ln(1 + e^{y_i/\tau})\) with \(\tau = 10^{-6}\). \(\tilde y_i = y_i\) exactly for \(y_i > 4\times10^{-5}\), and \(\tilde y_i = 0\) for \(y_i < -4\times10^{-5}\). Between the two, the difference from \(y_i\) matters only at trace levels: at \(y_i = 0\), \(\tilde y_i = \tau \ln 2 \approx 6.9\times10^{-7}\), so a kind that uses \(\tilde y_i\) in its numerator has a loading that is not zero; at \(y_i = 10^{-6}\), \(\tilde y_i\) is 31 % above \(y_i\); at \(y_i = 10^{-5}\) the relative difference is \(5\times10^{-6}\). Redlich–Peterson also uses \(\tilde y_i\) in its numerator. Toth, Toth 2, toth_wadst, toth_humid and toth_catso use \(\tilde y_i\) only inside the power, \((b P \tilde y_i)^v\), and \(y_i\) itself in the linear factor \(b P y_i\) of the numerator, so their loading is exactly 0 at \(y_i = 0\) and follows the Henry line through it. (Before 0.19 Toth, Toth 2, toth_wadst and toth_catso also used \(\tilde y_i\) in the numerator. The loading at \(y_i = 0\) was then not zero, and a component absent from the cycle took up and released loading as the pressure and temperature swung, so its gas mole fraction left zero by up to about \(10^{-5}\).) Henry, every Langmuir kind, anti-Langmuir, the GAB kinds and Cubic-Langmuir use \(y_i\) itself. The competitive Sips kinds and Extended Langmuir–Freundlich use the continuation of Competitive Sips kinds near zero mole fraction instead. Under the IAST mixing rule the pure isotherms are evaluated at the partial pressure, without this smoothing. A single-component evaluation at mole fraction 1 (the default of skarstrom.evaluate_isotherm) is not affected.


Inert

A non-adsorbing component. Its loading is fixed at zero, so it acts purely as a carrier gas.

\[ q_i^* = 0 \]

Henry

The linear (low-coverage) limit, with a temperature-dependent Henry constant.

\[ q_i^* = k \thinspace \exp\negthinspace \left(\frac{Q}{R T}\right) P_i \]
Symbol Description Unit
\(q_i^*\) Equilibrium loading of component \(i\) mol kg⁻¹
\(k\) Henry coefficient mol kg⁻¹ Pa⁻¹
\(Q\) Adsorption energy parameter J mol⁻¹
\(P_i\) Partial pressure of component \(i\) Pa

Single Site Langmuir

The classic monolayer model, available on a partial-pressure or concentration basis.

Partial pressure form (Single Site Langmuir):

\[ q_i^* = \frac{m_1 \thinspace b_1 \exp\negthinspace \left(\frac{q_1}{R T}\right) P_i}{1 + b_1 \exp\negthinspace \left(\frac{q_1}{R T}\right) P_i} \]

Concentration form (Single Site Langmuir (Concentration)) — replace \(P_i\) with \(C_i = P_i/(RT)\):

\[ q_i^* = \frac{m_1 \thinspace b_1 \exp\negthinspace \left(\frac{q_1}{R T}\right) C_i}{1 + b_1 \exp\negthinspace \left(\frac{q_1}{R T}\right) C_i} \]
Symbol Description Unit (P-form / C-form)
\(m_1\) Saturation capacity mol kg⁻¹
\(b_1\) Affinity pre-factor Pa⁻¹ / m³ mol⁻¹
\(q_1\) Adsorption energy J mol⁻¹

Dual Site Langmuir

Two independent Langmuir sites, for heterogeneous surfaces. Available on a partial-pressure or concentration basis.

Partial pressure form (Dual Site Langmuir):

\[ q_i^* = \frac{m_1 \thinspace b_1 \exp\negthinspace \left(\frac{q_1}{R T}\right) P_i}{1 + b_1 \exp\negthinspace \left(\frac{q_1}{R T}\right) P_i} + \frac{m_2 \thinspace b_2 \exp\negthinspace \left(\frac{q_2}{R T}\right) P_i}{1 + b_2 \exp\negthinspace \left(\frac{q_2}{R T}\right) P_i} \]

The concentration form (Dual Site Langmuir (Concentration)) substitutes \(C_i\) for \(P_i\) in both terms.

Symbol Description Unit
\(m_1, m_2\) Saturation capacity of each site mol kg⁻¹
\(b_1, b_2\) Affinity pre-factor of each site Pa⁻¹ (P-form) / m³ mol⁻¹ (C-form)
\(q_1, q_2\) Adsorption energy of each site J mol⁻¹

The dual-site kinds (pure and extended) also take four optional water factors, lambda1, lambda2, lambda3 and gamma2 (New in 0.12.). They lower the loading with the adsorbed water loading; their default 0 gives the formula above. See Water on CALF-20.


Extended (Competitive) Langmuir

The Extended variants make adsorption competitive: the loading of each component is reduced by the other components of the same kind through a shared denominator. Use these for multi-component mixtures where components compete for the same sites. They are available in single-site and dual-site forms, each on a partial-pressure or concentration basis (Extended Single Site Langmuir, Extended Dual Site Langmuir, and their (Concentration) counterparts).

Extended single-site (partial-pressure):

\[ q_i^* = \frac{m_{1,i} \thinspace b_{1,i} \exp\negthinspace \left(\frac{q_{1,i}}{R T}\right) P_i}{1 + \sum_{j \in \mathcal{S}(i)} b_{1,j} \exp\negthinspace \left(\frac{q_{1,j}}{R T}\right) P_j} \]

The dual-site extended form adds a second competitive term with its own denominator \(1 + \sum_{j \in \mathcal{S}(i)} b_{2,j}\exp(q_{2,j}/RT)\thinspace P_j\). Parameters are entered per component exactly as for the ordinary Langmuir models; the coupling between components is applied automatically.

Who competes. \(\mathcal{S}(i)\) is the set of components of the same adsorbent that have the same kind as component \(i\) (including \(i\) itself). A component with another kind is not in the denominator, even when that kind is competitive too, and a component on another adsorbent (in a mixed layer) never is. For example, with CO₂ on extended_dual_site_langmuir_p and N₂ on extended_single_site_langmuir_p, the two do not compete: give both the same kind to couple them. The same rule holds for every competitive kind (Extended Sips 2, Arrhenius Sips and Extended Langmuir–Freundlich below).


Anti-Langmuir

For systems where loading accelerates with concentration (e.g. some cooperative-adsorption cases).

\[ q_i^* = \frac{a \thinspace P_i}{1 - b \thinspace P_i} \]
Symbol Description Unit
\(a\) Linear coefficient mol kg⁻¹ Pa⁻¹
\(b\) Non-linearity coefficient Pa⁻¹

Freundlich

An empirical power-law model.

\[ q_i^* = \left(a \thinspace P_i\right)^{1/v} \]
Symbol Description Unit
\(a\) Freundlich coefficient (mol kg⁻¹)\(^{v}\) Pa⁻¹
\(v\) Heterogeneity exponent -

Freundlich in concentration

New in 0.19

The kind freundlich_c.

The Freundlich form in the molar concentration, the common form for adsorption from a liquid:

\[ q_i^* = K_f\thinspace C_i^{\,n}, \qquad C_i = \frac{P\thinspace \tilde y_i}{R T}\ \text{(gas)},\quad C_i = \tilde x_i C\ \text{(liquid)} \]

with the smoothed mole fraction \(\tilde y_i\) of Mole fractions near zero.

Symbol Description Unit
\(K_f\) (K_f) Freundlich coefficient mol kg⁻¹ (mol m⁻³)⁻ⁿ
\(n\) (n) Exponent -

The unit of \(K_f\) depends on \(n\), so the engine cannot convert it from a unit text. A \(K_f\) given for \(q\) in one unit and \(c\) in another converts as \(K_f = f_q K_\text{user} / f_c^{\,n}\), where \(f_q\) and \(f_c\) convert the user's loading and concentration to mol kg⁻¹ and mol m⁻³. For a solute of molar mass \(M\) [kg mol⁻¹] with \(q\) in ng mg⁻¹ and \(c\) in ng L⁻¹: \(f_q = 10^{-6}/M\) and \(f_c = 10^{-9}/M\). In C++ this is FreundlichCFromUserUnits.

Under IAST it is the Freundlich family with \(a = K_f^{1/n}/(R T)\) on a gas (\(K_f^{1/n}\) on a liquid) and exponent \(n\).


Sips

A Langmuir–Freundlich hybrid with a heterogeneity exponent.

\[ q_i^* = q_{sat}\thinspace \frac{\left(b \thinspace P_i\right)^{1/v}}{1 + \left(b \thinspace P_i\right)^{1/v}} \]
Symbol Description Unit
\(q_{sat}\) Saturation capacity mol kg⁻¹
\(b\) Affinity coefficient Pa⁻¹
\(v\) Heterogeneity exponent -

Sips 2 (temperature-dependent)

A Sips form with explicit temperature dependence built into the capacity, affinity and exponent, referenced to a temperature \(T_{ref}\).

\[ b_i = B_1 \exp\negthinspace \left(\frac{B_2}{R T}\right), \qquad s_i = C_1 + C_2\negthinspace \left(\frac{T}{T_{ref}} - 1\right), \qquad q_{max} = A_1 \exp\negthinspace \left[A_2\negthinspace \left(\frac{T}{T_{ref}} - 1\right)\right] \]
\[ q_i^* = q_{max}\thinspace \frac{\left(b_i P_i\right)^{s_i}}{1 + \left(b_i P_i\right)^{s_i}} \]
Symbol Description Unit
\(A_1\) Saturation capacity at \(T_{ref}\) mol kg⁻¹
\(A_2\) Capacity temperature coefficient -
\(B_1\) Affinity pre-factor Pa⁻¹
\(B_2\) Affinity energy J mol⁻¹
\(C_1, C_2\) Exponent and its temperature coefficient -
\(T_{ref}\) Reference temperature K

An Extended Sips 2 competitive multi-component form is also available (kind extended_sips_2); it shares the denominator \(1 + \sum_{j \in \mathcal{S}(i)} (b_j P_j)^{s_j}\) across the components that have this kind (who competes). Below a mole fraction of \(10^{-5}\) each term is continued as described in Competitive Sips kinds near zero mole fraction.


Arrhenius Sips (Schell 2012)

The temperature-dependent Sips form of Schell et al. (Adsorption 18 (2012) 49, Eqs. 5–7), fitted there to CO₂, H₂ and N₂ on activated carbon: an Arrhenius saturation capacity and affinity, and an S-shaped (inverse-tangent) exponent. It is competitive, with a shared denominator of the same form as Extended Sips 2 (Ruthven's empirical mixture Sips), over the components that have the kind arrhenius_sips (who competes): an Arrhenius Sips component does not compete with an Extended Sips 2 one. Kind arrhenius_sips.

\[ n_{\infty,i} = a \exp\negthinspace \left(\frac{b}{R T}\right), \qquad k_i = A \exp\negthinspace \left(\frac{B}{R T}\right), \qquad c_i = c_{ref} + c_{amp}\thinspace \frac{2}{\pi} \arctan\negthinspace\left[\beta \left(T - T_c\right)\right] \]
\[ q_i^* = n_{\infty,i}\thinspace \frac{\left(k_i P_i\right)^{c_i}}{1 + \sum_{j \in \mathcal{S}(i)} \left(k_j P_j\right)^{c_j}} \]
Symbol Parameter Description Unit
\(a\) n_inf_a Saturation capacity pre-factor mol kg⁻¹
\(b\) n_inf_b Saturation capacity energy (\(0\) for a constant capacity) J mol⁻¹
\(A\) k_A Affinity pre-factor Pa⁻¹
\(B\) k_B Affinity energy J mol⁻¹
\(c_{ref}\) c_ref Exponent at \(T = T_c\) -
\(c_{amp}\) c_amp Exponent amplitude (\(0\) for a constant exponent) -
\(\beta\) c_beta Exponent steepness K⁻¹
\(T_c\) c_Tref Exponent centre temperature K

Below a mole fraction of \(10^{-5}\) each term is continued as described in the next section.


Competitive Sips kinds near zero mole fraction

In Extended Sips 2 and Arrhenius Sips each component's term \(z_i = (b_i P y_i)^{s_i}\) (and in Extended Langmuir–Freundlich the power \((P y_i / P_{ref})^{n_i}\) of \(z_i = b_i (P y_i / P_{ref})^{n_i}\)) has an infinite slope at \(y_i = 0\) when \(s_i < 1\). The integrator's Newton iteration cannot linearise that, and a component absent from part of the bed (ahead of its front, or after a purge) sits right on it. Below the mole fraction \(y_0 = 10^{-5}\) the power is therefore replaced by the quadratic in \(y_i\) that is zero at \(y_i = 0\) and has the power's value and slope at \(y_0\):

\[ z_i = \left(b_i P y_0\right)^{s_i}\thinspace t\left[(2 - s_i) - (1 - s_i)\thinspace t\right], \qquad t = \frac{y_i}{y_0}, \qquad 0 \le y_i < y_0 \]
  • Exact above \(y_0\). For \(y_i \ge 10^{-5}\) (10 ppm) the published isotherm is used unchanged, so a trace component's loading is exact down to 10 ppm, at every pressure and temperature. Below \(y_0\) the term has a finite Henry slope, \((2 - s_i)(b_i P y_0)^{s_i} / y_0\) at \(y_i = 0\), where the power's is infinite; at \(y_i = y_0/10\) it is 40 % of the power for the most singular exponent in the adsorbent library (\(s = 0.425\), CO₂ on 13X).
  • Smooth and favourable. The continuation matches the power's value and slope at \(y_0\) and, for \(s_i < 1\), is concave and increasing on \([0, y_0]\), so the isotherm has no inflection down to \(y_i = 0\), where the loading is exactly 0. A slightly negative mole fraction, which the integrator can produce ahead of a front, gives \(z_i = (2 - s_i)(b_i P y_0)^{s_i} \tanh t\), which continues the slope at 0 and stays bounded.
  • \(y_0\) is 1000 times the integrator's absolute tolerance on mole fractions (\(10^{-8}\)), so a Newton correction near \(y_i = 0\) sees an almost linear term.
  • For \(s_i \ge 2\), where the quadratic would not be monotone (no published fit is near it), the power is used down to \(y_i = 0\) and \(z_i = 0\) below it.

The single-component evaluation of these kinds (skarstrom.evaluate_isotherm, whose mole_fraction defaults to 1, and the isotherm fitter) uses the same function, so what is plotted or fitted is what the solver uses. Under the IAST mixing rule the pure isotherms are evaluated in partial pressure and absent components take the infinite-dilution limit, so this continuation does not enter; a pure Sips term with \(s_i < 1\) has its own continuation inside the IAST solve (see Trace levels there).

Before this was introduced (see the changelog), the two Sips kinds multiplied every term by \(y_i^2 / (y_i^2 + 10^{-6})\), in the solver only. That halved a component's loading at \(y_i = 10^{-3}\), cut it by 1 % at \(10^{-2}\) and by 99 % at \(10^{-4}\). Extended Langmuir–Freundlich used \(y_i^2 / (y_i^2 + 10^{-10})\) in both paths: \(10^{-4}\) at \(y_i = 10^{-3}\), 1 % at \(10^{-4}\), about 50 % at \(10^{-5}\).


Dual Site Sips

Two independent Sips sites.

\[ q_i^* = q_{sat,1}\thinspace \frac{\left(b_1 P_i\right)^{1/v_1}}{1 + \left(b_1 P_i\right)^{1/v_1}} + q_{sat,2}\thinspace \frac{\left(b_2 P_i\right)^{1/v_2}}{1 + \left(b_2 P_i\right)^{1/v_2}} \]
Symbol Description Unit
\(q_{sat,1}, q_{sat,2}\) Saturation capacity of each site mol kg⁻¹
\(b_1, b_2\) Affinity of each site Pa⁻¹
\(v_1, v_2\) Heterogeneity exponent of each site -

Redlich–Peterson

A three-parameter model bridging Henry and Langmuir behaviour.

\[ q_i^* = \frac{a \thinspace P_i}{1 + \left(b \thinspace P_i\right)^{v}} \]
Symbol Description Unit
\(a\) Linear coefficient mol kg⁻¹ Pa⁻¹
\(b\) Affinity coefficient Pa⁻¹
\(v\) Exponent (\(0 < v \le 1\)) -

Toth

A widely used heterogeneous model that reduces to Langmuir when \(v = 1\).

\[ q_i^* = \frac{q_{sat}\thinspace b \thinspace P_i}{\left[1 + \left(b \thinspace P_i\right)^{v}\right]^{1/v}} \]
Symbol Description Unit
\(q_{sat}\) Saturation capacity mol kg⁻¹
\(b\) Affinity coefficient Pa⁻¹
\(v\) Heterogeneity exponent -

Toth 2 (temperature-dependent)

A Toth form in which the capacity, affinity and exponent all vary with temperature about a reference \(T_0\).

\[ q_{s} = q_{sat}\exp\negthinspace \left[x\left(1 - \frac{T}{T_0}\right)\right], \qquad b = b_0 \exp\negthinspace \left[\frac{\Delta H_0}{R T_0}\left(\frac{T_0}{T} - 1\right)\right], \qquad w = w_0 + \alpha\left(1 - \frac{T_0}{T}\right) \]
\[ q_i^* = \frac{q_{s}\thinspace b \thinspace P_i}{\left[1 + \left(b \thinspace P_i\right)^{w}\right]^{1/w}} \]
Symbol Description Unit
\(q_{sat}\) Saturation capacity at \(T_0\) mol kg⁻¹
\(x\) Capacity temperature coefficient -
\(T_0\) Reference temperature K
\(b_0\) Affinity at \(T_0\) Pa⁻¹
\(\Delta H_0\) Isosteric heat parameter J mol⁻¹
\(w_0\) Exponent at \(T_0\) -
\(\alpha\) Exponent temperature coefficient -

Extended Langmuir–Freundlich (temperature-dependent)

The competitive Langmuir–Freundlich form of Yang (Gas Separation by Adsorption Processes, 1987), with the capacity linear in \(T\), an Arrhenius affinity and an exponent whose inverse is linear in \(1/T\). It is the "extended Langmuir–Freundlich" isotherm of toPSAil, whose \(k_1\)–\(k_6\) map one to one (with \(P_{ref} = 10^5\) Pa for its bar-based \(k_3\)). Kind extended_langmuir_freundlich.

\[ q_{s,i} = k_1 + k_2\thinspace T, \qquad b_i = k_3 \exp\negthinspace \left(\frac{k_4}{T}\right), \qquad \frac{1}{n_i} = k_5 + \frac{k_6}{T} \]
\[ q_i^* = q_{s,i}\thinspace \frac{b_i \left(P_i / P_{ref}\right)^{n_i}}{1 + \sum_{j \in \mathcal{S}(i)} b_j \left(P_j / P_{ref}\right)^{n_j}} \]
Symbol Description Unit
\(k_1\) Saturation capacity at 0 K (intercept) mol kg⁻¹
\(k_2\) Capacity temperature slope mol kg⁻¹ K⁻¹
\(k_3\) Affinity pre-factor (per \(P_{ref}^{\,n}\)) -
\(k_4\) Affinity temperature K
\(k_5\) Inverse exponent intercept -
\(k_6\) Inverse exponent temperature K
\(P_{ref}\) Pressure unit of the fit (default \(10^5\) Pa) Pa

The affinity multiplies the power, \(b P^n\), where Sips 2 raises the affinity with the pressure, \((b P)^n\); the two coincide only when \(k_2 = k_6 = 0\) (then Extended Sips 2 with \(A_1 = k_1\), \(A_2 = 0\), \(C_1 = 1/k_5\), \(C_2 = 0\), \(B_1 = k_3^{k_5} / P_{ref}\), \(B_2 = R k_4 k_5\)). Below a mole fraction of \(10^{-5}\) the power \((P y_i / P_{ref})^{n_i}\) is continued exactly as in the competitive Sips kinds (with \(b_i P\) there read as \(P / P_{ref}\) and \(s_i\) as \(n_i\); see Competitive Sips kinds near zero mole fraction), so the isotherm is exact for \(y_i \ge 10^{-5}\) at every temperature, whatever \(n_i(T)\), and has a finite Henry slope below. Under the IAST mixing rule each component's term is a pure Sips isotherm with affinity \(b_i^{1/n_i} / P_{ref}\) and exponent \(n_i\).


GAB and BET (water and other vapours)

The Guggenheim–Anderson–de Boer (GAB) isotherm describes multilayer adsorption of a condensable vapour, typically water, as a function of the relative pressure (relative humidity for water) \(x_i = P_i / p_{sat,i}(T)\) with \(P_i = y_i P\). Two kinds share the equation and differ only in how \(C\) and \(K\) depend on temperature.

\[ q_i^* = \frac{q_m\thinspace C\thinspace K\thinspace x_i}{(1 - K x_i)\thinspace(1 - K x_i + C K x_i)} \]

\(C\) measures how much more strongly the first layer binds than the bulk liquid, and \(K\) how much the multilayer differs from it (\(K = 1\): the multilayer is liquid). BET is the special case \(K = 1\): use kind gab with \(K_0 = 1\), \(\Delta H_K = 0\). It has no kind of its own, so it shares the same code and the same safeguards below.

Kind gab (constants with an optional Arrhenius temperature dependence):

\[ q_m = q_{m0} \exp\negthinspace\left(\frac{\Delta H_m}{RT}\right), \qquad C = C_0 \exp\negthinspace\left(\frac{\Delta H_C}{RT}\right), \qquad K = K_0 \exp\negthinspace\left(\frac{\Delta H_K}{RT}\right) \]
Symbol Name Description Unit
\(q_{m0}\) q_m0 Monolayer capacity (its value when \(\Delta H_m = 0\)) mol kg⁻¹
\(\Delta H_m\) dH_m Temperature coefficient of \(q_m\) J mol⁻¹
\(C_0\) C0 GAB constant \(C\) pre-factor -
\(\Delta H_C\) dH_C Temperature coefficient of \(C\) J mol⁻¹
\(K_0\) K0 GAB constant \(K\) pre-factor -
\(\Delta H_K\) dH_K Temperature coefficient of \(K\) J mol⁻¹

With \(\Delta H_m = \Delta H_C = \Delta H_K = 0\), the loading depends on temperature only through \(p_{sat}(T)\): the isotherms at different temperatures collapse onto one curve in relative humidity. That is the form of Stampi-Bombelli et al. (Adsorption 26 (2020) 1183, Eq. 6 and Table 2; their \(c_m\), \(c_G\), \(K_{ads}\) are \(q_{m0}\), \(C_0\), \(K_0\)) and of Grossmann et al. (Ind. Eng. Chem. Res. 64 (2025), Eq. 12 and Table 5).

Kind gab_young (layer energies of Young et al., Energy Environ. Sci. 14 (2021) 5377, also used by Low et al., J. Chem. Eng. Data 68 (2023), Eqs. 17–22 and Table 9, and by pyDAC):

\[ C = \exp\negthinspace\left(\frac{E_1 - E_{10}}{RT}\right), \qquad K = \exp\negthinspace\left(\frac{E_{2\text{–}9} - E_{10}}{RT}\right), \qquad E_1 = C_E - e^{D T}, \quad E_{2\text{–}9} = F + G\thinspace T, \quad E_{10} = E_{10,A} + E_{10,B}\thinspace T \]
Symbol Name Description Unit
\(q_m\) q_m Monolayer capacity mol kg⁻¹
\(C_E\) C_E First-layer energy constant (the papers' \(C\)) J mol⁻¹
\(D\) D First-layer energy exponent K⁻¹
\(F\) F Energy of layers 2–9 at 0 K J mol⁻¹
\(G\) G Temperature slope of the layers 2–9 energy J mol⁻¹ K⁻¹
\(E_{10,A}\) E10_A Heat of condensation of the bulk liquid at 0 K (water: 57220) J mol⁻¹
\(E_{10,B}\) E10_B Its temperature slope (water: −44.38) J mol⁻¹ K⁻¹

The papers print \(C_E\), \(F\) and \(G\) in kJ: enter them in J (\(C_E = 46.83\) kJ mol⁻¹ is 46830). The defaults are the Lewatit VP OC 1065 values of Young et al. as reprinted by Low et al. (SI Table S5).

Saturation pressure. \(p_{sat,i}(T)\) is the vapour-pressure ancillary equation of the component's CoolProp fluid file (a closed-form fit of the full equation of state, about 0.1 µs per call), held in the table component_properties.h. For water it agrees with the IAPWS-95 saturation pressure to within 0.02 % from 273 K to the critical point. Above the critical temperature \(p_{sat}\) is held at the critical pressure. Below 0.75 times the triple-point temperature it is held at its value there; between that and the triple point, the curve over the (supercooled) liquid is extrapolated. Any engine component can use a GAB kind, not only water.

Safe limits. The GAB has a pole at \(K x = 1\), and a simulation can briefly produce \(x > 1\) (supersaturation; condensation is not modelled, and the run-health check SUPERSATURATION warns when it happens) or \(y_i < 0\) ahead of a front. So the loading is exact for \(0 \le x \le x_c\) with \(x_c = \min(1,\ 0.95/K)\), and continued so that it stays finite, smooth (continuous slope) and increasing everywhere:

  • for \(x < 0\) it follows the Henry line \(q = q_m C K x\), the GAB's slope at \(x = 0\);
  • for \(x > x_c\) it follows the tangent at \(x_c\), \(q = q(x_c) + q'(x_c)\thinspace(x - x_c)\).

With \(K \le 0.95\), the usual case for water on amine sorbents, the GAB is therefore exact up to saturation. With \(K\) near 1 (BET) it is exact up to \(K x = 0.95\). GAB parameters are usually fitted to data up to \(x \approx 0.9\), so loadings above that are extrapolations in any case.

Mixtures. A GAB component's loading depends only on its own relative pressure: the kinds are not competitive. Under the default mixing rule, water adsorbs independently of the other components, which keep their own isotherms. Under the IAST mixing rule a GAB kind takes part like any pure isotherm: its spreading pressure has the closed form \(\psi = q_m \left[\ln(1 + (C - 1) K x) - \ln(1 - K x)\right]\) (and the matching integral of the tangent above \(x_c\)). Coupled CO₂–H₂O models, where water changes the CO₂ loading, are separate kinds: see CO₂ with adsorbed water.

From Python. skarstrom.evaluate_isotherm, fit_isotherm and evaluate_iast evaluate the GAB kinds for water unless component= (components= for IAST) names another vapour; see Isotherm Fitting. In a deck, each component uses its own saturation pressure.

Heat of adsorption. The temperature dependence implies an isosteric heat that varies with loading:

\[ q_{st} = R T^2 \left(\frac{\partial \ln P_i}{\partial T}\right)_{q} = \Delta H_{vap}(T) + R T^2 \left(\frac{\partial \ln x_i}{\partial T}\right)_{q}, \qquad \Delta H_{vap} = R T^2 \frac{d \ln p_{sat}}{dT} \]

At low loading, \(q \approx q_m C K x\), so for kind gab \(q_{st} \to \Delta H_{vap} + \Delta H_m + \Delta H_C + \Delta H_K\) (water at 25 °C: \(\Delta H_{vap} \approx 44.0\) kJ mol⁻¹). At high loading it tends towards \(\Delta H_{vap} + \Delta H_K\): as the multilayer approaches liquid (\(K x \to 1\), with \(1 - K x \approx q_m / q\)), \(q_m\) and \(C\) drop out of the isotherm, and the contribution of \(\Delta H_m\) falls off roughly as \(\Delta H_m\, q_m / q\). By default the energy balance, as for every kind, takes the adsorbent's constant heat_of_adsorption[<component>] (under the default isosteric convention it is \(q_{st}\); see Model Conventions). With the heat of adsorption mode isotherm it takes this \(q_{st}\) instead, in each cell at the local state (Energy Balance). The C++ function adsim::IsostericHeat(isotherm, component, T, P, y) (adsim/equations/isotherm_kinds.h) evaluates the expression above for any kind at a given state, which also helps choose the constant for the loadings of the process. For water, a value near the heat of condensation plus a few kJ mol⁻¹ is typical.

CO2 with adsorbed water (Toth WADST and humid Toth)

On amine sorbents for direct air capture, adsorbed water raises the CO₂ capacity. Two kinds describe this for the CO₂ component. Its equilibrium loading depends on the adsorbed water loading \(q_w\) on the same adsorbent in the same cell. That is the actual loading of the component named Water, which follows its own isotherm (for example gab or gab_young) and its own rate model. Water's isotherm does not depend on CO₂ in either model.

Both source papers use the water on the sorbent, not the equilibrium loading at the gas humidity. The difference matters when water uptake is slow, as it usually is in direct air capture: there the CO₂ capacity follows the water actually adsorbed, which lags the gas humidity. A deck without a Water component, or a cell with no water adsorbed, gives the dry isotherm. The deck checks warn when a deck uses one of these kinds without a Water component. A negative \(q_w\) (a transient solver iterate) is taken as 0. At the start of a run the loadings are put in equilibrium in two passes, water first, so the CO₂ starts in equilibrium with the initial water loading.

Kind toth_wadst: the weighted-average dual-site Toth of Young et al., Energy Environ. Sci. 14 (2021) 5377, Eq. 14. A dry and a wet Toth site, weighted by the water loading:

\[ q_i^* = \left(1 - e^{-A/q_w}\right) q_{dry}(P_i, T) + e^{-A/q_w}\thinspace q_{wet}(P_i, T) \]

with each site the temperature-dependent Toth of that paper (Eqs. 1–4):

\[ q_{site} = \frac{q_\infty\thinspace b\thinspace P_i}{\left[1 + (b P_i)^{\tau}\right]^{1/\tau}}, \qquad q_\infty = q_{\infty,0} \exp\negthinspace\left[\chi\left(1 - \frac{T}{T_0}\right)\right], \qquad b = b_0 \exp\negthinspace\left(\frac{\Delta H}{R T}\right), \qquad \tau = \tau_0 + \alpha\left(1 - \frac{T_0}{T}\right) \]

The affinity has no reference temperature, as in the paper, so \(b_0\) is the affinity at infinite temperature. Toth 2 writes the same site as \(b_0' \exp[\Delta H/(R T_0)(T_0/T - 1)]\) with \(b_0' = b_0 \exp[\Delta H/(R T_0)]\). At \(q_w = 0\) the loading is exactly the dry site, and the weight stays negligible up to \(q_w \approx A/30\). The parameter names are T_0, then q_inf_dry, chi_dry, b0_dry, dH_dry, tau0_dry, alpha_dry, the same six with _wet, and A.

Symbol Name Description Unit Default (Lewatit VP OC 1065)
\(T_0\) T_0 Reference temperature of \(\chi\) and \(\tau\) K 298.15
\(q_{\infty,0}\) q_inf_dry, q_inf_wet Site capacity at \(T_0\) mol kg⁻¹ 4.86, 9.035
\(\chi\) chi_dry, chi_wet Capacity temperature coefficient - 0, 0
\(b_0\) b0_dry, b0_wet Affinity pre-exponential Pa⁻¹ 2.85×10⁻²¹, 1.230×10⁻¹⁸
\(\Delta H\) dH_dry, dH_wet Affinity energy (\(-\Delta H_{ads}\), positive) J mol⁻¹ 117 798, 203 687
\(\tau_0\) tau0_dry, tau0_wet Exponent at \(T_0\) - 0.209, 0.053
\(\alpha\) alpha_dry, alpha_wet Exponent temperature coefficient - 0.523, 0.053
\(A\) A Water loading scale of the wet-site weight mol kg⁻¹ 1.532

Kind toth_humid: the humid Toth of Stampi-Bombelli, van der Spek and Mazzotti, Adsorption 26 (2020) 1183–1197, doi:10.1007/s10450-020-00249-w (corrected 2022, doi:10.1007/s10450-021-00351-7), Eqs. 11–14. This is Toth 2, with the same parameter names, plus two water terms:

\[ q_s = \frac{q_{sat}\exp\negthinspace\left[x\left(1 - \frac{T}{T_0}\right)\right]}{1 - \gamma\thinspace q_w}, \qquad b = b_0 \exp\negthinspace\left[\frac{\Delta H_0}{R T_0}\left(\frac{T_0}{T} - 1\right)\right]\left(1 + \beta\thinspace q_w\right), \qquad w = w_0 + \alpha\left(1 - \frac{T_0}{T}\right) \]
\[ q_i^* = \frac{q_s\thinspace b\thinspace P_i}{\left[1 + (b P_i)^{w}\right]^{1/w}} \]

At \(q_w = 0\) this is Toth 2 exactly for \(y_i > 4\times10^{-5}\). Near zero the numerator uses \(P_i = P\thinspace y_i\) and only the power uses the smoothed \(P\thinspace\tilde y_i\) of Mole fractions near zero: the loading is exactly 0 at \(y_i = 0\) and follows the Henry line through it, as the Langmuir kinds do. (Before 0.19 the numerator also used \(\tilde y_i\), so the loading at \(y_i = 0\) was not zero and a regenerated bed pulled the outlet CO₂ slightly below zero; a long adsorption step could then report a recovery above 1.) \(\Delta H_0 > 0\) makes the affinity fall with temperature. The defaults are the paper's corrected APDES-NFC values: \(q_{sat} = 2.38\) mol kg⁻¹, \(x = 0\), \(T_0 = 296\) K, \(b_0 = 70.7\) kPa⁻¹ (0.0707 Pa⁻¹), \(\Delta H_0 = 57\,047\) J mol⁻¹, \(w_0 = 0.4148\), \(\alpha = -1.606\), \(\gamma = 0.0016\) kg mol⁻¹ and \(\beta = 59.1\) kg mol⁻¹. Young et al. (2021) refit this form to Lewatit VP OC 1065 with \(\gamma = -0.137\) and \(\beta = 5.612\) kg mol⁻¹ on their dry Toth.

Symbol Name Description Unit
\(\gamma\) gamma Capacity enhancement by adsorbed water kg mol⁻¹
\(\beta\) beta Affinity enhancement by adsorbed water kg mol⁻¹

Mixtures. Water changes the CO₂ sites themselves; it does not compete through a shared denominator. Neither kind has a pure-component form, so the IAST mixing rule rejects them with a deck-check error. Use the mixing rule none, the default. Give the other components (N₂, …) their own kinds as usual. These kinds read the water loading but do not change it.

From Python and the fitter. skarstrom.evaluate_isotherm(..., water_loading=q_w) evaluates either kind at a given water loading (default 0, the dry isotherm). skarstrom.fit_isotherm(..., water_loading=...) takes the water loading of each point and fits the way the papers do. Points at \(q_w = 0\) fit the dry Toth block. Points at fixed \(q_w > 0\) fit the water terms: \(A\) and the wet site for WADST, \(\gamma\) and \(\beta\) for the humid Toth. A block that the data cannot identify is held. So with humid data only, pass the dry fit's values in fixed=; with both kinds of data, everything is fitted together. In C++ these are the q_w member of isofit::Point and the q_water argument of adsim::EvalIsotherm.

Worked example: APDES-NFC at a humid air feed.

New in 0.9

The example and the Illustrative_Humid_DAC_Breakthrough deck.

The library entry APDES-NFC carries a gab isotherm for water and a toth_humid isotherm for CO₂. At the feed of its source paper (400 ppm CO₂, \(y_{H_2O} = 0.0115\), 20 °C, 1 bar, about 49 % relative humidity) the water loading is 2.82 mol/kg, and that water raises the CO₂ loading from 0.82 to 2.07 mol/kg:

import skarstrom as sk

sim = sk.Simulation.new(title="APDES-NFC at the feed state")
for name in ("Nitrogen", "CarbonDioxide", "Water"):
    sim.add_component(name)
adsorbent_id = sim.add_library_adsorbent("apdes_nfc_stampi2020")
ads = sim.adsorbents.by_id(adsorbent_id)

def params(node):
    return {name: node.get(name) for name in node.fields}

T, P = 293.15, 1e5
q_w = sk.evaluate_isotherm("gab", params(ads.isotherm["Water"]), pressure=0.0115 * P, temperature=T)[0]
co2 = params(ads.isotherm["CarbonDioxide"])
dry = sk.evaluate_isotherm("toth_humid", co2, pressure=400e-6 * P, temperature=T)[0]
humid = sk.evaluate_isotherm("toth_humid", co2, pressure=400e-6 * P, temperature=T, water_loading=q_w)[0]
print(f"water {q_w:.2f}, CO2 dry {dry:.2f}, CO2 humid {humid:.2f} mol/kg")
# water 2.82, CO2 dry 0.82, CO2 humid 2.07 mol/kg

In a bed, the CO₂ isotherm reads the water actually adsorbed in each cell, so the humid capacity appears only behind the water front. The illustrative deck Illustrative_Humid_DAC_Breakthrough runs this feed through a column of APDES-NFC: the water front leaves the bed first, then the CO₂ front, with the humid loading behind it. See Humid feeds in the TSA tutorial.

CO2 with the gas humidity (Toth CATSO)

New in 0.19

The kind toth_catso, and the relative_humidity argument of skarstrom.evaluate_isotherm and skarstrom.fit_isotherm.

Kind toth_catso: the Collaborative Adsorption Toth with Site Obstruction (CATSO) model of Grossmann, Saenz-Cavazos, Ferru, Williams and Mazzotti, Ind. Eng. Chem. Res. 64 (2025) 7165–7175, doi:10.1021/acs.iecr.4c04581, Eqs. 8–11 and 14–18. Water acts on CO₂ in two ways: it obstructs part of the dry sites (a competitive term), and it creates new sites in proportion to its coverage of the first monolayer (a collaborative term). The model reproduces the small dip in CO₂ uptake at low humidity and the saturation of the uptake above about 40 % relative humidity, which toth_wadst cannot (the paper's Sect. 3.4).

\[ q_i^* = \frac{q_s\,b\,P_i}{\left[1 + (b P_i)^{t} + (b_{H_2O}\,x)^{t}\right]^{1/t}} + \Theta(x)\,\frac{q_{s,wet}\,b_{wet}\,P_i}{\left[1 + (b_{wet} P_i)^{t_{wet}}\right]^{1/t_{wet}}} \]
\[ \Theta(x) = \left(1 - w(x)\right) K x + w(x), \qquad w(x) = \frac{1}{1 + e^{-S (x - x_m)}} \]

Each site is a temperature-dependent Toth with its own reference temperature (the paper's Eqs. 9–11, the form of Toth 2):

\[ q_s = q_{s,0} \exp\negthinspace\left[\chi\left(1 - \frac{T}{T_0}\right)\right], \qquad b = b_0 \exp\negthinspace\left[\frac{\Delta H}{R T_0}\left(\frac{T_0}{T} - 1\right)\right], \qquad t = t_0 + \alpha\left(1 - \frac{T_0}{T}\right) \]
  • The humidity. \(x = P\,y_{H_2O} / p_{sat,H_2O}(T)\) is the relative humidity of the gas component named Water in the same cell, a fraction (not %). \(p_{sat}\) is the saturation pressure of water at the solid temperature, as for the GAB kinds. This kind reads the gas humidity, not the adsorbed water loading: that is the paper's model, and the paper's water parameters (\(b_{H_2O}\), \(K\)) are fitted in relative humidity. So the CO₂ capacity follows the gas humidity at once, even when the water uptake is slow.
  • The sign of \(\Delta H\). \(\Delta H\) is positive for exothermic adsorption, as in Toth 2. The paper prints it negative: enter \(-\Delta H_{paper}\).
  • Units. \(b_0\) is in Pa⁻¹. The paper gives kPa⁻¹: divide by 1000. \(b_{H_2O}\) multiplies the relative humidity, so it has no unit.
  • The dry limit. At \(x = 0\) the competitive term is the dry Toth, and the wet site keeps the weight \(\Theta(0) = w(0) = 1/(1 + e^{S x_m})\), 1.8×10⁻⁴ with the defaults. This is the paper's form, so the dry loading is not exactly the dry Toth. A deck without a Water component has \(x = 0\) everywhere, and the deck checks warn.
  • Near dry gas. With \(t < 1\) the slope of \((b_{H_2O} x)^t\) is infinite at \(x = 0\). Below \(x = 10^{-6}\) the engine continues it linearly to 0, so the slope stays finite and the dry limit stays exact. A negative \(x\) (a transient solver iterate) is taken as 0. The CO₂ partial pressure is smoothed as for Toth 2 (see Mole fractions near zero at the top of the page).
  • Heat of adsorption. With the heat-of-adsorption mode isotherm, the isosteric heat is taken at the cell's water partial pressure, held fixed: the relative humidity follows \(p_{sat}(T)\) in the temperature derivative.
  • Mixtures. The loading depends on another component (water), so the IAST mixing rule rejects the kind with a deck-check error. Use the mixing rule none. Water's own isotherm (for example gab) does not depend on CO₂. The kind is refused on a liquid fluid.
Symbol Name Description Unit Default (triamine-grafted alumina)
\(T_0\) T_0_dry, T_0_wet Reference temperature of each site K 308, 298.15
\(q_{s,0}\) q_s0_dry, q_s0_wet Site capacity at \(T_0\) mol kg⁻¹ 1.17, 0.60
\(\chi\) chi_dry, chi_wet Capacity temperature coefficient - 0.49, 0.2
\(b_0\) b0_dry, b0_wet Affinity at \(T_0\) Pa⁻¹ 2.96, 0.04
\(\Delta H\) dH_dry, dH_wet Affinity energy (\(-\Delta H_{paper}\), positive) J mol⁻¹ 77 800, 0
\(t_0\) t0_dry, t0_wet Toth exponent at \(T_0\) - 0.25, 1.0
\(\alpha\) alpha_dry, alpha_wet Exponent temperature coefficient - 0.19, 6.2
\(b_{H_2O}\) b_H2O Water affinity in the competitive term - 0.064
\(K\) K Slope of the monolayer coverage, \(\Theta \approx K x\) below \(x_m\) - 2.28
\(x_m\) x_m Relative humidity of monolayer saturation - 0.43
\(S\) S Sharpness of the transition to \(\Theta = 1\) - 20

The defaults are the paper's values for its triamine-grafted alumina (dry site: Table 4; wet site and water terms: Table 6, CATSO column). The paper fits \(b_{H_2O}\), \(K\) and \(x_m\) to its single-component water data and chooses \(S = 20\). It gives no unit for \(b_{H_2O}\); with \(K x_m = 0.98 \approx 1\) and \(S = 20\), the humidity in the paper's Eqs. 15–18 is a fraction. With these values the kind reproduces the measured 400 ppm CO₂ uptakes at 25 °C of the paper's SI (Table S1) within 0.06 mol kg⁻¹ from dry gas to 90 % relative humidity, including the dip at 10 %:

import skarstrom as sk

p_co2 = 400e-6 * 101325.0  # 400 ppm at 1 atm [Pa]
for rh in (0.0, 0.1, 0.5, 0.9):
    q = sk.evaluate_isotherm("toth_catso", {}, pressure=p_co2, temperature=298.15, relative_humidity=rh)[0]
    print(f"RH {rh:.0%}: CO2 {q:.3f} mol/kg")
# RH 0%: 0.486, RH 10%: 0.471, RH 50%: 0.729, RH 90%: 0.702 mol/kg

Fitting. skarstrom.fit_isotherm("toth_catso", ..., relative_humidity=...) fits as the paper does: points at relative humidity 0 fit the dry site, points above 0 fit the wet site. A site without points is held at the values given (the defaults, or fixed=): with humid data only, pass the dry fit's values. The water parameters (\(b_{H_2O}\), \(K\), \(x_m\), \(S\)) are always held at the values given: the paper fits them to the single-component water isotherm.

Water on CALF-20 (Cubic-Langmuir and dual-site Langmuir water factors)

New in 0.12

The kind cubic_langmuir and the water factors lambda1, lambda2, lambda3 and gamma2 of the dual-site Langmuir kinds.

On the MOF CALF-20, water takes CO₂ sites away rather than adding to them. Nguyen et al., Ind. Eng. Chem. Res. 63 (2024) 3265–3281 (ChemRxiv preprint doi:10.26434/chemrxiv-2023-f3rzv), describe it with two models. The engine has both.

Kind cubic_langmuir: a type V water isotherm. The paper calls it Cubic-Langmuir. T. T. T. Nguyen's PhD thesis (University of Alberta, 2021) calls the same form Quadratic-Langmuir. In the water concentration in the gas, \(C = P y_i / (R T)\) [mol m⁻³]:

\[ q_i^* = q_{sb}\,\frac{b_1 C + 2 b_2 C^2 + 3 b_3 C^3}{1 + b_1 C + b_2 C^2 + b_3 C^3} + q_{sd}\,\frac{d\,C}{1 + d\,C} \]
\[ b_j = b_{0,j} \exp\negthinspace\left(-\frac{\Delta U_1}{R T}\right) \quad (j = 1, 2, 3), \qquad d = d_0 \exp\negthinspace\left(-\frac{\Delta U_2}{R T}\right) \]

The three \(b_j\) share one energy. \(\Delta U_1, \Delta U_2 < 0\) for exothermic adsorption: this is the paper's sign, not the sign of the Langmuir kinds' q1. A negative \(b_{0,1}\) gives the anti-Langmuir start below the inflection.

Symbol Name Description Unit Default (CALF-20, adsorption branch)
\(q_{sb}\) q_sb Capacity of the cooperative (type V) term mol kg⁻¹ 1.629
\(b_{0,1}\) b0_1 First coefficient (may be negative) m³ mol⁻¹ −2.685×10⁻¹⁷
\(b_{0,2}\) b0_2 Second coefficient, ≥ 0 (m³ mol⁻¹)² 1.158×10⁻¹⁶
\(b_{0,3}\) b0_3 Third coefficient, ≥ 0 (m³ mol⁻¹)³ 5.374×10⁻¹⁷
\(\Delta U_1\) dU1 Energy of the \(b_j\) J mol⁻¹ −97 990
\(q_{sd}\) q_sd Capacity of the Langmuir term mol kg⁻¹ 5.781
\(d_0\) d0 Langmuir affinity pre-exponential m³ mol⁻¹ 8.773×10⁻¹²
\(\Delta U_2\) dU2 Energy of \(d\) J mol⁻¹ −64 720

The defaults are the paper's adsorption-branch values. The loadings are per kg of the structured sorbent (80 wt% CALF-20, 20 wt% binder).

  • Limits. The loading is defined only where the denominator is positive. The deck checks find the minimum of \(1 + b_1 C + b_2 C^2 + b_3 C^3\) over \(0 \le C \le C_{sat}(T)\) at every temperature from the lowest to the highest of the deck (initial gas and wall, inlet streams). A minimum at or below 0 is an error. \(C_{sat}\) comes from the component's saturation pressure. Above saturation the form continues smoothly; condensation is not modelled.
  • Positivity. With \(b_{0,1} < 0\) the first term is negative at small \(C\). If the sum is negative there, the loading is held at 0. Below \(C = 0\) (a transient solver iterate) the loading follows its Henry line \((q_{sb} b_1 + q_{sd} d)\,C\).
  • Hysteresis. The paper also fits the desorption branch of the hysteresis loop as its own parameter set. A deck can store it and select it per step: see Isotherm hysteresis.
  • Mixtures. The kind is not competitive: water follows its own concentration only. Under the IAST mixing rule its spreading pressure is closed, \(\psi = q_{sb} \ln(1 + b_1 C + b_2 C^2 + b_3 C^3) + q_{sd} \ln(1 + d\,C)\) (in the pure pressure, with \(C = P/(RT)\)). For a negative Henry slope \(q_{sb} b_1 + q_{sd} d\) the engine integrates the floored loading numerically.
  • When to use it. Use it for a water isotherm with a type V (S-shaped) step, as on CALF-20 and other hydrophobic MOFs. The GAB kinds are for type II and III isotherms; they cannot follow the low loading below the step.

Water factors on the dual-site Langmuir kinds. Each dual-site Langmuir kind (dual_site_langmuir_p, dual_site_langmuir_c and their extended forms) takes four optional parameters. They lower the loading with the adsorbed water loading \(q_w\) [mol kg⁻¹] of the same adsorbent:

\[ q_i^* = \sum_{k=1}^{2} \frac{q_{s,k}\,B_{k,i}\,c_i}{1 + \sum_{j \in \mathcal{S}(i)} B_{k,j}\,c_j} \cdot \frac{1}{1 + \lambda_k\,q_w^{\lambda_3}}, \qquad B_{k,i} = b_{k,i}\,e^{q_{k,i}/(R T)}\,e^{-\gamma_2 q_w} \]

The pure kinds have only their own term in the denominator. \(c_i\) is the concentration on the _c kinds and the partial pressure on the _p kinds.

Symbol Name Description Unit Default
\(\lambda_1\) lambda1 Capacity factor of site 1 (kg mol⁻¹)^λ₃ 0
\(\lambda_2\) lambda2 Capacity factor of site 2 (kg mol⁻¹)^λ₃ 0
\(\lambda_3\) lambda3 Exponent of \(q_w\) - 0
\(\gamma_2\) gamma2 Affinity factor kg mol⁻¹ 0
  • Defaults. All four are 0, which gives the dry isotherm exactly. \(\lambda_3\) alone changes nothing. With \(\lambda_3 = 0\), \(q_w^0 = 1\): the capacity factor is then a constant. A deck writes the four fields only when one of them is set, so existing decks save and load unchanged.
  • The water loading. \(q_w\) is the actual (rate-equation) loading of the component named Water on the same adsorbent, as for toth_humid. Its own isotherm (for example cubic_langmuir) gives it. A negative \(q_w\) is taken as 0. Without a Water component the deck checks warn and the isotherm is dry.
  • Competition. The other components of an extended kind (N₂) keep their factors at 0 and still compete with CO₂ in the shared denominators. The affinity factor of CO₂ acts in those denominators too.
  • The paper's values. For CO₂ on CALF-20 the paper uses the per-site capacity factors \(\lambda_1 = 0.0066\), \(\lambda_2 = 2.483\) and \(\lambda_3 = 3.55\) (\(q_w\) in mol kg⁻¹), and no affinity factor. Its dry isotherm is the SI's dual-site Langmuir (Table S2). The factors were fitted to competitive data at 22 °C in pure CO₂ only. The paper says that their dependence on temperature and on the CO₂ partial pressure is not validated.
  • Mixtures. With a factor set, the loading depends on another component's loading, so the IAST mixing rule rejects the isotherm with a deck-check error. Use the mixing rule none. With the factors at 0 the kind is IAST-mixable as before.

From Python and the fitter. skarstrom.evaluate_isotherm(..., water_loading=q_w) evaluates a dual-site Langmuir kind with its factors at a given water loading. skarstrom.fit_isotherm(..., water_loading=...) holds the factors at 0 for dry data. With points at \(q_w > 0\) it fits \(\lambda_1\), \(\lambda_2\) and \(\lambda_3\), and holds \(\gamma_2\) at 0. For cubic_langmuir the fitter searches the \(b_j\) and \(d\) at the reference temperature.

import skarstrom as sk

R, T = 8.31446261815324, 295.15
p_sat = 2642.0  # water at 22 C, approximately [Pa]
water = sk.evaluate_isotherm("cubic_langmuir", {}, pressure=[0.1 * p_sat, 0.5 * p_sat, 0.9 * p_sat], temperature=T)
co2 = {"m1": 2.387, "b1": 5.519e-7, "q1": 35060, "m2": 3.271, "b2": 5.187e-8, "q2": 28950,
       "lambda1": 0.0066, "lambda2": 2.483, "lambda3": 3.55}
dry = sk.evaluate_isotherm("dual_site_langmuir_c", co2, pressure=0.95e5, temperature=T)[0]
humid = sk.evaluate_isotherm("dual_site_langmuir_c", co2, pressure=0.95e5, temperature=T, water_loading=2.08)[0]
print(f"water {water.round(2)} mol/kg; CO2 dry {dry:.2f}, at q_w = 2.08: {humid:.2f} mol/kg")

Isotherm hysteresis: a desorption branch per step

New in 0.19

The step parameter isotherm_branch, the adsorbent parameters adsorbent[<id>].desorption[<component>].<name>, and Adsorbent.set_desorption in Python.

Some isotherms have a hysteresis loop: the desorption branch lies away from the adsorption branch, and a paper fits each branch as its own parameter set (for example water on CALF-20, above). The engine stores the adsorption branch as the component's isotherm, and the parameters that differ on the desorption branch next to it. Each step selects the branch that all its cells use.

  • The branch of a step. step[<id>].isotherm_branch is adsorption (the default) or desorption. In Python: sim.steps["Purge"].isotherm_branch = "desorption".
  • The desorption parameters. ads.set_desorption("Water", {"q_sb": 0.731, ...}) lists the parameters of the component's isotherm that take another value on the desorption branch. The others (here the energies) are shared with the adsorption branch. Each listed value is the registry parameter adsorbent[<id>].desorption[<component>].<name>, with the unit of the isotherm parameter of the same name. A new mapping replaces the old one, and an empty mapping removes the branch. A change of the component's isotherm kind drops the names the new kind does not have.
  • What a desorption step changes. On a desorption step, every isotherm evaluation of the component uses the desorption values: the equilibrium loading, the rate model's isotherm slope and the heat of adsorption in the isotherm mode. A component without desorption parameters, and every adsorption step, use the stored isotherm. A competitive kind is copied as a whole, so components that share it keep their shared denominator.
  • Limits. The switch is per step, not per cell. The engine does not follow the sign of \(dq/dt\), and it does not model scanning curves inside the loop: a cell that changes from uptake to release in the middle of a step stays on the step's branch. At a step change the equilibrium loading jumps to the other branch; the rate model then moves the loading towards it. The IAST mixing rule has no branch switch, so the deck checks reject desorption parameters under IAST.
  • Decks. A deck writes the branch of a step and the desorption parameters only when they are set. Decks without them save and load unchanged.

The library entry CALF-20 (structured, with water) carries the desorption branch of its water isotherm (Nguyen et al., preprint Table 2):

import skarstrom as sk

sim = sk.Simulation.new(title="CALF-20 water hysteresis")
sim.add_component("Water")
ads = sim.add_adsorbent("CALF-20")
ads.set_isotherm("cubic_langmuir", {"Water": {}})
ads.set_desorption("Water", {"q_sb": 0.731, "b0_1": -5.405e-17, "b0_2": 1.825e-16,
                             "b0_3": 7.311e-16, "q_sd": 8.940, "d0": 7.879e-12})
print(sim["adsorbent[1].desorption[Water].q_sd"])  # 8.94

Mixture loadings: the mixing rule and IAST

Every adsorbent has a mixing rule, which says how its components' isotherms combine into mixture loadings. It is one switch per adsorbent: the registry parameter adsorbent[<id>].mixing_rule, ads.mixing_rule or ads.set_mixing_rule(kind) in Python.

  • none (the default, and what every deck written before the switch existed loads as). Each component's isotherm is evaluated on its own at its partial pressure. Components compete only if they share an extended (competitive) kind, through that kind's own denominator.
  • iast: Ideal Adsorbed Solution Theory (Myers and Prausnitz, AIChE J. 11 (1965) 121). The mixture loadings are predicted from the components' pure-component isotherms alone. Each component keeps its own kind and parameters, so the kinds can differ (Toth for one component and dual-site Langmuir for another, for example). No mixture data are needed.

Under IAST the adsorbed phase is treated as an ideal solution in which every component sits at the same reduced spreading pressure \(\psi\). With \(q_i^\circ\) the pure isotherm of component \(i\) at the local temperature:

\[ \psi_i(P) = \int_0^{P} \frac{q_i^\circ(p)}{p}\thinspace dp, \qquad P \thinspace y_i = x_i \thinspace P_i^\circ, \qquad \psi_i(P_i^\circ) = \psi \ \text{for every } i, \qquad \sum_i x_i = 1 \]
\[ \frac{1}{q_T} = \sum_i \frac{x_i}{q_i^\circ(P_i^\circ)}, \qquad q_i^* = x_i \thinspace q_T \]
Symbol Description Unit
\(\psi\) Reduced spreading pressure of the mixture mol kg⁻¹
\(P_i^\circ\) Pressure at which pure \(i\) reaches \(\psi\) Pa
\(x_i\) Mole fraction of \(i\) in the adsorbed phase -
\(q_T\) Total mixture loading mol kg⁻¹

How it is solved. In every cell and at every residual evaluation, the engine finds \(\psi\) by a bracketed Newton iteration on \(\ln \sum_i x_i\), warm-started from the cell's previous value. The spreading-pressure integral has a closed form for Henry, the Langmuir and dual-site Langmuir kinds (both bases), Freundlich, Sips, dual-site Sips, Sips 2, Arrhenius Sips, Extended Langmuir–Freundlich, anti-Langmuir, the GAB kinds and Cubic-Langmuir. Toth and Toth 2 have no elementary integral, but with \(w = (b p)^v\) and \(u = w/(1+w)\) it is an incomplete beta function, \(\psi = (q_s/v) \int_0^u x^{1/v - 1}/(1 - x)\,dx\), which the engine sums as a series (in \(u\) for \(w \le 1\), in \(1/(1+w)\) with the digamma function above), accurate to a few units in the last place. Redlich–Peterson uses a 48-point Gauss–Legendre rule in \(\ln p\) over \([\ln P - \ln 10^{10},\ \ln P]\); below that window the isotherm is taken as linear, which adds \(q(10^{-10} P)\). Inside one solve each Redlich–Peterson component keeps the last point it evaluated, and \(\psi\) at a nearby pressure is that point's value plus a short Gauss–Legendre integral (4 to 16 nodes per chunk, sized from the distance \(\pi/v\) of the integrand's singularities in \(\ln p\)), which matches the full rule to round-off. The inverse \(\psi_i \mapsto P_i^\circ\) is analytic for Henry, the single-site Langmuir kinds, Freundlich, the Sips family (Sips, Sips 2, Arrhenius Sips, Extended Langmuir–Freundlich) and anti-Langmuir, and a Newton iteration otherwise. If the iteration on \(\psi\) does not converge, the cell's loadings are NaN. A kind without an IAST form is an error, never treated as inert; the CO₂-with-water kinds (toth_wadst, toth_humid, toth_catso) and a dual-site Langmuir with its water factors set are rejected by the deck checks.

Limits that hold exactly. A single adsorbing component gives its pure isotherm at its partial pressure. Langmuir isotherms with equal saturation capacities give the extended Langmuir model. With unequal capacities, extended Langmuir is thermodynamically inconsistent and IAST is not.

Absent components. A component with zero or negative gas mole fraction, which the integrator produces ahead of a front, gets the infinite-dilution limit of IAST, \(q_i^* = y_i P q_T / P_i^\circ(\psi)\). That is linear in \(y_i\), so the loading is smooth through \(y_i = 0\), as the extended kinds are. Inert components never adsorb.

Trace levels. Two cases near zero mole fraction are handled inside the IAST solve. A positive mole fraction at or below \(10^{-150}\) (the decaying toe of a front reaches subnormal values, where the spreading pressure underflows) takes the infinite-dilution limit above. A Sips-family term (Sips, Sips 2, Arrhenius Sips, Extended Langmuir–Freundlich, and the extended Sips kinds in their pure limit) with exponent \(n < 1\) has an infinite Henry slope, so the infinite-dilution loading \(y_i P q_T / P_i^\circ(\psi)\) of an absent component would diverge as \(\psi \to 0\), at the edge of a bed that starts in an inert gas. Below \(p_0 = 10^{-4} P\) (\(P\) the total pressure) such a term is replaced by \(q = A t / (1 + B t)^k\), \(t = p / p_0\), \(0 < k \le 1\), whose three constants match the Sips value and slope at \(p_0\) and the Sips spreading pressure \(\psi(p_0) = (q_s / n) \ln(1 + z_0)\). The loading is monotone with a finite Henry slope, and \(\psi\) above \(p_0\) is the Sips closed form, so the IAST loadings are exact for every component with \(y_i \ge 10^{-4}\). Dual Site Sips continues each site with exponent \(n < 1\) the same way; its \(\psi\) stays the sum of the two site integrals.

A Freundlich term (\(q = (a p)^n\); also freundlich_c, whose IAST form is the same power law) with \(n < 1\) has the same divergence, but the form above cannot keep its spreading pressure: for a pure power law \(\psi(p_0)/q(p_0) = 1/n\) is the upper limit of that family. Below \(p_0\) the Freundlich term is replaced by a Langmuir term plus a Henry term,

\[q = q_0 \left[\frac{A t}{1 + B t} + C t\right], \qquad \psi = q_0 \left[\frac{A}{B}\ln(1 + B t) + C t\right], \qquad t = p/p_0,\ q_0 = (a p_0)^n,\]

with \(A = (1-n)(1+B)^2/B\) and \(C = 1 - (1-n)(1+B)/B\) (the value and slope at \(p_0\)), and \(B\) the root of \(x\,[x \ln x - (x - 1)]/(x-1)^2 = 1/n\), \(x = 1 + B\) (the spreading pressure \(\psi(p_0) = q_0/n\)). \(A\) and \(C\) are positive for every \(0 < n < 1\), so the loading is monotone, and the IAST loadings are again exact for every component with \(y_i \ge 10^{-4}\). The Henry slope is \(q_0 [1 + (1-n)(1+B)] / p_0\): about 8 \(q_0/p_0\) at \(n = 0.5\), 48 at \(n = 0.3\) and 315 at \(n = 0.2\). It grows like \(e^{1/n}\), so IAST refuses a Freundlich exponent below 0.2 (\(v > 5\) for freundlich, \(n < 0.2\) for freundlich_c) with a deck-check error; use a Sips isotherm, whose low-loading limit is Freundlich, or the mixing rule none.

Only the IAST solve (and so skarstrom.evaluate_iast) uses these continuations; skarstrom.evaluate_isotherm and the fitter show the published isotherm.

Which kinds to use. Give each component its pure-component kind. An extended kind under IAST is taken in its pure-component limit, so its own competition term is not applied. The solver log warns about such a combination at the start of a run.

Limitations. IAST assumes an ideal adsorbed phase. Strongly non-ideal mixtures need activity coefficients (Real Adsorbed Solution Theory, RAST), which the engine does not offer. Each component's isotherm also has to describe its pure loading well down to low pressure, because the spreading-pressure integral starts at zero. IAST costs more per residual evaluation than an extended kind: a few Newton iterations per cell, each inverting every component's spreading pressure. On the example decks with dual-site Langmuir isotherms, a residual evaluation takes about three times as long, while the number of integrator steps barely changes. With Toth isotherms it takes about 3.5 times as long as with dual-site Langmuir (Perez 2019 A, one cycle: 0.70 ms against 0.15 ms per residual evaluation).

To check mixture loadings outside a simulation, call skarstrom.evaluate_iast(kinds, params, pressure, temperature, mole_fraction) with one pure kind and parameter set per component.


Isotherms of a liquid fluid

New in 0.19

A deck can set the fluid phase to liquid (fluid.phase = liquid; see Liquid fluid). This section lists the isotherm kinds that a liquid deck accepts.

In a liquid, the loading depends on the concentration of the solute, not on a partial pressure. The pressure of a liquid bed is a hydraulic pressure, and an isotherm in \(P y_i\) would change the loading with it. A liquid deck therefore accepts only the kinds that read a concentration:

Kind On a liquid
single_site_langmuir_c, dual_site_langmuir_c, extended_single_site_langmuir_c, extended_dual_site_langmuir_c Unchanged: \(C_i = x_i C\) with \(C\) from the liquid equation of state in place of \(P y_i/(R T)\)
freundlich_c \(C_i = x_i C\) (see Freundlich in concentration)
henry, sips, sips_2, toth, toth_2, redlich_peterson \(C_i = x_i C\) in place of \(P_i = P y_i\) in the formulas above
inert Unchanged

\(x_i\) is the mole fraction of the component in the liquid (the \(y_i\) of the deck). For the second group, each parameter that multiplies \(P_i\) takes the unit of the concentration basis:

Kind Parameter Gas unit Liquid unit
henry \(k\) mol kg⁻¹ Pa⁻¹ m³ kg⁻¹ (mol kg⁻¹ per mol m⁻³)
sips, toth, redlich_peterson \(b\) Pa⁻¹ m³ mol⁻¹
redlich_peterson \(a\) mol kg⁻¹ Pa⁻¹ m³ kg⁻¹
sips_2 \(B_1\) Pa⁻¹ m³ mol⁻¹
toth_2 \(b_0\) Pa⁻¹ m³ mol⁻¹

The temperature terms (\(Q\), \(B_2\), \(\Delta H_0\) and the others) are unchanged. A gas deck is not affected.

A liquid deck refuses every other kind, and the error names the kind: the partial-pressure Langmuir kinds, Freundlich in \(P_i\), anti-Langmuir, the Sips variants in \(P_i\) (dual-site, extended, Arrhenius, Extended Langmuir–Freundlich), the GAB kinds, toth_wadst, toth_humid, toth_catso and Cubic-Langmuir. It also refuses a heat of adsorption from the isotherm, the isosteric_rt heat convention (both ideal-gas relations), and the dual-site Langmuir water factors.

IAST on a liquid. The IAST mixing rule works on the concentration basis: the solve's total "pressure" is \(C\), so each component's "partial pressure" is \(c_i = x_i C\), and the spreading pressure is \(\psi = \int_0^{c_i^\circ} q_i^\circ(c)/c\,dc\). The kinds in \(P y_i\) read \(c\) as above, and the concentration kinds take their parameters as they are.

New in 0.19

IAST on a liquid deck.

Fitting liquid data. The isotherm fitter takes points in \((P, y, T)\). For concentration data on a liquid, give \(P = c R T\) (with \(y = 1\)) for the concentration kinds (*_c, freundlich_c) and \(P = c\) for the kinds that read \(c\) on a liquid (henry, sips, sips_2, toth, toth_2, redlich_peterson); the fitted parameters are then those of the liquid deck. In C++, isofit::ConcentrationBasisPoints makes these points.


Once you have chosen an isotherm, pair it with a kinetic rate model to control how quickly the loading approaches \(q_i^*\).