Skip to content

Mass Balance

Overall Mass Balance

The overall mass balance ensures mass conservation throughout the packed bed. It is the mole balance of the gas divided by the concentration \(C = P/(RT)\):

\[ \epsilon_t\left(\frac{1}{P}\frac{\partial P}{\partial t} - \frac{1}{T}\frac{\partial T}{\partial t}\right) + \frac{T}{P}\frac{\partial}{\partial z}\left(\frac{u P}{T}\right) + \frac{RT}{P}\left[\sum_{k}\rho_{b,k}\sum_{i=1}^{N}\frac{\partial q_{i,k}}{\partial t} - \sum_{i=1}^{N} S_i\right] = 0 \]

Multiplied by \(C\), this is the conservative form \(\epsilon_t\,\partial C/\partial t + \partial(uC)/\partial z + \sum_k \rho_{b,k}\sum_i \partial q_{i,k}/\partial t = \sum_i S_i\), which is also the form the manufactured-solution verification uses (adsim/equations/manufactured_sources.h). The solver carries the pressure \(P\) as the unknown of this balance.

Symbol Description Unit
\(P\) Pressure Pa
\(T\) Gas temperature (the fluid temperature, also under local thermal non-equilibrium) K
\(\epsilon_t\) Total void fraction -
\(u\) Superficial velocity m s⁻¹
\(\rho_{b,k}\) Bulk density of adsorbent \(k\) (mass of solid \(k\) per bed volume) kg m⁻³
\(q_{i,k}\) Loading of component \(i\) on adsorbent \(k\) mol kg⁻¹
\(S_i\) Reaction source of component \(i\) mol m⁻³ s⁻¹
\(N\) Number of gas components -
\(t\) Time s
\(z\) Axial coordinate m
\(R\) Ideal gas constant J mol⁻¹ K⁻¹

The sum over \(k\) runs over the adsorbents of the cell's layer; a layer of one solid has a single term, \(\rho_b\,\partial q_i/\partial t\). The bulk densities come from the layer's mass fractions, \(\rho_{b,k} = (1-\epsilon_b)\,\rho_{mix}\,w_k\) (see Mixed Adsorbent Layers). A component whose isotherm on adsorbent \(k\) is inert has \(q_{i,k} = 0\) and adds nothing. With a dual-rate linear driving force, \(q_{i,k}\) is the total loading of the two sites, so the slow site is not counted twice.

Reaction source. Each reaction \(r\) lives on an adsorbent \(k\) and gives a rate \(r_r\) per kilogram of that solid (see Reactions). Its effectiveness factor is \(\eta_r\) and its stoichiometric coefficient for component \(i\) is \(\nu_{i,r}\). The source of component \(i\) is

\[ S_i = \sum_k \sum_{r \in k} \nu_{i,r}\,\rho_{b,k}\,\eta_r\,r_r \]

It is zero in the cells where the carrying solid is absent and in void cells, and it is zero everywhere in a deck without reactions. A reaction that changes the number of moles (\(\sum_i \nu_{i,r} \ne 0\)) drives the velocity field in the same way as adsorption.

Component Mass Balance

The component mass balance accounts for axial dispersion, convection, adsorption/desorption according to the rate model selected, and reactions. Axial dispersion can be constant or calculated from different empirical equations. How \(\rho_b\), \(\epsilon_t\) and \(\epsilon_b\) follow from the deck's parameters, and which settings to check when comparing with another code, is on Matching Another Model.

\[ \epsilon_t \left(\frac{\partial y_i}{\partial t} + \frac{y_i}{P}\frac{\partial P}{\partial t} - \frac{y_i}{T}\frac{\partial T}{\partial t}\right) + \frac{T}{P} \frac{\partial}{\partial z}\left(\frac{u y_i P}{T}\right) - \frac{T}{P}\frac{\partial}{\partial z}\left(\epsilon_b \frac{D_{ax} P}{T} \frac{\partial y_i}{\partial z}\right) + \frac{RT}{P} \left[\sum_k \rho_{b,k} \frac{\partial q_{i,k}}{\partial t} - S_i\right] = 0 \]

