Algorithm Search⌘K

Techniqueadvanced

Harten-Hyman entropy fix

Also called Harten-Hyman fix.

Modifies small wave speeds in the Roe flux so that transonic rarefactions do not become nonphysical expansion shocks.

The Roe solver upwinds each wave by the sign of its averaged speed λ^k\hat\lambda_k. Where a rarefaction is transonic, the characteristic speed goes from negative on its left to positive on its right, and λ^k\hat\lambda_k can be zero or nearly zero. The Roe flux then adds no dissipation for that wave, and a jump that should spread out as a fan can stay as an expansion shock, which violates the entropy condition. Harten and Hyman (1983) fixed this by looking at the speeds λl\lambda_l and λr\lambda_r on the two sides of the wave. If λl<0<λr\lambda_l < 0 < \lambda_r, the wave is treated as two parts that move at λl\lambda_l and λr\lambda_r, so some of it goes each way and the fan opens. The fix changes nothing where no wave is transonic, so the Roe flux keeps its exact shocks and contacts.

In plain words

A rarefaction is a wave that spreads out over time, like gas rushing into a lower pressure region. If the gas speed passes the speed of sound inside the wave, the wave sits across the cell face, with its left part moving left and its right part moving right. Roe's method looks only at one average speed for the whole wave. That average can be zero, and then the method thinks the wave does not move and keeps a sharp jump. The fix asks how fast the wave edges move. If one edge moves left and the other right, it sends part of the jump each way. The jump then breaks up into the smooth fan that physics wants.

When it applies

  • The scheme uses a linearized Riemann solver, Roe's or another, that upwinds each wave by the sign of one averaged speed.
  • The flux has a genuinely nonlinear field, where shocks and rarefactions occur. For the Euler equations these are the two acoustic fields u∓cu \mp c. Linearly degenerate fields such as the contact never need the fix.
  • The flow has a sonic point: a place where u−cu - c or u+cu + c changes sign inside a rarefaction. Signs in the output are a sharp density jump inside a rarefaction, a "dog leg" in the profile, or a jump that stays at rest where the exact solution is a fan.

The template

  1. ROE-FLUX-WITH-FIX(U_L, U_R)
  2. 1(λ̂_k, r_k, α_k) <- ROE-WAVES(U_L, U_R)
  3. 2for each nonlinear field k: λ_l <- λ_k(state left of wave k); λ_r <- λ_k(state right of wave k)
  4. 3if λ_l < 0 < λ_r: β <- (λ_r - λ̂_k)/(λ_r - λ_l); s_k <- (1 - β) λ_r - β λ_l ▷ HOLE: the fixed speed
  5. 4else s_k <- |λ̂_k|
  6. 5return (F(U_L) + F(U_R))/2 - (1/2) Σ_k s_k α_k r_k

The two holes are the side speeds of line L2 and the fixed speed of line L3.

  • Side speeds (line L2). The states on the two sides of wave kk are the states of the linear Riemann solution: ULU_L, UL+α1r1U_L + \alpha_1 r_1, UR−α3r3U_R - \alpha_3 r_3 and URU_R for the Euler equations. Then λl=λ1(UL)\lambda_l = \lambda_1(U_L) and λr=λ1(UL+α1r1)\lambda_r = \lambda_1(U_L + \alpha_1 r_1) for the left acoustic wave, and λl=λ3(UR−α3r3)\lambda_l = \lambda_3(U_R - \alpha_3 r_3), λr=λ3(UR)\lambda_r = \lambda_3(U_R) for the right one. For a scalar law, λl=f′(uL)\lambda_l = f'(u_L) and λr=f′(uR)\lambda_r = f'(u_R).
  • Fixed speed (line L3). The wave αkrk\alpha_k r_k is split into a part βαkrk\beta\alpha_k r_k that moves at λl\lambda_l and a part (1−β)αkrk(1 - \beta)\alpha_k r_k that moves at λr\lambda_r. The value of β\beta makes the mean speed equal to λ^k\hat\lambda_k: βλl+(1−β)λr=λ^k\beta\lambda_l + (1 - \beta)\lambda_r = \hat\lambda_k, which keeps property U and so keeps conservation. The flux FL+∑(left-going parts)F_L + \sum(\text{left-going parts}) is the form of line L5 with sks_k as given.

