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

Functions

 cfg ()
 test_time_varying_t0_matches_steady_thrust (cfg)
 test_explicit_ambient_is_respected (cfg)

Variables

 _CFG = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "configs", "ethalox_180lb_8to1.yaml")
float _PSI = 6894.757

Detailed Description

The time-varying solver must fire the nozzle into the same sky as the steady solve.

Found while integrating a flat dome-regulated burn: ``evaluate_arrays_with_time`` reported
6344.1 N at t=0 where ``evaluate()`` reported 6405.5 N for the same tank pressures and the
same geometry. Pc, mdot, O/F and c* agreed to four figures -- only thrust differed, by exactly
``(101325 - P_a(site)) * A_exit`` = 61.35 N. ``TimeVaryingCoupledSolver.solve_time_step``
hardcoded ``Pa = 101325.0`` while the steady path derives ambient from
``environment.elevation``. Every time-series thrust, impulse and burn-time number was low by
the site's altitude, and the two paths disagreed about the same engine.

At t=0 nothing has receded yet, so the two paths evaluate identical geometry and must agree.

Function Documentation

◆ cfg()

test_time_varying_ambient.cfg ( )

Definition at line 34 of file test_time_varying_ambient.py.

◆ test_explicit_ambient_is_respected()

test_time_varying_ambient.test_explicit_ambient_is_respected ( cfg)
Passing P_ambient must override the site elevation in both paths alike.

Definition at line 71 of file test_time_varying_ambient.py.

◆ test_time_varying_t0_matches_steady_thrust()

test_time_varying_ambient.test_time_varying_t0_matches_steady_thrust ( cfg)

Definition at line 45 of file test_time_varying_ambient.py.

Variable Documentation

◆ _CFG

test_time_varying_ambient._CFG = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "configs", "ethalox_180lb_8to1.yaml")
protected

Definition at line 29 of file test_time_varying_ambient.py.

◆ _PSI

float test_time_varying_ambient._PSI = 6894.757
protected

Definition at line 30 of file test_time_varying_ambient.py.