Multiplied by \(C\), it is \(\epsilon_t\,\partial (C y_i)/\partial t + \partial(u C y_i)/\partial z - \partial(\epsilon_b D_{ax} C\,\partial y_i/\partial z)/\partial z + \sum_k \rho_{b,k}\,\partial q_{i,k}/\partial t = S_i\). Inside a layer \(\epsilon_b\) is constant, so it can be taken out of the derivative.

Symbol Description Unit
\(y_i\) Mole fraction of component \(i\) in gas phase -
\(P\) Pressure Pa
\(T\) Gas temperature K
\(\epsilon_t\) Total void fraction -
\(\epsilon_b\) Bed void fraction (the open frontal area of a structured layer) -
\(u\) Superficial velocity m s⁻¹
\(D_{ax}\) Axial dispersion coefficient of the Constant model, one value for all components (the correlations, Ruthven, Taylor–Aris, Edwards–Richardson and Wakao–Funazkri, give one per component, below) m² s⁻¹
\(\rho_{b,k}\) Bulk density of adsorbent \(k\) kg m⁻³
\(q_{i,k}\) Loading of component \(i\) on adsorbent \(k\) mol kg⁻¹
\(S_i\) Reaction source of component \(i\) mol m⁻³ s⁻¹
\(t\) Time s
\(z\) Axial coordinate m
\(R\) Ideal gas constant J mol⁻¹ K⁻¹

The solver carries a component balance for every component, in addition to the overall balance. It does not impose \(\sum_i y_i = 1\): the sum follows from the balances, to within the solver tolerance (see Numerics).

Void regions. A void region is one well-mixed cell with \(\epsilon_t = \epsilon_b = 1\), no adsorbent and no reactions. Its dispersion coefficient is zero, so no dispersive flux crosses the faces of a void cell: gas moves between a void and the bed by convection only.

Dispersion with a coefficient per component

New in 0.15

Per-component dispersion in the Ruthven and Taylor–Aris models.

With one \(D_{ax}\) for all components, the dispersive fluxes \(J_i = -\epsilon_b D_{ax} C\,\partial y_i/\partial z\) sum to zero, because \(\sum_i y_i = 1\). That is why the overall mass balance has no dispersion term: a dispersive flux moves components relative to the molar-average velocity \(u\) and carries no net moles. The molecular diffusivity is different for each component, so the dispersion correlations (Ruthven, Taylor–Aris, Edwards–Richardson, Wakao–Funazkri) give each component its own \(D_{ax,i}\) (Transport Correlations). Fickian fluxes with different coefficients do not sum to zero. The component balance therefore takes the self-consistent effective binary flux of Ramshaw (1990), written for the molar-average velocity:

\[ J_i = -\epsilon_b C\left(D_{ax,i}\frac{\partial y_i}{\partial z} - y_i\sum_{j=1}^{N} D_{ax,j}\frac{\partial y_j}{\partial z}\right), \qquad \sum_{i=1}^{N} J_i = 0 \]

The sum runs over all \(N\) components, \(i\) included. The second term subtracts from every component its share \(y_i\) of the net drift \(\sum_j J_j^0\) of the uncorrected fluxes. It adds the same velocity to every component, so it treats the components alike and keeps their velocities relative to each other, which are all that the multicomponent (Maxwell–Stefan) diffusion equations determine. The overall balance, the momentum balance and the meaning of \(u\) stay as above. With equal coefficients the correction vanishes, and \(J_i\) is the flux of the one-coefficient model. Numerics gives the discrete form, which sums to zero to round-off through every face.

Without the correction, the component balances no longer add up to the overall balance, and nothing holds \(\sum_i y_i\) at 1. A validation test (test_per_component_dispersion.cpp, check 6) feeds 50 % H₂ and 50 % CO₂ into an inert bed of N₂ and then closes both ends, with the correction on and off. With Fick's law per component, H₂ runs ahead of CO₂, and the front carries a sum above 1 ahead of it and below 1 behind it: up to 4–7 % from 1, more on finer grids. When the front leaves the bed it takes its excess with it, and the gas left in the bed keeps a deficit (a bed mean of about −0.2 % on a fine grid), which stays once the ends are closed. With the correction the sum stays at 1 to round-off.

