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

Functions

 _python_physics (monkeypatch)
 _series (times, mutate=None)
 burn ()
 test_exit_does_not_recede_on_a_non_ablative_nozzle (burn)
 test_exit_recedes_when_the_nozzle_is_ablative ()
 test_t0_geometry_is_the_design (burn)
 test_thrust_is_computed_on_the_geometry_pc_was_solved_on (burn)
 test_solver_reports_the_solved_efficiency ()
 test_a_thinner_insert_runs_hotter_and_recedes_faster ()
 test_liner_waits_for_its_ablation_temperature (burn)
 test_state_is_physical (burn)
 test_soak_back_after_shutdown ()
 test_legacy_geometry_helper_grows_from_the_declared_volume ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 CFG = os.path.join(ROOT, "configs", "ethalox_6500N.yaml")
float PSI = 6894.757293168361
float P_TANK = 584.27 * PSI

Detailed Description

The time-varying solve's wall, geometry and bookkeeping (TH-6, TH-8, TH-9, CN-7, TH-12, TH-2).

What each test guards, and what the code did before:
  * the nozzle exit stayed put only on paper: it grew at the chamber liner's rate even with
    ``nozzle_ablative: false`` (eps rose 10 % over the burn);
  * t = 0 rebuilt the chamber as a full-bore cylinder of cg.length (L* 1.08 for a 1.00 design);
  * thrust used the post-step throat while Pc was solved on the pre-step one;
  * the graphite surface was the caller's 2000 K guess and the insert conducted steadily into a
    300 K sink, so a 3 mm and a 12 mm insert burned identically;
  * the state carried a 2 GW/m^2 "nozzle heat flux", an 86,000 K nozzle wall and 3e7 K case.

Function Documentation

◆ _python_physics()

test_time_varying_thermal._python_physics ( monkeypatch)
protected

Definition at line 32 of file test_time_varying_thermal.py.

◆ _series()

test_time_varying_thermal._series ( times,
mutate = None )
protected

◆ burn()

test_time_varying_thermal.burn ( )

Definition at line 46 of file test_time_varying_thermal.py.

References _series().

◆ test_a_thinner_insert_runs_hotter_and_recedes_faster()

test_time_varying_thermal.test_a_thinner_insert_runs_hotter_and_recedes_faster ( )

Definition at line 108 of file test_time_varying_thermal.py.

References _series().

◆ test_exit_does_not_recede_on_a_non_ablative_nozzle()

test_time_varying_thermal.test_exit_does_not_recede_on_a_non_ablative_nozzle ( burn)

Definition at line 51 of file test_time_varying_thermal.py.

◆ test_exit_recedes_when_the_nozzle_is_ablative()

test_time_varying_thermal.test_exit_recedes_when_the_nozzle_is_ablative ( )

Definition at line 61 of file test_time_varying_thermal.py.

References _series().

◆ test_legacy_geometry_helper_grows_from_the_declared_volume()

test_time_varying_thermal.test_legacy_geometry_helper_grows_from_the_declared_volume ( )
The non-coupled path's helper: a micron of recession must not jump the volume to a
full-bore cylinder of cg.length (+8 % on this chamber).

Definition at line 163 of file test_time_varying_thermal.py.

◆ test_liner_waits_for_its_ablation_temperature()

test_time_varying_thermal.test_liner_waits_for_its_ablation_temperature ( burn)
The cold liner first has to heat to its ablation temperature -- semi-infinite onset
t = (pi/4) k rho c (T_abl - T0)^2 / q^2, a few tenths of a second here -- so the first
0.25 s recedes far less than steady ablation would; by 2 s it ablates at the Landau rate.

Definition at line 120 of file test_time_varying_thermal.py.

◆ test_soak_back_after_shutdown()

test_time_varying_thermal.test_soak_back_after_shutdown ( )

Definition at line 150 of file test_time_varying_thermal.py.

◆ test_solver_reports_the_solved_efficiency()

test_time_varying_thermal.test_solver_reports_the_solved_efficiency ( )

Definition at line 91 of file test_time_varying_thermal.py.

◆ test_state_is_physical()

test_time_varying_thermal.test_state_is_physical ( burn)

Definition at line 138 of file test_time_varying_thermal.py.

◆ test_t0_geometry_is_the_design()

test_time_varying_thermal.test_t0_geometry_is_the_design ( burn)

Definition at line 68 of file test_time_varying_thermal.py.

◆ test_thrust_is_computed_on_the_geometry_pc_was_solved_on()

test_time_varying_thermal.test_thrust_is_computed_on_the_geometry_pc_was_solved_on ( burn)

Definition at line 75 of file test_time_varying_thermal.py.

Variable Documentation

◆ CFG

test_time_varying_thermal.CFG = os.path.join(ROOT, "configs", "ethalox_6500N.yaml")

Definition at line 26 of file test_time_varying_thermal.py.

◆ P_TANK

float test_time_varying_thermal.P_TANK = 584.27 * PSI

Definition at line 28 of file test_time_varying_thermal.py.

◆ PSI

float test_time_varying_thermal.PSI = 6894.757293168361

Definition at line 27 of file test_time_varying_thermal.py.

◆ ROOT

test_time_varying_thermal.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Definition at line 25 of file test_time_varying_thermal.py.