Why it works. Three facts follow from line L3 by short algebra.

  1. It only adds dissipation, when λ^k\hat\lambda_k lies between λl\lambda_l and λr\lambda_r. Then β∈[0,1]\beta \in [0, 1] and sk=(1−β)∣λr∣+β∣λl∣≥∣βλl+(1−β)λr∣=∣λ^k∣s_k = (1 - \beta)|\lambda_r| + \beta|\lambda_l| \ge |\beta\lambda_l + (1 - \beta)\lambda_r| = |\hat\lambda_k| by the triangle inequality.
  2. It does not touch an admissible shock. At a Lax shock of field kk the characteristics go into the shock, so λl>λr\lambda_l > \lambda_r, and the test λl<0<λr\lambda_l < 0 < \lambda_r fails. The Roe flux, which is exact for a single shock, is used. A shock at rest stays exact.
  3. For Burgers' equation it gives an E-scheme. With f=u2/2f = u^2/2, λl=uL\lambda_l = u_L, λr=uR\lambda_r = u_R and λ^=(uL+uR)/2\hat\lambda = (u_L + u_R)/2, so β=12\beta = \frac12 and s=(uR−uL)/2s = (u_R - u_L)/2. For uL<0<uRu_L < 0 < u_R the flux is 14(uL2+uR2)−14(uR−uL)2=12uLuR\frac14(u_L^2 + u_R^2) - \frac14(u_R - u_L)^2 = \frac12 u_L u_R. That is the HLL flux with SL=uLS_L = u_L and SR=uRS_R = u_R. It satisfies F≤f(u)F \le f(u) for every uu between uLu_L and uRu_R, because 12uLuR<0≤12u2\frac12 u_L u_R < 0 \le \frac12 u^2. In every other case the Roe flux of Burgers' equation is the Godunov flux. So the fixed scheme is an E-scheme, and by Osher's theorem (LeVeque 2002, Section 12.7) its limits satisfy the entropy condition.

For systems there is no such theorem. The fix removes the expansion shocks in the tests below, and the measured jump inside the fan shrinks with the cell size.

Classic examples

The numbers below are measurements made with the code in impl/python/ (Roe flux, forward Euler, Courant number 0.9, outflow boundaries).

  • Burgers' equation, uL=−1u_L = -1, uR=1u_R = 1. Without the fix, a=0a = 0, every face has the flux 12\frac12 and the jump never moves: the L1L^1 error against the fan u=x/tu = x/t on [−1,1][-1, 1] at t=0.5t = 0.5 is 0.50.5 for every grid. With the fix, the center face has the flux −12-\frac12, the jump opens, and the error is 0.04350.0435, 0.02730.0273 and 0.01680.0168 for 50, 100 and 200 cells. The test checks F=12uLuRF = \frac12 u_L u_R exactly in Fraction arithmetic on 50 random pairs.
  • Euler equations, shocks at rest. A Mach 2 shock at rest, WL=(ρ,u,p)=(1,21.4,1)W_L = (\rho, u, p) = (1, 2\sqrt{1.4}, 1) and WR=(8/3,0.88741,4.5)W_R = (8/3, 0.88741, 4.5), is kept to 10−1210^{-12} over 30 steps with the fix, as without it: here λl=1.18322>0>λr=−0.64963\lambda_l = 1.18322 > 0 > \lambda_r = -0.64963. With the two states swapped, the jump is an expansion shock at rest. The plain Roe scheme keeps it to 10−1210^{-12}. With the fix, λl=−0.64963<0<λr=1.18322\lambda_l = -0.64963 < 0 < \lambda_r = 1.18322, and after 30 steps the density has changed by more than 0.3.
  • Sod's tube with uL=0.75u_L = 0.75 (the first test of Toro 2009): WL=(1,0.75,1)W_L = (1, 0.75, 1) and WR=(0.125,0,0.1)W_R = (0.125, 0, 0.1), the jump at x=0.3x = 0.3, t=0.2t = 0.2. The left rarefaction is transonic: its head moves at −0.43322-0.43322 and the exact solution has its sonic point at x/t=0x/t = 0. Without the fix, the largest density drop between two neighbor cells inside the fan is 0.130, 0.123 and 0.122 on 100, 200 and 400 cells: a jump that does not shrink. With the fix it is 0.047, 0.025 and 0.013, halving with the cell size. The L1L^1 density error goes from 0.01315, 0.00907, 0.00681 to 0.01187, 0.00773, 0.00546. On 100 cells, the densities in cells 27 to 34 (counting from 1 at the left) are 0.857,0.835,0.814,0.798,0.668,0.663,0.652,0.6390.857, 0.835, 0.814, 0.798, 0.668, 0.663, 0.652, 0.639 without the fix and 0.849,0.823,0.796,0.766,0.719,0.688,0.665,0.6460.849, 0.823, 0.796, 0.766, 0.719, 0.688, 0.665, 0.646 with it.
  • Sod's tube as given. The rarefaction is not transonic (its tail moves at −0.0703-0.0703), so the fix gives the same flux as plain Roe. The test checks this at the first face.