Ramshaw derives the correction relative to the mass-average velocity (his eq. 16, with weights \(\rho_i/\rho\)). The momentum balance here gives the molar-average velocity, so the weights are the mole fractions. The two frames differ by a net molar flux of order \(1/Pe\) against the convective flux, below 1 % at the Péclet numbers of adsorption columns. The same correction is used in combustion codes as the "correction velocity" of mixture-averaged transport (Coffee and Heimerl 1981).

  • J. D. Ramshaw, "Self-consistent effective binary diffusion in multicomponent gas mixtures", J. Non-Equilib. Thermodyn. 15 (1990) 295–300, doi:10.1515/jnet.1990.15.3.295.
  • T. P. Coffee and J. M. Heimerl, "Transport algorithms for premixed, laminar steady-state flames", Combust. Flame 43 (1981) 273–289, doi:10.1016/0010-2180(81)90027-4.

Condensation on the wall

New in 0.19

The wall liquid film: condensation.wall_film.* and initial.wall_liquid_film.

A vapour can condense on a cold column wall. One component of the deck can be switched to do so (condensation.wall_film.enabled[Water] = true; the default is off for every component, and a deck that leaves it off is unchanged). It then forms a static liquid film on the inner wall, with the hold-up \(L_w\) [mol per m² of inner wall] of each wall cell as a differential unknown (logged as the bulk series wall_liquid_film):

\[ \frac{\partial L_w}{\partial t} = k_w\,F\!\left(c_w - c_{sat},\,L_w\right), \qquad c_w = \frac{y_c P}{R T}, \qquad c_{sat} = \frac{p_{sat}(T_w)}{R T} \]

\(y_c\) is the mole fraction of the condensing component in the gas cell next to the wall, \(T\) the gas temperature and \(T_w\) the wall temperature. \(p_{sat}\) is the component's vapour-pressure curve, the same one the SUPERSATURATION check and the GAB isotherm use. The film takes the moles from that gas cell: per unit bed volume the sink is

\[ S_w = \frac{4}{d_i}\,\frac{\partial L_w}{\partial t} \]

(\(4/d_i\) is the inner wall area per bed volume). \(S_w\) enters the component balance of the condensing component and the overall balance as a consumer of gas, in the same place as the adsorption term \(\sum_k \rho_{b,k}\,\partial q_{i,k}/\partial t\): the velocity responds to condensation as it does to adsorption.

Rate. The mass-transfer coefficient comes from the bed-to-wall heat-transfer coefficient \(h_i\) by the Chilton–Colburn analogy (\(j_D = j_H\), so \(h/h_m = \rho c_p\,Le^{2/3}\); Chilton and Colburn 1934, Incropera et al., Fundamentals of Heat and Mass Transfer, Sec. 6.7):

\[ k_w = f_c\,\frac{h_i}{\rho\,C_{p,g}\,Le^{2/3}}, \qquad Le = \frac{Sc}{Pr} = \frac{\lambda_g}{\rho\,C_{p,g}\,D_{c,m}} \]

with \(\rho C_{p,g}\) the gas's volumetric heat capacity, \(\lambda_g\) its thermal conductivity and \(D_{c,m}\) the mixture diffusivity of the condensing component (Transport Correlations). For air and water vapour near 300 K, \(Le \approx 0.87\) and \(k_w \approx 0.94\,h_i/(\rho C_{p,g})\). \(f_c\) (condensation.wall_film.rate_multiplier, default 1) scales the rate. Where \(h_i = 0\) (a void region, or \(h_i\) set to zero) nothing condenses.

Switch. Condensation is always allowed; evaporation only while a film is present. \(F\) is the driving force \(d = c_w - c_{sat}\) times a smooth switch \(\phi\):

\[ F = d + (1 - g)\,\varepsilon\,\ln\!\left(1 + e^{-d/\varepsilon}\right), \qquad g = \frac{L_w}{L_w + L_\varepsilon}, \qquad \varepsilon = 10^{-3}\,c_{sat} \]

Far above saturation \(F = d\) (\(\phi = 1\)); far below it \(F = g\,d\) (\(\phi = g\)), so evaporation slows down smoothly as the film runs out. \(F\) has no kink at \(d = 0\), and on a dry wall \(F \ge 0\), so the hold-up does not go below zero (except by the solver tolerance). \(L_\varepsilon\) is condensation.wall_film.evaporation_holdup (default \(10^{-3}\) mol m⁻²). The film's time constant \(1/(4 k_w / d_i)\) is short (milliseconds to seconds); the implicit integrator takes it without trouble.

