Skip to content

Validation 12 — A nitrogen blowdown and its wall

Time: about 2 minutes per run, 25 minutes for the fit. Suite: examples/validation/haque_i1_blowdown/. Gated by: tests/validation/test_haque_i1_blowdown.py.

When a pressure vessel is emptied fast, its gas cools by expansion. A vessel blown down from 150 bar can reach −80 °C inside in half a minute. The heat that brings it back comes through the wall, and the wall's own temperature is what decides whether the steel turns brittle. This page empties a steel vessel of nitrogen through a small choke and compares the pressure, the gas temperature and the inner wall's temperature with measurements. It checks three pieces that landed on 2026-11-19:

  • the relief_valve and the real-gas orifice it vents through (theory §4.9);
  • natural convection inside a plenum;
  • a plenum's dynamic multi-layer wall (theory §5.1).

The case came out of a question about sizing a CNG dump orifice (examples/97_cng_dump_orifice.toml).

Where the data is

M. A. Haque, S. M. Richardson, G. Saville, G. Chamberlain and L. Shirvill, Blowdown of pressure vessels. II. Experimental validation of computer model and case studies, Process Saf. Environ. Prot. 70(B1), 10–17 (1992): run I1, the vertical vessel. The values are read from Fig. 1 of A. Speranza and A. Terenzi, Blowdown of hydrocarbons pressure vessel with partial phase separation, arXiv:1101.0969 (2011), which re-plots them. The markers were taken as vector paths, each axis calibrated on its frame. The 13 times, the pressure and the bounds of the two temperature bands are in the suite's data/i1_digitised.csv, with this provenance in its header.

The problem

The vessel is a steel cylinder with flat ends, 0.273 m bore and 1.524 m long, standing vertically, with a 2.5 cm wall. It holds nitrogen at 150 bar and 290.15 K in still air at 290.15 K. A 6.35 mm choke at the top opens at t = 0 to atmosphere. The pressure, the gas temperature and the inner wall's temperature were measured for 100 s. The temperatures were measured at several places, and the published figure draws each as a band between two curves.

The model

The vessel is a plenum (i1_blowdown.toml):

  • Gas: nitrogen on Peng-Robinson. At 150 bar and 290 K, nitrogen is nearly ideal.
  • Inside heat transfer: Churchill-Chu natural convection on the vessel's 1.524 m height. It uses nitrogen's Sutherland constants (1.663e-5 Pa s, 273.15 K, 107 K), Pr = 0.72, and the expansivity of the plenum's equation of state.
  • The wall: five steel layers of 1, 2, 4, 8 and 10 mm, thin at the gas side, with k = 45 W/(m K), ρ = 7850 kg/m³ and cp = 460 J/(kg K). The model's "inner wall" is the 1 mm inner layer.
  • Outside: 1.7103 m² in still air at 5 W/(m² K), a value set before any run.
  • The choke: a 1 m line of 15 mm leads to it. The choke is a relief_valve, open from the start, venting to 1.01325 bar.

What is fitted, and what is predicted

One number is fitted: the choke's discharge coefficient. Haque's papers give the experiment's value, and until it is read from them it is fitted, on the pressure alone. The fit minimises the RMS of ln(p_model / p_measured) over the 12 points after t = 0, by golden-section search in [0.6, 1.0]. That takes 14 runs and gives Cd = 0.732 (re-fitted 2026-11-21; 0.772 until then, see the note under Results). Park, Ko, Ryu and Lim (PSEP 113, 343–356, 2018) used 0.9 for the same valve in their model.

The two temperatures are then predictions: nothing about the heat transfer was tuned to them.

Run it

cd examples/validation/haque_i1_blowdown
python run_validation.py --run      # at the fitted Cd
python run_validation.py --fit      # refit it, 13 runs
python run_validation.py --eos      # the four equations of state, at the fitted Cd

Results

The vessel's pressure, and the gas and inner-wall temperatures against the measured bands

Measured 2026-11-21, Python 3.10.21, numba 0.67.0:

