|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| load_Z_lookup_table (csv_path) | |
| Z_lookup (T_K, P_Pa, interp, default_Z=1.0) | |
| size_or_check_copv_for_polytropic_N2 (df, config, *, n=1.2, T0_K=300.0, Tp_K=300.0, use_real_gas=True, n2_Z_csv="n2_Z_lookup.csv", pressurant_R=None, branch_temperatures_K=None, copv_volume_m3=None, copv_P0_Pa=None, copv_m0_kg=None, tol=1e-4, max_iter=60) | |
| copv.copv_solve_both.load_Z_lookup_table | ( | csv_path | ) |
Definition at line 8 of file copv_solve_both.py.
Referenced by size_or_check_copv_for_polytropic_N2().
| copv.copv_solve_both.size_or_check_copv_for_polytropic_N2 | ( | df, | |
| config, | |||
| * | , | ||
| n = 1.2, | |||
| T0_K = 300.0, | |||
| Tp_K = 300.0, | |||
| use_real_gas = True, | |||
| n2_Z_csv = "n2_Z_lookup.csv", | |||
| pressurant_R = None, | |||
| branch_temperatures_K = None, | |||
| copv_volume_m3 = None, | |||
| copv_P0_Pa = None, | |||
| copv_m0_kg = None, | |||
| tol = 1e-4, | |||
| max_iter = 60 ) |
Updated solver that uses known COPV volume (config.press_tank.press_volume) and initial ullage computed from initial propellant mass, prop tank volume, and density. Provide either copv_volume_m3 OR copv_P0_Pa (exactly one). With copv_volume_m3, also giving copv_m0_kg (the charge actually loaded) CHECKS that charge -- its P0 at T0_K, its pressure trace and its margin -- instead of sizing the P0 that just meets the requirement.
Definition at line 38 of file copv_solve_both.py.
References load_Z_lookup_table(), max, ok, and Z_lookup().
| copv.copv_solve_both.Z_lookup | ( | T_K, | |
| P_Pa, | |||
| interp, | |||
| default_Z = 1.0 ) |
Definition at line 19 of file copv_solve_both.py.
Referenced by size_or_check_copv_for_polytropic_N2().