Symbol Description Unit Registry path
\(L_w\) Liquid film on the inner wall, per m² of wall mol m⁻² initial value initial.wall_liquid_film (default 0)
\(k_w\) Wall mass-transfer coefficient m s⁻¹
\(f_c\) Rate multiplier – condensation.wall_film.rate_multiplier (default 1)
\(L_\varepsilon\) Evaporation hold-up of the switch mol m⁻² condensation.wall_film.evaporation_holdup (default 10⁻³)
\(S_w\) Film sink of gas per bed volume mol m⁻³ s⁻¹

The heat of condensation goes to the wall: see the wall energy balance. The column inventory of the KPI and cycle mole balances counts the film (\(\pi d_i\,\Delta z\,L_w\) per cell), so the water balance of a cycle closes with condensation and the MASS_BALANCE_STUCK check stays silent.

Limits of the model:

  • The film is static: it does not drain, flow along the wall or drip into the bed. There is no capillary effect.
  • The film has mass and heat capacity only: it does not reduce the gas void and it does not conduct heat along the wall.
  • One component condenses (a deck check refuses a second). It must have a saturation curve and liquid data (liquid properties). Other gases do not dissolve in the film (for example CO₂ in water).
  • Gas is still the only phase in the bed: the gas itself is not limited to saturation. The film removes the excess at a finite rate, so the SUPERSATURATION check judges the condensing component only on the gas at the end of each step, against 1.05.
import skarstrom as sk

sim = sk.examples.Illustrative_Humid_DAC_TVSA_Wall_Film.load()
film = sim.condensation.wall_film
print(film.enabled["Water"], film.rate_multiplier, film.evaporation_holdup)
print(sim["initial.wall_liquid_film"])
  • T. H. Chilton and A. P. Colburn, "Mass transfer (absorption) coefficients: prediction from data on heat transfer and fluid friction", Ind. Eng. Chem. 26 (1934) 1183–1187, doi:10.1021/ie50299a012.

Condensation on the solid (liquid hold-up)

New in 0.19

The liquid hold-up on the solid: condensation.holdup.*, initial.liquid_holdup, the bulk series liquid_holdup and the LIQUID_HOLDUP warning.

Not validated against measured in-bed condensation

The verification tests (core/test/validation/test_liquid_holdup.cpp) check the model's own mass and energy balances and limits. No measured in-bed condensation data have been compared yet.

A vapour can also condense in the packed bed itself, on the solid. One component of the deck can be switched to do so (condensation.holdup.enabled[Water] = true; the default is off for every component, and a deck that leaves it off is unchanged). Each packed cell then holds an immobile liquid hold-up \(L\) [mol per m³ of bed], a differential unknown (0 in void cells; logged as the bulk series liquid_holdup). It uses the rate law and the smooth switch of the wall film, with the solid's film coefficient in place of the wall's:

\[ \frac{\partial L}{\partial t} = k_c\,a_v\,F\!\left(c_w - c_{sat},\,L\right), \qquad c_w = \frac{y_c P}{R T}, \qquad c_{sat} = \frac{p_{sat}(T_s)}{R T} \]

\(T_s\) is the solid temperature (\(T\) in local thermal equilibrium, the solid temperature in LTNE), and \(c_{sat}\) is on the gas temperature's basis, as for the wall film. \(F\) is the switched driving force of the wall film, with \(L_\varepsilon\) in mol m⁻³ (condensation.holdup.evaporation_holdup, default \(10^{-3}\) mol m⁻³): condensation is always allowed, evaporation only while a hold-up is present, and \(L\) does not go below zero.

Rate. \(a_v\) is the gas–solid area per bed volume (6 (1 − ε_b)/d_p in a packed layer, the channel wall area per bed volume in a structured layer) and \(k_c\) the film coefficient of the mass-transfer models:

\[ k_c = f_c\,\frac{Sh\,D_{c,m}}{l} \]