t [s] p measured [bar] p model gas band [K] gas model wall band [K] wall model
3.3 106.3 +5.8 % 264.9–270.1 267.2 288.3–288.9 289.9
9.9 70.0 −1.0 % 232.3–241.4 235.2 285.4–287.1 288.7
19.8 38.3 +4.2 % 204.9–213.9 211.5 282.9–285.6 287.4
29.7 24.2 +5.8 % 192.3–206.4 203.0 280.8–284.7 286.7
39.6 16.65 +2.6 % 188.2–206.4 201.6 280.2–284.7 286.4
59.4 6.65 +16.3 % 192.6–214.5 207.5 280.8–284.7 286.2
79.2 3.75 −8.5 % 201.8–228.9 217.7 281.2–284.7 286.2
99.0 1.65 −10.0 % 214.8–241.4 229.1 281.4–285.6 286.1

Re-measured 2026-11-21: three things changed under this case

The table and the three paragraphs below are the model of 2026-11-21. The first measurement, of 2026-11-19, was Cd 0.772, RMS ln p 0.062, a coldest gas of 197.4 K at 36.9 s and a wall 0.6–2.2 K above its band. What changed:

  • The choke. A relief valve read the pressure of the cell it draws from, which sits below the pipe's while it vents, and passed about 5 % less than its formula here. The fitted Cd had absorbed that. It now reads the wall face's pressure (theory §4.9), and the fit gives 0.732.
  • The c_p in the natural-convection coefficient is the EOS's own (it was the ideal gas's), which raises the coefficient while the gas is dense.
  • The wall's layers are sized through its 25 mm (they were all on the inner area), 10 % more heat capacity.

