Wall Energy Balance
Wall Energy Balance¶
The column wall is a separate thermal body with its own temperature \(T_w(z,t)\). It stores heat, conducts it along the column, exchanges heat with the packed bed on the inside and with the surroundings on the outside. The wall model is set on Column Properties → Wall, and the heat transfer coefficients on each layer's Internal HTC and External HTC tabs. The implementation is UpdateWallTemperature in core/src/equations/adsorbent_equations.cpp and the wall data in core/include/adsim/objects/wall.h.
Governing equation¶
Every term is written per unit volume of wall. For an annular wall of inner diameter \(d_i\) and outer diameter \(d_o\), a slice of length \(\Delta z\) has volume \(\tfrac{\pi}{4}(d_o^2 - d_i^2)\thinspace \Delta z\), inner area \(\pi d_i \Delta z\) and outer area \(\pi d_o \Delta z\), so with local thermal equilibrium in the bed:
With local thermal non-equilibrium, the bed side of the exchange is split between the gas and the solid, the gas taking the share \(g\):
In a packed bed \(g = \varepsilon_b\), in proportion to the bed voidage. In a structured layer (monolith or laminate) \(g = 0\): the gas flows in channels whose walls touch the column wall, so the whole exchange passes through the solid. The bed side of the same split appears in the gas and solid equations of the energy balance.
The same exchange appears with the opposite sign in the bed's energy balance as \(\tfrac{4 h_i}{d_i}(T - T_w)\) per unit bed volume. Both terms describe the same heat flow through the same area, so the heat the wall absorbs is exactly the heat the bed loses.
| Symbol | Description | Unit | Where it is set |
|---|---|---|---|
| \(T_w\) | Wall temperature | K | initial value: Cycle Design → Initial Conditions → Wall temperature |
| \(T\), \(T_s\) | Gas (and, in LTNE, solid) temperature of the bed | K | |
| \(T_{amb}\) | Ambient temperature | K | Column Properties → Geometry → Ambient temperature |
| \(\rho_w\), \(C_{p,w}\), \(k_w\) | Wall density, heat capacity, axial thermal conductivity | kg m⁻³, J kg⁻¹ K⁻¹, W m⁻¹ K⁻¹ | Wall → Material (a preset, or Custom) |
| \(t_w\) | Wall thickness | m | Wall → Thickness (or calculated from a design pressure: Wall Design) |
| \(d_i\) | Inner diameter: the column diameter | m | Geometry |
| \(d_o\) | Outer diameter, \(d_i + 2\thinspace t_w\) | m | |
| \(h_i\) | Bed-to-wall (internal) heat transfer coefficient | W m⁻² K⁻¹ | layer internal heat transfer model |
| \(h_o\) | Wall-to-ambient (external) heat transfer coefficient | W m⁻² K⁻¹ | layer external heat transfer model |
| \(\varepsilon_b\) | Bed voidage | – | layer properties |
| \(g\) | Gas share of the wall exchange under LTNE: \(\varepsilon_b\) packed, 0 structured | – | layer kind |
Notes:
- For a square or rectangular column, \(d_i\) is the hydraulic diameter of the cross-section and \(d_o = d_i + 2\thinspace t_w\); the wall terms keep the form above. Per unit length of column, the bed-side term \(\tfrac{4 h_i}{d_i}(T - T_w)\) times the cross-section area is the true perimeter of the cross-section times \(h_i (T - T_w)\). The logged medium duty uses the outer area \(\pi d_o \Delta z\), which is exact for a circular column only.
- \(h_i\) and \(h_o\) are constants or come from the transport correlations (Dixon, Leva, Holman, Churchill–Chu, Yang), evaluated in every cell of the layer. In a void region they are zero, so the wall there exchanges no heat with the gas or the surroundings and only conducts along the column.
- Setting \(h_o = 0\) makes the column adiabatic towards the surroundings; setting \(h_i = 0\) decouples the wall from the bed altogether.
- Axial conduction is discretised with central differences on the same cells as the bed, one flux per face: the two half cells in series over the distance between the cell centres (Numerics), so heat is conserved along the wall also where the cell width changes (a layer interface, a void region).
- In an isothermal run the wall is held at the isothermal temperature and this equation is not solved.
Liquid film on the inner wall¶
New in 0.19
The heat of the wall liquid film.
When a component condenses on the wall (Condensation on the wall), the film releases its heat of condensation on the wall's inner face and adds its heat capacity to the wall. Per unit volume of wall, with the same area factor as the inner exchange:
The dots are the terms of the governing equation above. \(\Delta h_v(T_w) = R T_w^2\,\mathrm{d}\ln p_{sat}/\mathrm{d}T\) is the latent heat on the same vapour-pressure curve that sets the saturation (Clausius–Clapeyron, LatentHeatOfVaporisation in adsim/objects/liquid_properties.h), so the condensation equilibrium and its heat agree. The integral is the vapour's sensible heat between the gas temperature \(T\), at which it leaves the gas, and the wall temperature, at which it condenses (the ideal-gas \(C_{p,v}\) of the energy balance). The gas side needs no extra term: the gas energy balance is written in temperature form, and a sink at the gas temperature leaves it unchanged. So the energy of the gas, the solid, the wall and the film (a liquid of enthalpy \(h_v(T_w) - \Delta h_v(T_w)\)) is conserved; the verification test test_wall_liquid_film.cpp checks this to \(2\times10^{-3}\) of the latent heat. Evaporation is the same term with \(\partial L_w/\partial t < 0\): it cools the wall.
| Symbol | Description | Unit |
|---|---|---|
| \(L_w\) | Liquid film on the inner wall, per m² of wall | mol m⁻² |
| \(C_{p,L}\) | Heat capacity of the saturated liquid at \(T_w\) (liquid properties) | J mol⁻¹ K⁻¹ |
| \(\Delta h_v\) | Latent heat of vaporisation at \(T_w\) | J mol⁻¹ |
| \(C_{p,v}\) | Ideal-gas heat capacity of the vapour | J mol⁻¹ K⁻¹ |
Above the critical temperature no latent heat is released. In an isothermal run the film still takes and gives back moles, at the isothermal temperature, but there is no wall energy balance.
Boundary conditions at the column ends¶
The wall has two ends, at \(z = 0\) and \(z = L\). Column Properties → Wall → Wall temperature boundary condition selects what happens there (wall_temperature_boundary_condition.cpp):
- Zero flux (the default): no heat is conducted out of the wall ends, \(\partial T_w/\partial z = 0\) at \(z = 0\) and \(z = L\).
- Fixed: the wall temperature at both ends is held at a set value \(T_{w,bc}\) (implemented by setting the mean of the end cell and its ghost cell to \(T_{w,bc}\)). Use it when the column flanges are held at a known temperature by a large mass of pipework or a temperature-controlled jacket.
This condition only concerns the ends of the wall. Heat loss through the side of the column is governed by \(h_o\) and \(T_{amb}\), or, during a step that has one, by a heating medium.
Heating medium (jacket)¶
A temperature swing or direct air capture column is often heated and cooled by a fluid in a jacket around it (steam, hot oil or cooling water) rather than left to the surroundings. Each step can have such a heating medium on the wall's outer face. While the step runs, the outer-face term of the wall balance becomes
so the medium's heat transfer coefficient \(h_m\) replaces every layer's \(h_o\), and the medium temperature \(T_m\) replaces \(T_{amb}\), over the whole length of the column (one jacket per bed; a void region still exchanges no heat). Heat reaches the bed through the wall, so the wall's heat capacity and \(h_i\) set how fast the bed follows the medium.
| Symbol | Description | Unit | Parameter path |
|---|---|---|---|
| – | Whether the step has a medium (off by default) | – | step[ID].medium.enabled |
| \(T_m\) | Medium temperature: a constant, or a ramp over the step | K | step[ID].medium.temperature (ramp: .temperature_linear_start, _end, _time, ...) |
| \(h_m\) | Medium-to-wall heat transfer coefficient on the outer surface | W m⁻² K⁻¹ | step[ID].medium.heat_transfer_coefficient |
- \(T_m\) takes the same profiles as an inlet temperature: constant, linear, exponential, log-linear or double exponential, with \(t\) the time since the step started. The medium temperature is set, not solved: there is no energy balance on the medium, so the jacket behaves as if its flow were large enough to hold \(T_m\).
- A step without a medium (the default, and every deck saved before media existed) keeps the ambient exchange. A medium is set step by step, so a heating step and a cooling step can use different fluids, and a step left without one returns to \(h_o\) and \(T_{amb}\).
- The logged External Heat Transfer Coefficient shows \(h_m\) during a step with a medium.
- All three values are registry parameters, so they can be set from the command line (
--set "step[Heat].medium.enabled=true"), swept, optimised and used in sensitivity studies. In Python,sim.steps["Heat"].medium.temperature = 393.15. - \(h_m = 0\) makes the step adiabatic towards the outside, whatever the layers' \(h_o\).
Internal heat exchanger¶
The same medium can also run through an internal heat exchanger: tubes or plates inside the packing that heat or cool the bed directly instead of through the wall. In every bed cell it adds a volumetric source to the bed's energy balance:
\(a_x\) is the exchanger's heat-transfer area per unit bed volume and \(h_x\) its heat transfer coefficient. \(T_m\) is the medium temperature, the same as the jacket's. Under local thermal non-equilibrium the exchanger heat is split as the wall exchange is: the gas takes the share \(g\), \(g\thinspace a_x h_x (T_m - T)\), and the solid the rest, \((1-g)\thinspace a_x h_x (T_m - T_s)\). In a packed layer \(g = \varepsilon_b\). In a structured layer (monolith, laminate) \(g = 0\): the exchanger's tubes or plates are part of, or bonded to, the channel walls, so all of its heat goes into the solid, as all of the column-wall flux does. The gas then gains that heat only through the channel walls. There is no exchanger in a void region.
| Symbol | Description | Unit | Parameter path |
|---|---|---|---|
| \(a_x\) | Exchanger heat-transfer area per bed volume (0, the default, turns it off) | m² m⁻³ | step[ID].medium.exchanger_area_per_volume |
| \(h_x\) | Exchanger heat transfer coefficient | W m⁻² K⁻¹ | step[ID].medium.exchanger_heat_transfer_coefficient |
- The exchanger needs the step's medium to be enabled. It works alongside the jacket. For an exchanger without a jacket, set \(h_m = 0\); the wall is then adiabatic on the outside during the step.
- The exchanger only models the heat transfer, not the volume its tubes take up. Reduce the bed voidage or the bed volume yourself if that matters.
Medium duty¶
The solver logs, for every step, the heat the medium passes into the column and the heat it takes back out, integrated over the step. For the jacket:
\(q_i\) is the outer-face flow of cell \(i\), the same term the wall balance uses. An internal exchanger adds its flow per bed cell, \(a_x h_x \Delta V_i (T_m - T_i)\) (under LTNE the \(g\) / \(1-g\) mix of gas and solid temperatures: \(\varepsilon_b\) / \(1-\varepsilon_b\) in a packed layer, the solid temperature alone in a structured layer), to the same two totals, split by sign in the same way. The integral uses the trapezoidal rule over every logged point of the step, which means every accepted solver step plus any fill-in points. It is accumulated as the log is written, so thinning the stored rows does not change it. Both figures are zero for a step without a medium and in an isothermal run.
- In C++ they are
StepHeatDuty::medium_heat_inandmedium_heat_out[J], on each step's log (EquationLog::GetLog(cycle, step).heat_duty). They sit next to the energy sources'heating_powerandcooling_power, so the two contributions can be read separately.exchanger_heat_inandexchanger_heat_outhold the internal exchanger's share. - The thermal-energy and cooling-duty KPIs (total and per step) add \(Q_{m,\text{in}}\) to the heat supplied and \(Q_{m,\text{out}}\) to the heat removed.
CalculateStepThermalDutyalso returns the medium's share on its own (medium_heating,medium_cooling). - For a closed bed with insulated wall ends, \(Q_{m,\text{in}} - Q_{m,\text{out}}\) equals the change in bed and wall internal energy over the step. The tests
HeatingMediumDutyTest.LoggedDutyClosesTheEnergyBalance(jacket) andExchangerDutyClosesTheEnergyBalance(exchanger alone, and with the jacket) check this; the measured mismatch is below \(10^{-4}\) of the change.
Verification¶
core/test/validation/test_heating_medium_analytic.cpp compares heat-up by a medium at fixed \(T_m\) with closed-form solutions. Each case uses a closed, non-adsorbing bed with insulated wall ends, so every cell follows the same linear equations. The comparison covers the whole step.
| Case | Model | Exact solution | Measured error (of \(T_m - T_0\)) |
|---|---|---|---|
| Jacket heats the wall alone (\(h_i = 0\)) | \(\rho_w C_{p,w}\thinspace \dot T_w = K_o (T_m - T_w)\), \(K_o = \frac{4 d_o h_m}{d_o^2 - d_i^2}\) | exponential approach to \(T_m\), time constant \(\rho_w C_{p,w}/K_o\) | \(5\times10^{-6}\) |
| Jacket heats wall and bed | wall as above plus \(K_i (T - T_w)\), \(K_i = \frac{4 d_i h_i}{d_o^2 - d_i^2}\); bed \(C_b \dot T = \frac{4 h_i}{d_i}(T_w - T)\) | \(2\times2\) matrix exponential | \(5\times10^{-7}\) |
| Internal exchanger heats the bed alone | \(C_b \dot T = a_x h_x (T_m - T)\) | exponential, time constant \(C_b/(a_x h_x)\) | \(8\times10^{-8}\) |
\(C_b = \varepsilon_t C c_v + \rho_b C_{p,s}\) is the bed's heat capacity per volume at constant volume, with \(C\) the molar gas concentration and \(c_v\) its molar heat capacity at constant volume; the test cases use \(\varepsilon_p = 0\), so \(\varepsilon_t = \varepsilon_b\). In a closed bed the energy balance's \(\varepsilon_t\thinspace\partial P/\partial t\) work term turns the gas \(c_p\) into \(c_v\).
Wall materials¶
Choosing a preset Material fills in the density, heat capacity and thermal conductivity, which are then read-only; Custom lets you type all three. The presets are reference values at about 20 °C (the source comments in wall.h cite the ASM Handbook, ASME B31.3 and MatWeb):
| Material | Density [kg m⁻³] | Heat capacity [J kg⁻¹ K⁻¹] | Thermal conductivity [W m⁻¹ K⁻¹] |
|---|---|---|---|
| SS316L | 7990 | 500 | 16.3 |
| SS304 | 7900 | 500 | 16.2 |
| SS304L | 7900 | 500 | 16.2 |
| Carbon Steel (A106) | 7850 | 490 | 51.9 |
| Carbon Steel (A53) | 7850 | 490 | 51.9 |
| Hastelloy C-276 | 8890 | 427 | 10.2 |
| Inconel 625 | 8440 | 410 | 9.8 |
| Aluminium 6061 | 2700 | 896 | 167 |
| Titanium Gr.2 | 4510 | 520 | 16.4 |
The wall's heat capacity is often not small. In the Perez (2019) laboratory column, for example, the 3.1 mm steel wall (about 0.8 kg) can store about 400 J K⁻¹, against about 150 J K⁻¹ for the 162 g of zeolite it contains.
Minimum wall thickness¶
The wall thickness can be calculated from a design pressure (ASME BPVC VIII-1 or ASME B31.3, with a full-vacuum buckling check): see Wall Design and Operating Limits.