with \(Sh\) the layer's film Sherwood number (Transport Correlations), \(D_{c,m}\) the mixture diffusivity of the condensing component and \(l = d_p\) in a packed layer or the channel hydraulic diameter in a structured (monolith, laminate) layer. \(f_c\) is condensation.holdup.rate_multiplier (default 1). The time constant \(1/(k_c a_v)\) is short (well under a second in a packed bed), so the gas leaves a condensing zone at saturation.

Sink. Per unit bed volume the sink of gas is \(S_L = \partial L/\partial t\) (already per bed volume, unlike the wall film's \(4/d_i\) factor). It enters the component balance of the condensing component and the overall balance in the same place as the wall film's \(S_w\) and the adsorption term. When the wall film and the hold-up are both on, they must condense the same component (a deck check), and their sinks add.

The heat of condensation is released in the bed (LTE) or on the solid (LTNE): see Condensation on the solid. The column inventory of the KPI and cycle mole balances counts the hold-up (\(V L\) per cell), so the cycle water balance closes and MASS_BALANCE_STUCK stays silent.

Symbol Description Unit Registry path
\(L\) Liquid hold-up on the solid, per m³ of bed mol m⁻³ initial value initial.liquid_holdup (default 0, every packed cell)
\(k_c\) Film mass-transfer coefficient m s⁻¹
\(a_v\) Gas–solid area per bed volume m⁻¹
\(f_c\) Rate multiplier – condensation.holdup.rate_multiplier (default 1)
\(L_\varepsilon\) Evaporation hold-up of the switch mol m⁻³ condensation.holdup.evaporation_holdup (default 10⁻³)
\(L_{max}\) Hold-up of the LIQUID_HOLDUP warning mol m⁻³ condensation.holdup.max_holdup (default 0 = auto)
\(S_L\) Hold-up sink of gas per bed volume mol m⁻³ s⁻¹

Maximum hold-up. \(L_{max}\) does not limit \(L\) in the equations: it is the threshold of the LIQUID_HOLDUP run-health warning. At 0 (auto) it is the pore volume that the adsorbed phase does not fill, per cell,

\[ L_{max} = \max\!\left[(1 - \varepsilon_b)\,\varepsilon_p\,\rho_{L,sat}(T_s) - \rho_b\,q_c,\; 0\right] \]

with \(\rho_{L,sat}\) the saturated-liquid molar density (liquid properties) and \(q_c\) the adsorbed loading of the condensing component.

Limits of the model:

  • \(L\) is only the condensate above saturation. Capillary condensation below saturation stays in the isotherm (for example the GAB water isotherm); there is no Kelvin pore filling.
  • The hold-up is immobile: it does not drain or flow, does not reduce the gas void, does not block the uptake of CO₂ or any other component, and other gases do not dissolve in it.
  • The water-coupled CO₂ isotherm kinds read the adsorbed water loading \(q_w\) only, never \(L\).
  • One component condenses (a deck check refuses a second). It must have a saturation curve and liquid data.
  • The hold-up brings the gas back towards saturation at a finite rate, so the SUPERSATURATION check judges the condensing component only on the gas at the end of each step, against 1.05. The hold-up does not condense on a cold wall: turn on the wall film as well for that.
import skarstrom as sk

sim = sk.examples.Illustrative_Humid_DAC_TVSA_Holdup.load()
holdup = sim.condensation.holdup
print(holdup.enabled["Water"], holdup.rate_multiplier, holdup.evaporation_holdup, holdup.max_holdup)
print(sim["initial.liquid_holdup"])

Condensation after the column (outlet lines and knock-out)

New in 0.19

sim.outlet_condensation(...), skarstrom.dew_point(...) and their C++ counterparts adsim::OutletCondensation and adsim::DewPoint (adsim/solver/outlet_condensation.h).

In a humid VSA or TVSA cycle the water often condenses downstream of the column, not in it. The water-rich gas that the vacuum pump draws from the bed is far below its dew point at vacuum. The pump compresses it to atmospheric pressure and the line cools it, so it is far above its dew point there. The wall film and the hold-up above model condensation in the column only. sim.outlet_condensation(step, stream) gives what happens to the gas of one logged endpoint after it leaves the bed.

It is a calculation on the logged stream of one step of one cycle, after the run. It does not change the run: the bed sees the same gas. At each logged point, the gas that leaves the bed through the endpoint (the per-component molar flows \(\dot n_i\) out of the bed; a point where the total flow goes into the bed, a backflow, counts as zero) goes to a knock-out at pressure \(P_{ko}\) and temperature \(T_{ko}\). Only the condensing component \(c\) forms a liquid, and the other gases do not dissolve in it. With

\[ y_{sat} = \frac{p_{sat,c}(T_{ko})}{P_{ko}}, \qquad \dot n_{c,gas} = \frac{y_{sat}}{1 - y_{sat}} \sum_{i \ne c} \dot n_i, \qquad \dot n_{c,liquid} = \max\left(0,\ \dot n_c - \dot n_{c,gas}\right) \]

the knock-out removes \(\dot n_{c,liquid}\), and the gas that leaves it is saturated (or drier). When \(p_{sat,c}(T_{ko}) \ge P_{ko}\), or \(T_{ko}\) is at or above the critical temperature, nothing condenses. The rates are integrated over the step with the trapezoidal rule. The dew point of the gas is the temperature at which \(p_{sat,c}\) equals its partial pressure \(y_c P\): once at the line pressure (the logged endpoint pressure, before any pump) and once at \(P_{ko}\). \(p_{sat}\) is the vapour-pressure curve of the SUPERSATURATION check and the GAB isotherm.

Argument Default Meaning
step, stream – the step index and the stream name, as in sim.streams() and sim.stream_series
component "Water" the condensing component (it must have a saturation curve)
pressure the discharge pressure of the endpoint's vacuum pump when one is in use, else 101325 Pa \(P_{ko}\) [Pa]
temperature 298.15 K \(T_{ko}\) [K]
cycle -1 (the last logged cycle) the cycle

The result gives vapour_out and condensed [mol over the step], fraction_condensed, gas_out (the moles of each component that leave the knock-out: a dry-basis composition follows from it), max_dew_point_line and max_dew_point_knockout [K], pressure_source ("given", "vacuum pump discharge" or "default"), and the series time, dew_point_line, dew_point_knockout and condensation_rate [mol/s]. skarstrom.dew_point(component, partial_pressure) gives the dew point alone.

import skarstrom as sk

sim = sk.examples.Illustrative_Humid_DAC_TVSA.load()
sim.run(cycles=1)
for s in sim.streams():
    r = sim.outlet_condensation(s["step"], s["name"], "Water")
    if r.vapour_out > 1e-9:   # skip the streams that carry only a trace
        print(f'{s["step_name"]:>16} {s["name"]:>28}: {r.condensed:.3g} of {r.vapour_out:.3g} mol water '
              f'condensed at {r.pressure:.0f} Pa and {r.temperature} K; dew point {r.max_dew_point_line:.1f} K '
              f'in the line, {r.max_dew_point_knockout:.1f} K at the knock-out')
print(sk.dew_point("Water", 3169.9))   # about 298.15 K

Limits:

  • The knock-out is not part of the cycle. A product that is recycled to the bed (a purge or a buffer tank fed by the stream) keeps its vapour in the run. A knock-out inside the boundary, which removes the liquid before the gas reaches another step, is out of scope.
  • The result is per step and per stream, on demand. It is not a KPI: the per-cycle KPIs, the sensitivity studies and the optimiser do not read it. A deck-level knock-out with its condensed moles and dew point in the KPIs, for sweeps and optimisers, is a possible extension.
  • The calculation is a single equilibrium flash: no pressure drop, no carry-over of droplets, no heat balance of the knock-out (the gas is at \(T_{ko}\) when it leaves).
  • Only the logged cycles have stream data (settings.max_cycles_to_keep).

Inlet and outlet conditions

At an inlet the boundary condition is of the Danckwerts type: the total flux of each component entering the bed (convection plus dispersion) equals the feed's,

\[ u\thinspace C\thinspace y_{i,in} = u\thinspace C\thinspace y_i\rvert_{0^+} - \epsilon_b D_{ax} C \frac{\partial y_i}{\partial z}\bigg\rvert_{0^+} \]

so the gas in the first cell can differ from the feed, and the moles of each component the bed takes in are exactly the moles the inlet stream supplies (the amounts the stream logs, the performance metrics and the cyclic-steady-state mass balance count). At an outlet or a closed end the composition has zero gradient. The energy balance treats heat conduction at the inlet the same way. Numerics gives the discrete form.