STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.session.core.BottleSim Class Reference

Public Member Functions

float pressure (self)
float fraction (self)
None advance (self, float dt, *, float mdot_out, float stirring=1.0, float mdot_in=0.0, float enthalpy_in=0.0)

Public Attributes

 state

Static Public Attributes

bool filling = False
bool venting = False
float target = from_psig(4500.0)
float fill_seconds = 9.7
float fill_supply_T = FILL_SUPPLY_T
bool charged = False
float peak = 0.0
float added_kg = 0.0
float dumped_kg = 0.0
float fixed_kg = 0.0
float mawp = 0.0

Protected Member Functions

VesselState _air (self, VesselState state)
VesselState _at_atmosphere (self, VesselState stepped)

Detailed Description

A pressurant bottle: filled from GSE, then blowing down.

Starts **empty**, like everything else on the stand. A COPV that is already
at 4500 psi when the app opens is the same lie as a tank that is already
full: it skips the step where somebody has to decide to do it.

Definition at line 2063 of file core.py.

Member Function Documentation

◆ _air()

VesselState feedtwin.session.core.BottleSim._air ( self,
VesselState state )
protected

◆ _at_atmosphere()

VesselState feedtwin.session.core.BottleSim._at_atmosphere ( self,
VesselState stepped )
protected
``stepped``, or an atmosphere at the gas's own temperature if it went
below one: a bottle open to the air does not go under it.

The energy is restated with the mass, as :meth:`TankSim._settled`
does. Floored at the wall's density with the energy left as it was,
every floored step put gas back with none of its heat, the gas cooled,
and a COPV dumped at an abort read 14.4 psia.

Definition at line 2205 of file core.py.

References _air().

Referenced by advance().

◆ advance()

None feedtwin.session.core.BottleSim.advance ( self,
float dt,
* ,
float mdot_out,
float stirring = 1.0,
float mdot_in = 0.0,
float enthalpy_in = 0.0 )

◆ fraction()

◆ pressure()

float feedtwin.session.core.BottleSim.pressure ( self)

Member Data Documentation

◆ added_kg

float feedtwin.session.core.BottleSim.added_kg = 0.0
static

Definition at line 2093 of file core.py.

Referenced by advance().

◆ charged

bool feedtwin.session.core.BottleSim.charged = False
static

Definition at line 2082 of file core.py.

Referenced by advance().

◆ dumped_kg

float feedtwin.session.core.BottleSim.dumped_kg = 0.0
static

Definition at line 2094 of file core.py.

Referenced by advance().

◆ fill_seconds

float feedtwin.session.core.BottleSim.fill_seconds = 9.7
static

Definition at line 2079 of file core.py.

Referenced by advance().

◆ fill_supply_T

float feedtwin.session.core.BottleSim.fill_supply_T = FILL_SUPPLY_T
static

Definition at line 2081 of file core.py.

Referenced by advance().

◆ filling

bool feedtwin.session.core.BottleSim.filling = False
static

Definition at line 2076 of file core.py.

Referenced by advance().

◆ fixed_kg

float feedtwin.session.core.BottleSim.fixed_kg = 0.0
static

Definition at line 2095 of file core.py.

Referenced by advance().

◆ mawp

float feedtwin.session.core.BottleSim.mawp = 0.0
static

Definition at line 2097 of file core.py.

◆ peak

float feedtwin.session.core.BottleSim.peak = 0.0
static

Definition at line 2086 of file core.py.

Referenced by advance().

◆ state

◆ target

feedtwin.session.core.BottleSim.target = from_psig(4500.0)
static

Definition at line 2078 of file core.py.

Referenced by advance(), and fraction().

◆ venting

bool feedtwin.session.core.BottleSim.venting = False
static

Definition at line 2077 of file core.py.

Referenced by advance().


The documentation for this class was generated from the following file:
  • lib/feedtwin/feedtwin/session/core.py