Variations

  • Harten's fix with a parameter. Harten (1983) replaced ∣λ∣|\lambda| by (λ2+δ2)/(2δ)(\lambda^2 + \delta^2)/(2\delta) when ∣λ∣<δ|\lambda| < \delta, with a fixed small δ\delta. It is simpler but adds dissipation at every slow wave, contacts and shocks included, and δ\delta is a free choice that the user must tune.
  • A data-dependent threshold. A common simple form sets δk=max⁡(0,λ^k−λl,λr−λ^k)\delta_k = \max(0, \hat\lambda_k - \lambda_l, \lambda_r - \hat\lambda_k) and replaces ∣λ^k∣|\hat\lambda_k| by δk\delta_k when ∣λ^k∣<δk|\hat\lambda_k| < \delta_k. It uses the same side speeds as line L2, and some texts also call it the Harten-Hyman fix.
  • HLL in place of Roe. The HLL solver opens transonic rarefactions without any fix, at the cost of smearing contacts.
  • Entropy stable fluxes. An entropy stable scheme builds a flux with a proven entropy inequality for the system, for example an entropy conservative flux plus a dissipation matrix.

Pitfalls

  • λ^k\hat\lambda_k outside [λl,λr][\lambda_l, \lambda_r]. With Roe averages this can happen: at the first face of the transonic Sod test, λl=−0.43322\lambda_l = -0.43322, λr=0.04402\lambda_r = 0.04402 and λ^1=−0.60718\hat\lambda_1 = -0.60718, so β=1.36453\beta = 1.36453 and line L3 gives s1=0.57509s_1 = 0.57509, less than ∣λ^1∣|\hat\lambda_1|. The split then has a part with negative weight. The flux is still conservative and the run above is clean, but fact 1 does not hold there. Some codes clamp β\beta to [0,1][0, 1].
  • Side speeds from the wrong states. Taking λr=λ1(UR)\lambda_r = \lambda_1(U_R) for the left acoustic wave mixes in the other waves. Use the intermediate states of the linear solution.
  • A fix on the contact. The contact field is linearly degenerate, so λl=λr\lambda_l = \lambda_r and no expansion shock can form. A fix there only smears the contact.
  • A fixed δ\delta that is too large. With Harten's parameter form, a large δ\delta makes the scheme as diffusive as a Rusanov flux on slow waves. A small one does not remove the glitch. The value is a choice that must be tuned for each problem.
  • Negative pressure in the side states. The intermediate states UL+α1r1U_L + \alpha_1 r_1 and UR−α3r3U_R - \alpha_3 r_3 can have negative pressure near vacuum. The code then takes c=0c = 0 for the side speed, which is a guard, not a cure: near vacuum use HLL.

Code

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

harten_hyman_entropy_fix.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/harten-hyman-entropy-fix/. The authors are listed in prov/QYXKT4.jsonl.

"""The Roe flux for the 1D Euler equations with the Harten-Hyman entropy fix (Harten and Hyman 1983).

At a transonic wave, where the speed is negative on the left of the wave and positive on its
right, the wave is split into two parts that move at the two side speeds. In the flux this
replaces |lambda| by (1 - beta) lambda_r - beta lambda_l with beta = (lambda_r - lambda) / (lambda_r - lambda_l).
"""

from math import sqrt

GAMMA = 1.4


def prim_to_cons(w, g=GAMMA):
    rho, u, p = w
    return (rho, rho * u, p / (g - 1.0) + 0.5 * rho * u * u)


def cons_to_prim(q, g=GAMMA):
    rho, m, e = q
    u = m / rho
    return (rho, u, (g - 1.0) * (e - 0.5 * m * u))


def euler_flux(q, g=GAMMA):
    rho, m, e = q
    u = m / rho
    p = (g - 1.0) * (e - 0.5 * m * u)
    return (m, m * u + p, u * (e + p))


