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

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", copv_volume_m3=None, copv_P0_Pa=None, tol=1e-4, max_iter=60)

Function Documentation

◆ load_Z_lookup_table()

copv.copv_solve.load_Z_lookup_table ( csv_path)

Definition at line 8 of file copv_solve.py.

Referenced by size_or_check_copv_for_polytropic_N2().

◆ size_or_check_copv_for_polytropic_N2()

copv.copv_solve.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",
copv_volume_m3 = None,
copv_P0_Pa = 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).

Definition at line 38 of file copv_solve.py.

References load_Z_lookup_table(), max, ok, and Z_lookup().

◆ Z_lookup()

copv.copv_solve.Z_lookup ( T_K,
P_Pa,
interp,
default_Z = 1.0 )

Definition at line 19 of file copv_solve.py.

Referenced by size_or_check_copv_for_polytropic_N2().