32 edge = burning(4.0, 1.0, RANGE)
33 assert burning(4.0 + 1e-9, 1.0, RANGE) == pytest.approx(edge)
34 assert burning(1.0, 1e-6, RANGE) == pytest.approx(5e-6),
"fuel gone, nothing burns"
49 monkeypatch: pytest.MonkeyPatch,
53 monkeypatch.setattr(module,
"CEATable", _Flat)
55 rich = chamber.evaluate(mdot_oxidiser=2.0, mdot_fuel=0.05)
56 burned = 0.05 * (1.0 + 4.0)
57 assert rich.pressure == pytest.approx(burned * 1600.0 / 5e-4)
58 clamped = 2.05 * 1600.0 / 5e-4
59 assert rich.pressure < 0.2 * clamped