def roe_waves(ql, qr, g=GAMMA):
    """Eigenvalues, right eigenvectors and wave strengths of the Roe matrix."""
    rl, ul, pl = cons_to_prim(ql, g)
    rr, ur, pr = cons_to_prim(qr, g)
    wl, wr = sqrt(rl), sqrt(rr)
    u = (wl * ul + wr * ur) / (wl + wr)
    h = (wl * (ql[2] + pl) / rl + wr * (qr[2] + pr) / rr) / (wl + wr)
    c = sqrt((g - 1.0) * (h - 0.5 * u * u))
    lam = (u - c, u, u + c)
    vecs = ((1.0, u - c, h - u * c), (1.0, u, 0.5 * u * u), (1.0, u + c, h + u * c))
    d0, d1, d2 = (b - a for a, b in zip(ql, qr))
    a2 = (g - 1.0) / (c * c) * (d0 * (h - u * u) + u * d1 - d2)
    a1 = (d0 * (u + c) - d1 - c * a2) / (2.0 * c)
    return lam, vecs, (a1, a2, d0 - a1 - a2)


def fixed_speed(lam, lam_l, lam_r):
    """The Harten-Hyman value that replaces |lam| for a wave with side speeds lam_l and lam_r."""
    if lam_l < 0 < lam_r:  # @line L3
        beta = (lam_r - lam) / (lam_r - lam_l)
        return (1 - beta) * lam_r - beta * lam_l
    return abs(lam)  # @line L4


def side_speeds(ql, qr, lam, vecs, alpha, g=GAMMA):
    """Speeds of the acoustic waves 1 and 3 on both sides, from the states of the linear solution."""
    q1 = tuple(a + alpha[0] * r for a, r in zip(ql, vecs[0]))  # between waves 1 and 2
    q2 = tuple(b - alpha[2] * r for b, r in zip(qr, vecs[2]))  # between waves 2 and 3

    def speeds(q):
        rho, u, p = cons_to_prim(q, g)
        c = sqrt(g * max(p, 0.0) / rho)
        return u - c, u + c

    return (speeds(ql)[0], speeds(q1)[0]), (speeds(q2)[1], speeds(qr)[1])


def roe_flux(ql, qr, g=GAMMA, fix=True):
    """The Roe flux, with the Harten-Hyman fix on the two acoustic waves when fix is True."""
    lam, vecs, alpha = roe_waves(ql, qr, g)  # @line L1
    mod = [abs(x) for x in lam]
    if fix:
        (l1, r1), (l3, r3) = side_speeds(ql, qr, lam, vecs, alpha, g)  # @line L2
        mod[0] = fixed_speed(lam[0], l1, r1)
        mod[2] = fixed_speed(lam[2], l3, r3)
    fl, fr = euler_flux(ql, g), euler_flux(qr, g)
    return tuple(0.5 * (fl[i] + fr[i]) - 0.5 * sum(mod[k] * alpha[k] * vecs[k][i] for k in range(3)) for i in range(3))  # @line L5


def roe_scalar(ul, ur, f, df, fix=True):
    """The Murman-Roe flux for a scalar convex law, with the fix when fix is True."""
    a = (f(ur) - f(ul)) / (ur - ul) if ur != ul else df(ul)  # @line L1
    s = fixed_speed(a, df(ul), df(ur)) if fix else abs(a)  # @line L2
    return (f(ul) + f(ur)) / 2 - s * (ur - ul) / 2  # @line L5


def step(cells, dt, dx, flux):
    """One forward Euler step with one outflow ghost cell on each side."""
    ext = [cells[0]] + list(cells) + [cells[-1]]
    faces = [flux(ext[j], ext[j + 1]) for j in range(len(ext) - 1)]
    lam = dt / dx
    if isinstance(cells[0], tuple):
        return [tuple(q - lam * (b - a) for q, a, b in zip(cells[j], faces[j], faces[j + 1])) for j in range(len(cells))]
    return [cells[j] - lam * (faces[j + 1] - faces[j]) for j in range(len(cells))]


def solve_euler(cells, dx, t_end, cfl=0.9, g=GAMMA, fix=True):
    """March to t_end with dt = cfl dx / max(|u| + c). Returns (cells, number of steps)."""
    t, n = 0.0, 0
    flux = lambda a, b: roe_flux(a, b, g, fix)
    while t < t_end - 1e-14:
        smax = 0.0
        for q in cells:
            rho, u, p = cons_to_prim(q, g)
            smax = max(smax, abs(u) + sqrt(g * p / rho))
        dt = min(cfl * dx / smax, t_end - t)
        cells = step(cells, dt, dx, flux)
        t += dt
        n += 1
    return cells, n
