STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
copv.blowdown_solver.TankState Class Reference

Public Member Functions

 __init__ (self, float vol_total, float m_prop_initial, float rho_prop, float P_initial, float T_gas_initial, float R_gas, Optional[RegularGridInterpolator] Z_interp, float n_poly=1.2)
 get_Z (self, T, P)
float step (self, float mdot, float dt, float mdot_gas=0.0)
 solve_pressure (self, T, V, P_guess)

Public Attributes

 V_total = vol_total
float m_prop = m_prop_initial
 rho = rho_prop
 n_poly = n_poly
 R = R_gas
 Z_interp = Z_interp
 T0 = T_gas_initial
 V_ullage_0 = self.V_total - (self.m_prop / self.rho)
 V_ullage = self.V_ullage_0
 T_gas = T_gas_initial
 P_gas = P_initial
tuple m_gas = (self.P_gas * self.V_ullage_0) / (Z * self.R * self.T_gas)
tuple m_gas_0 = self.m_gas

Detailed Description

Helper class to track individual tank state during blowdown.

Definition at line 182 of file blowdown_solver.py.

Constructor & Destructor Documentation

◆ __init__()

copv.blowdown_solver.TankState.__init__ ( self,
float vol_total,
float m_prop_initial,
float rho_prop,
float P_initial,
float T_gas_initial,
float R_gas,
Optional[RegularGridInterpolator] Z_interp,
float n_poly = 1.2 )

Definition at line 184 of file blowdown_solver.py.

Member Function Documentation

◆ get_Z()

copv.blowdown_solver.TankState.get_Z ( self,
T,
P )

Definition at line 218 of file blowdown_solver.py.

References Z_interp, and copv.blowdown_solver.Z_lookup().

Referenced by solve_pressure().

◆ solve_pressure()

copv.blowdown_solver.TankState.solve_pressure ( self,
T,
V,
P_guess )

◆ step()

float copv.blowdown_solver.TankState.step ( self,
float mdot,
float dt,
float mdot_gas = 0.0 )
Advance tank state by dt. 

Args:
    mdot: Liquid propellant mass flow rate [kg/s] (leaving tank)
    dt: Time step [s]
    mdot_gas: Gas/Pressurant mass flow rate [kg/s] (leaving tank, venting)
    
Returns:
    New Pressure [Pa]

Definition at line 223 of file blowdown_solver.py.

References m_gas, m_prop, max, P_gas, rho, fsw::control::RobustDDPController::Config.rho, V_total, and V_ullage.

Referenced by engine.pipeline.thermal.wall_conduction.WallModel.advance(), and engine.pipeline.thermal.wall_conduction.WallModel.soak().

Member Data Documentation

◆ m_gas

tuple copv.blowdown_solver.TankState.m_gas = (self.P_gas * self.V_ullage_0) / (Z * self.R * self.T_gas)

Definition at line 216 of file blowdown_solver.py.

Referenced by solve_pressure(), and step().

◆ m_gas_0

tuple copv.blowdown_solver.TankState.m_gas_0 = self.m_gas

Definition at line 282 of file blowdown_solver.py.

◆ m_prop

float copv.blowdown_solver.TankState.m_prop = m_prop_initial

Definition at line 196 of file blowdown_solver.py.

Referenced by step().

◆ n_poly

copv.blowdown_solver.TankState.n_poly = n_poly

Definition at line 198 of file blowdown_solver.py.

◆ P_gas

copv.blowdown_solver.TankState.P_gas = P_initial

Definition at line 212 of file blowdown_solver.py.

Referenced by step().

◆ R

copv.blowdown_solver.TankState.R = R_gas

Definition at line 199 of file blowdown_solver.py.

Referenced by solve_pressure().

◆ rho

◆ T0

copv.blowdown_solver.TankState.T0 = T_gas_initial

Definition at line 201 of file blowdown_solver.py.

◆ T_gas

copv.blowdown_solver.TankState.T_gas = T_gas_initial

Definition at line 211 of file blowdown_solver.py.

◆ V_total

copv.blowdown_solver.TankState.V_total = vol_total

Definition at line 195 of file blowdown_solver.py.

Referenced by step().

◆ V_ullage

copv.blowdown_solver.TankState.V_ullage = self.V_ullage_0

Definition at line 208 of file blowdown_solver.py.

Referenced by step().

◆ V_ullage_0

copv.blowdown_solver.TankState.V_ullage_0 = self.V_total - (self.m_prop / self.rho)

Definition at line 204 of file blowdown_solver.py.

◆ Z_interp

copv.blowdown_solver.TankState.Z_interp = Z_interp

Definition at line 200 of file blowdown_solver.py.

Referenced by get_Z().


The documentation for this class was generated from the following file: