STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_tank_capacity.py
Go to the documentation of this file.
1"""Tests for configurable propellant tank fill factor."""
2
4 DEFAULT_PROPELLANT_TANK_FILL_FACTOR,
5 resolve_fuel_tank_limits,
6 resolve_propellant_tank_fill_factor,
7)
8
9
11 assert DEFAULT_PROPELLANT_TANK_FILL_FACTOR == 0.90
12
13
15 class DR:
16 propellant_tank_fill_factor = 0.95
17
18 class Config:
19 design_requirements = DR()
20
21 assert resolve_propellant_tank_fill_factor(Config()) == 0.95
22
23
25 class DR:
26 propellant_tank_fill_factor = 0.90
27 fuel_tank_capacity_kg = 12.0
28
29 class FuelTank:
30 tank_volume_m3 = 0.011109
31 rp1_h = 0.609
32 rp1_radius = 0.0762
33
34 class Config:
35 design_requirements = DR()
36 fuel_tank = FuelTank()
37
38 max_mass, volume, ff, explicit = resolve_fuel_tank_limits(Config(), 422.6)
39 assert explicit is True
40 assert max_mass == 12.0
41 assert ff == 0.90
42 assert volume == 0.011109
test_explicit_capacity_overrides_volume_times_fill()