test_harten_hyman_entropy_fix.py 117 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/harten-hyman-entropy-fix/. The authors are listed in prov/QYXKT4.jsonl.

import random
from fractions import Fraction
from math import sqrt

from harten_hyman_entropy_fix import (
    cons_to_prim,
    euler_flux,
    fixed_speed,
    prim_to_cons,
    roe_flux,
    roe_scalar,
    solve_euler,
    step,
)

BURGERS = (lambda v: v * v / 2), (lambda v: v)
TORO1 = ((1.0, 0.75, 1.0), (0.125, 0.0, 0.1))  # Sod's tube with u_L = 0.75: the rarefaction is transonic


def normal_shock(mach, g=1.4):
    """A shock at rest: the supersonic state (1, M c, 1) and the subsonic state behind it."""
    u = mach * sqrt(g)
    r = (g + 1.0) * mach**2 / ((g - 1.0) * mach**2 + 2.0)
    p = (2.0 * g * mach**2 - (g - 1.0)) / (g + 1.0)
    return (1.0, u, 1.0), (r, u / r, p)


def run_steps(cells, n, fix, cfl=0.9):
    dx = 1.0 / len(cells)
    for _ in range(n):
        smax = max(abs(cons_to_prim(q)[1]) + sqrt(1.4 * cons_to_prim(q)[2] / q[0]) for q in cells)
        cells = step(cells, cfl * dx / smax, dx, lambda a, b: roe_flux(a, b, fix=fix))
    return cells


def burgers_rarefaction_l1(m, fix, t=0.5):
    """L1 error on [-1, 1] for u_L = -1, u_R = 1 against the exact fan u = x / t."""
    f, df = BURGERS
    dx = 2.0 / m
    u = [-1.0 if (j + 0.5) * dx < 1.0 else 1.0 for j in range(m)]
    s = 0.0
    while s < t - 1e-14:
        dt = min(0.9 * dx / max(abs(v) for v in u), t - s)
        u = step(u, dt, dx, lambda a, b: roe_scalar(a, b, f, df, fix))
        s += dt
    exact = [sum(max(-1.0, min(1.0, (-1.0 + (j + (k + 0.5) / 16) * dx) / t)) for k in range(16)) / 16 for j in range(m)]
    return sum(abs(a - b) for a, b in zip(u, exact)) * dx


def largest_drop_in_fan(m, fix):
    """The largest density drop between two neighbor cells in the rarefaction of TORO1 at t = 0.2."""
    cells = [prim_to_cons(TORO1[0] if (j + 0.5) / m < 0.3 else TORO1[1]) for j in range(m)]
    cells, _ = solve_euler(cells, 1.0 / m, 0.2, fix=fix)
    return max(cells[j][0] - cells[j + 1][0] for j in range(int(0.1 * m), int(0.4 * m)))


def test_fixed_speed_is_never_smaller_than_the_roe_speed() -> None:
    rng = random.Random(5)
    for _ in range(200):
        lam_l, lam_r = rng.uniform(-2, 0), rng.uniform(0, 2)
        lam = rng.uniform(lam_l, lam_r)
        assert fixed_speed(lam, lam_l, lam_r) >= abs(lam) - 1e-15
    assert fixed_speed(0.3, 0.5, 1.0) == 0.3 and fixed_speed(-0.3, -1.0, -0.5) == 0.3  # no sonic point: no change


def test_burgers_transonic_flux_is_half_ul_ur() -> None:
    f, df = BURGERS
    assert roe_scalar(-1.0, 1.0, f, df, fix=False) == 0.5  # Roe alone: f(-1) = f(1), the jump stays
    assert roe_scalar(-1.0, 1.0, f, df) == -0.5
    rng = random.Random(6)
    for _ in range(50):
        ul, ur = Fraction(-rng.randint(1, 20), 7), Fraction(rng.randint(1, 20), 7)
        assert roe_scalar(ul, ur, f, df) == ul * ur / 2  # the HLL flux with S_L = u_L and S_R = u_R