The last two warm the coldest gas by 4 K: at the old Cd, with the valve as it was, they gave 201.5 K and an RMS of 0.069. The side experiments in the bullets under "Inner wall" (the 26-layer wall, the 200 W/(m² K) floor, CoolProp's properties, stainless steel) were run on 2026-11-19 and were not re-run; their numbers are that model's.

Pressure. The RMS of ln p is 0.068. Between 7 and 50 s the model is within −1.0 % to +5.8 %. At 3.3 s it is 5.8 % high. The point at 59 s, at +16.3 %, lies below its neighbours' trend in the data itself: an exponential through 49 and 79 s passes 7.8 bar there, and the model has 7.73. Late in the run, 79 to 99 s, the model is 8–10 % low. One coefficient cannot shift the decay's shape. The rate falls faster in the data early on and slower late than the model's does.

Gas temperature. All 12 points are inside the measured band, both the fall and the recovery. The model's coldest gas is 201.6 K at 37.6 s, against a band of 188–206 K at 40 s. Haque's own model, BLOWDOWN, bottoms out near 196 K at 40 s in Park et al.'s Fig. 10(b), read by eye.

Inner wall. None of the 12 points is inside its band. The model's inner layer is 0.5–2.0 K above the band's top. It falls from 290 to 286 K, where the measurement falls to 281–285 K. The wall cools too little, by a few kelvin out of 290. Runs on 2026-11-19, all at that day's Cd, rule out five causes and leave two:

  • Not the grid. A wall of 26 layers growing from 0.25 mm moves the inner wall by at most 0.01 K. The five-layer wall also follows the semi-infinite solid driven by its own recorded heat flux to 0.02 K for the first 20 s.
  • Not the inside coefficient. Making 200 W/(m² K) the floor, about twice the natural-convection value, brings the wall within 1.3 K. But it warms the gas far out of its band: the minimum is 220.4 K at 21.6 s, and only 3 of the 12 gas points stay inside. Natural convection at about 100 W/(m² K) is what the gas asks for.
  • Not the dense-gas properties. As of 2026-11-21 the model takes the EOS's own c_p; what follows is the test that showed c_p was most of the difference, on the model of 2026-11-19. That model took Sutherland's viscosity, Pr = 0.72 and the ideal gas's c_p, and the turbulent coefficient goes as μ^(1/3) c_p Pr^(−2/3). With nitrogen's real properties from CoolProp the coefficient is 15–23 % higher in the first 10 s, mostly from the real c_p, and within 4 % after 40 s. Run that way (2026-11-19), the gas is up to 2.8 K warmer, still inside its band at all 12 points (minimum 200.0 K at 37.9 s), and the wall 0.26 K colder: a gap of 1.9 K rather than 2.2 K. Until 2026-11-19 this said the viscosity and Prandtl corrections cancel in μ^(1/3)(c_p/Pr)^(2/3); the c_p power was wrong.
  • Not the layer mean. Across the 1 mm inner layer the gradient is under 0.1 K.
  • Not the equation of state. The four below put the wall within 0.9 K of each other at 99 s (286.15 to 286.98 K, the ideal gas the warm one; 2026-11-21).
  • The late wall points at the material. By 99 s a 25 mm carbon-steel wall is nearly isothermal: the model's has given the gas 366 kJ/m², its mean is 4.05 K down and its inner surface 4.14 K. To put the surface at the middle of the measured band it would have to give 596 kJ/m², which would warm the gas out of its band. A wall that conducts less keeps its surface colder than its mean. With stainless steel's properties (k = 14.9 W/(m K), ρ = 7900 kg/m³, cp = 477 J/(kg K), as Park et al. assumed for their other vessel; 26-layer wall) the wall comes within 1.3 K, 2 of 12 points fall inside, and the wall warms again after 40 s (284.5 to 285.8 K at 99 s) as the measurement does. The gas stays inside its band, with a minimum of 196.4 K at 37.4 s, and the pressure RMS is 0.060. The sources say only "steel", so the case keeps carbon steel (k = 45) until the paper says which.
  • The first ten seconds are open. At 3.3 s the measured wall is already 1.3–1.9 K down, against 0.23 K in the model. A semi-infinite wall cools 1.55 K in 3.3 s only under a mean flux of 9.6 kW/m² (carbon steel) or 5.7 kW/m² (stainless); natural convection gives 1.1 kW/m². Either the discharge stirs the gas at the wall early on, which a natural-convection coefficient cannot see, or the wall thermocouples read part of the gas. The published bands cannot tell which. The other models miss it too: Park et al.'s Fig. 10(b) draws their model, BLOWDOWN and BLOW along the top edge of the wall band, at about 284–285 K from 30 s on (read by eye).

The equation of state

The same case at the same Cd on four equations of state (re-measured 2026-11-21 at Cd 0.732, run_validation.py --eos, CoolProp 8.0.0). The ideal gas has the case's R and cv, Redlich-Kwong its critical constants, and CoolProp's nitrogen (the reference equation of Span et al. 2000) comes in as a 128 × 128 table in (T, ρ). CoolProp is the reference.

The pressure relative to the CoolProp run, and the gas temperature, on four equations of state

Z at 150 bar, 290.15 K mass [kg] T after reversible expansion to 16.9 bar [K] RMS ln p gas inside p vs CoolProp T_gas vs CoolProp
ideal gas 1 15.54 155.5 0.110 7/12 −0.8 to +12.8 % −1.2 to +8.8 K
Redlich-Kwong 0.998 15.57 152.2 0.072 12/12 +1.5 to +2.9 % −0.4 to +2.5 K
Peng-Robinson 0.995 15.61 151.1 0.068 12/12 +1.0 to +3.5 % −0.6 to +1.4 K
CoolProp 1.018 15.26 151.2 0.068 12/12
  • The ideal gas fails on the cooling, not the mass. At the start it is as close to nitrogen's density as the cubics: all three hold about 2 % too much gas, the cubics because their Z is below 1 where nitrogen's is above. But expanded reversibly to 16.9 bar it is 4 K warmer than CoolProp's nitrogen. In the blowdown its gas runs up to 8.8 K warm, 5 of 12 gas points fall outside the band, and its pressure is up to 12.8 % high. A refitted Cd would take up part of the pressure, not that temperature.
  • The cubics agree with CoolProp within the band. Peng-Robinson stays within 3.5 % and 1.4 K, Redlich-Kwong within 2.9 % and 2.5 K. The measurement separates the ideal gas from the real gases but cannot rank the real ones.

What would close the gap

  • Read the experiment's own choke coefficient from Haque et al. (1992), instead of fitting it.
  • Read the vessel's material from the paper. Stainless steel instead of carbon steel narrows the wall's gap to 1.3 K and gives the late recovery, as above.
  • Find what cools the wall in the first seconds. A coefficient for the discharge's own stirring would be a new model, and it would have to leave the gas inside its band.
  • Run the horizontal vessel of the same paper (Park et al., Fig. 10(a)), which cools to 172–180 K. Its convection follows a different correlation.

Reproduce the figure

python scripts/validation_figures.py haque_i1
python scripts/validation_figures.py haque_i1_eos   # four runs, about ten minutes