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

Functions

 interp ()
 test_copv_pressures_read_coolprop_not_an_extrapolation (interp, T, P)
 test_the_tank_range_is_unchanged (interp)

Variables

str TABLE = Path(__file__).resolve().parents[1] / "copv" / "n2_Z_lookup.csv"

Detailed Description

copv/n2_Z_lookup.csv covers the pressures a COPV holds, not only a propellant tank's.

The table stopped at 8.3 MPa; RegularGridInterpolator(fill_value=None) extrapolates linearly past
it, so the COPV solvers read Z 1.039 at 26 MPa and 300 K where CoolProp gives 1.105. On the LE4 (3)
stand's 1.312 kg in 4.619 L that put the charge at 3810 psia instead of 4141 (CoolProp, 300 K,
284 kg/m3), and shifted every COPV sizing in the Time-Series panel and Layer 2 by the same few
per cent. Extended to 60 MPa from CoolProp, the rows inside the old range untouched.

Function Documentation

◆ interp()

test_n2_z_table.interp ( )

Definition at line 20 of file test_n2_z_table.py.

◆ test_copv_pressures_read_coolprop_not_an_extrapolation()

test_n2_z_table.test_copv_pressures_read_coolprop_not_an_extrapolation ( interp,
T,
P )

Definition at line 27 of file test_n2_z_table.py.

◆ test_the_tank_range_is_unchanged()

test_n2_z_table.test_the_tank_range_is_unchanged ( interp)
A propellant-tank state (300 K, 5 MPa) still reads the original grid.

Definition at line 36 of file test_n2_z_table.py.

Variable Documentation

◆ TABLE

str test_n2_z_table.TABLE = Path(__file__).resolve().parents[1] / "copv" / "n2_Z_lookup.csv"

Definition at line 16 of file test_n2_z_table.py.