def test_burgers_expansion_shock_opens_into_the_fan() -> None:
    assert burgers_rarefaction_l1(100, fix=False) == 0.5  # the expansion shock does not move at all
    e1, e2 = burgers_rarefaction_l1(100, fix=True), burgers_rarefaction_l1(200, fix=True)
    assert e1 < 0.03 and e2 < 0.018 and e2 < e1


def test_admissible_shock_at_rest_is_still_exact() -> None:
    a, b = normal_shock(2.0)
    cells = [prim_to_cons(a if j < 20 else b) for j in range(40)]
    out = run_steps(cells, 30, fix=True)
    assert all(abs(x - y) < 1e-12 for p, q in zip(cells, out) for x, y in zip(p, q))


def test_expansion_shock_at_rest_is_broken() -> None:
    a, b = normal_shock(2.0)
    cells = [prim_to_cons(b if j < 20 else a) for j in range(40)]
    kept = run_steps(cells, 30, fix=False)
    assert all(abs(x - y) < 1e-12 for p, q in zip(cells, kept) for x, y in zip(p, q))
    fixed = run_steps(cells, 30, fix=True)
    assert max(abs(p[0] - q[0]) for p, q in zip(cells, fixed)) > 0.3


def test_no_change_without_a_sonic_point() -> None:
    ql, qr = prim_to_cons((1.0, 0.0, 1.0)), prim_to_cons((0.125, 0.0, 0.1))  # Sod: the fan is not transonic
    assert roe_flux(ql, qr) == roe_flux(ql, qr, fix=False)


def test_consistency() -> None:
    rng = random.Random(1)
    for _ in range(50):
        q = prim_to_cons((rng.uniform(0.1, 2), rng.uniform(-2, 2), rng.uniform(0.1, 2)))
        assert all(abs(a - b) < 1e-12 for a, b in zip(roe_flux(q, q), euler_flux(q)))


def test_glitch_in_the_transonic_rarefaction() -> None:
    d100, d200 = largest_drop_in_fan(100, False), largest_drop_in_fan(200, False)
    assert d100 > 0.1 and d200 > 0.1  # without the fix: a jump that does not shrink
    f100, f200 = largest_drop_in_fan(100, True), largest_drop_in_fan(200, True)
    assert f100 < 0.05 and f200 < 0.03 and f200 < 0.6 * f100  # with the fix: it shrinks with the cell size

Exercises

  1. Show that for a scalar convex law, with λl=f′(uL)\lambda_l = f'(u_L) and λr=f′(uR)\lambda_r = f'(u_R), the fixed flux for uL<uRu_L < u_R with f′(uL)<0<f′(uR)f'(u_L) < 0 < f'(u_R) equals the HLL flux with SL=f′(uL)S_L = f'(u_L) and SR=f′(uR)S_R = f'(u_R).
  2. For the Mach 2 shock at rest above, compute λl\lambda_l and λr\lambda_r of the acoustic wave that carries the jump, and check that the fix leaves the flux unchanged.
  3. Run the transonic Sod test with Harten's parameter form for δ=0.05\delta = 0.05, 0.20.2 and 0.50.5, and compare the jump inside the fan and the width of the contact with the results above.

References

  1. Amiram Harten and James M. Hyman, Self adjusting grid methods for one-dimensional hyperbolic conservation laws, Journal of Computational Physics 50(2) (1983) 235-269, the entropy fix for Roe's scheme with speeds taken on the two sides of each wave; doi:10.1016/0021-9991(83)90066-9
  2. Randall J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge University Press, 2002, Section 12.3 (transonic rarefactions and an entropy fix for scalar laws), Section 12.7 (E-schemes), Section 15.3 (approximate Riemann solvers for systems, with the Harten-Hyman entropy fix)
  3. Eleuterio F. Toro, Riemann Solvers and Numerical Methods for Fluid Dynamics, third edition, Springer, 2009, Chapter 11 (the Roe solver and the entropy fix of Harten and Hyman)
  4. Ami Harten, High resolution schemes for hyperbolic conservation laws, Journal of Computational Physics 49 (1983) 357-393, the earlier entropy fix with a fixed parameter delta in the numerical viscosity; doi:10.1016/0021-9991(83)90136-5
  5. P. L. Roe, Approximate Riemann solvers, parameter vectors, and difference schemes, Journal of Computational Physics 43(2) (1981) 357-372, the linearized solver that the fix modifies; doi:10.1016/0021-9991(81)90128-5

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW3 standard
  • five exercises