STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_solver_record Namespace Reference

Functions

 _press_and_burn ()
None test_every_tick_is_recorded_and_converged ()
None test_the_mass_that_moved_is_the_mass_that_crossed_or_was_guarded ()
None test_a_leak_shows_up (pytest.MonkeyPatch monkeypatch)
None test_the_chamber_closure_is_recorded_below_its_tolerance ()

Variables

 state

Detailed Description

The solver tab's record (feedtwin.session.diagnostics): residuals per tick, and a
mass balance that a leak cannot hide from.

Checked against conservation itself: through a press and a burn, everything the
vessels gained or lost is either what crossed the boundary (engine, vents, the
built-in loads) or what the vessels' own guards booked -- to rounding. And the
check can fail: a bottle that quietly loses gas shows up as unexplained mass.

Function Documentation

◆ _press_and_burn()

test_solver_record._press_and_burn ( )
protected

◆ test_a_leak_shows_up()

None test_solver_record.test_a_leak_shows_up ( pytest.MonkeyPatch monkeypatch)
The check can fail: a bottle that loses a milligram a step it books
nowhere is mass the balance cannot explain.

Definition at line 52 of file test_solver_record.py.

◆ test_every_tick_is_recorded_and_converged()

None test_solver_record.test_every_tick_is_recorded_and_converged ( )

Definition at line 34 of file test_solver_record.py.

References _press_and_burn(), and max.

◆ test_the_chamber_closure_is_recorded_below_its_tolerance()

None test_solver_record.test_the_chamber_closure_is_recorded_below_its_tolerance ( )

Definition at line 73 of file test_solver_record.py.

References max.

◆ test_the_mass_that_moved_is_the_mass_that_crossed_or_was_guarded()

None test_solver_record.test_the_mass_that_moved_is_the_mass_that_crossed_or_was_guarded ( )

Definition at line 43 of file test_solver_record.py.

References _press_and_burn().

Variable Documentation

◆ state

test_solver_record.state
Initial value:
1= type(self.state)(
2 mass=self.state.mass - 1e-6,
3 energy=self.state.energy,
4 wall_temperature=self.state.wall_temperature,
5 )

Definition at line 59 of file test_solver_record.py.