← Back to the lab

Data

Desulfurization digital twin (4/5): how far to trust the simulation? Mesh study and sweep

The same ladle on three meshes, the grid convergence index (GCI) computed step by step, and a sweep of gas flow against lance depth that ends in a power law with the one-third exponent predicted by plume theory.

By ·

A CFD simulation always produces numbers, and the numbers always look precise. The awkward question is a different one: if I make the mesh finer, does the result change? If it changes a lot, part of what I am seeing is the mesh, not the physics. This post is the least flashy part of the series and the one I care about most: measuring how far to trust the CFD from the previous post before drawing conclusions from it.

Three metrics to summarize a ladle

A 3D field has millions of numbers. To compare meshes and cases I summarized them in three, all on the mean flow between 20 and 60 s:

  • Mean speed of the hot metal, averaged over the whole metal volume.
  • p95 speed: the value exceeded by only 5 % of the metal. It measures the intensity of the most agitated zone.
  • Plume fraction: the share of the metal volume where the gas fraction exceeds 0.1 %.

The mesh study

I ran the base case on three meshes, each about 3 to 8 times larger than the previous one:

MeshCellsMean speedp95Plume fraction
coarse19,4563.28 cm/s11.77 cm/s9.35 %
medium153,3443.21 cm/s10.92 cm/s4.39 %
fine515,5202.60 cm/s8.46 cm/s4.20 %

At a glance, the plume settles and the speeds do not. The procedure of Celik and colleagues (2008), the standard that fluids-engineering journals ask for, turns that impression into numbers.

Step 1. Refinement ratios

r21=(N1N2)1/3=(515 520153 344)1/3=1.498,r32=(153 34419 456)1/3=1.990r_{21} = \left(\frac{N_1}{N_2}\right)^{1/3} = \left(\frac{515\,520}{153\,344}\right)^{1/3} = 1.498, \qquad r_{32} = \left(\frac{153\,344}{19\,456}\right)^{1/3} = 1.990

Celik asks for r>1.3r > 1.3 so that the difference between meshes stands out from noise. Both meet it.

Step 2. Does it converge? The ratio of changes

R=ε21ε32{0<R<1monotonic convergence: each refinement changes lessR<0oscillatory: the result goes up and downR>1divergent: refining changes more and moreR = \frac{\varepsilon_{21}}{\varepsilon_{32}} \qquad \begin{cases} 0 < R < 1 & \text{monotonic convergence: each refinement changes less} \\ R < 0 & \text{oscillatory: the result goes up and down} \\ R > 1 & \text{divergent: refining changes more and more} \end{cases}

Step 3. If it converges: order, extrapolation and uncertainty

The apparent order pp tells how fast the result approaches that of an infinitely fine mesh. Since r21r_{21} and r32r_{32} differ, it comes from an implicit equation solved by iteration:

p=∣ln⁡∣ε32/ε21∣+q(p)∣ln⁡r21,q(p)=ln⁡r21 p−sr32 p−s,s=sign⁡ ⁣(ε32ε21)p = \frac{\left|\ln\left|\varepsilon_{32}/\varepsilon_{21}\right| + q(p)\right|}{\ln r_{21}}, \qquad q(p) = \ln\frac{r_{21}^{\,p} - s}{r_{32}^{\,p} - s}, \qquad s = \operatorname{sign}\!\left(\frac{\varepsilon_{32}}{\varepsilon_{21}}\right)

With pp we extrapolate the infinite-mesh value (Richardson extrapolation) and compute the grid convergence index, the numerical uncertainty of the fine mesh:

ϕext=r21 p ϕ1−ϕ2r21 p−1,ea=∣ϕ1−ϕ2ϕ1∣,GCIfine=1.25 ear21 p−1\phi_{ext} = \frac{r_{21}^{\,p}\,\phi_1 - \phi_2}{r_{21}^{\,p} - 1}, \qquad e_a = \left|\frac{\phi_1 - \phi_2}{\phi_1}\right|, \qquad GCI_{fine} = \frac{1.25\,e_a}{r_{21}^{\,p} - 1}

The 1.25 is a safety factor.

Try the three metrics: the chart plots each value against relative cell size, and the verdict comes from the calculation above.

Mesh study and GCI

© Gersaín Barrón Velázquez · gersadesign.com

Do the nozzles matter?

In the base case argon enters through the two nozzles angled at 45°, as in the plant. To see how much that detail weighs, I ran a fine-mesh variant where the gas enters through the face of the lance tip:

Fine meshMean speedp95Plume fraction
with both nozzles2.64 cm/s7.44 cm/s4.67 %
inlet through the tip2.60 cm/s8.46 cm/s4.20 %

Mean speed barely changes; the nozzles spread the gas sideways, the plume opens a little and the speed peaks drop 12 %.

The sweep: flow rate by depth

With confidence bounded, the next step is to ask how the ladle responds to what the operator does control: how much gas to inject and how deep to put the lance. I ran nine cases on the medium mesh: flow 0.5, 1 and 2 times the paper’s, with the lance at 1.5, 2.0 and 2.5 m.

To summarize nine cases in one formula I propose a power law:

v=C Qa hbv = C\,Q^{a}\,h^{b}

Taking logarithms makes it linear in the parameters, and it is fitted by ordinary least squares:

ln⁡v=ln⁡C+a ln⁡Q+b ln⁡h⟹min⁡ln⁡C, a, b ∑j=19(ln⁡vj−ln⁡C−aln⁡Qj−bln⁡hj)2\ln v = \ln C + a\,\ln Q + b\,\ln h \qquad\Longrightarrow\qquad \min_{\ln C,\,a,\,b}\ \sum_{j=1}^{9}\left(\ln v_j - \ln C - a\ln Q_j - b\ln h_j\right)^2

The one-third exponent

The flow exponent, 0.33, is no accident. An energy argument explains it: the rising gas releases buoyancy power proportional to ρl g Q h\rho_l\,g\,Q\,h. If that power is dissipated in eddies of size LL in a volume VV, dissipation per unit mass is ε∼u3/L\varepsilon \sim u^3/L, so

ρl g Q hρl V∼u3L⟹u∼(g Q h LV)1/3∝Q1/3\frac{\rho_l\,g\,Q\,h}{\rho_l\,V} \sim \frac{u^3}{L} \quad\Longrightarrow\quad u \sim \left(\frac{g\,Q\,h\,L}{V}\right)^{1/3} \propto Q^{1/3}

The CFD gives Q0.33Q^{0.33}, exactly what the argument predicts and what classical bubble-plume theory says. Doubling the gas only raises speed by 26 % (21/3=1.262^{1/3} = 1.26).

Depth, on the other hand, weighs much more than the argument predicts (h1.14h^{1.14} instead of h1/3h^{1/3}). That suggests depth does not only change the energy: it changes the geometry of the flow, because a deeper lance sets the metal at the bottom circulating, metal that would otherwise sit still. That is the question of the last post.

Gas flow × lance depth sweep

© Gersaín Barrón Velázquez · gersadesign.com

What comes next

In the last post I use the mean flow for what matters most to the process: following the metal. I integrate streamlines with Runge–Kutta, release a virtual dye and measure the dead zones, the metal the powder barely reaches.

Opened on the sweep case with the lance at 1.5 m and twice the gas. Switch cases in the selector to go through all nine and compare them with the base case. · Open full screen

The full twin, with the nine sweep cases in the 3D explorer, is on this page.