|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| float | x_critical (self, float gamma) |
| float | flow (self, float p1, float rho1, float gamma, float dp) |
| float | capacity (self, float p1, float rho1, float gamma) |
| float | drop (self, float mdot, float p1, float rho1, float gamma) |
Public Attributes | |
| cv | |
| bore | |
| xT | |
Protected Member Functions | |
| float | _scale (self, float rho1) |
A flow coefficient seen by a gas: IEC 60534-2-1 with the library's scale.
Definition at line 116 of file iec_gas.py.
|
protected |
``N6 . C . sqrt(rho1)`` in SI: kg/s per sqrt(Pa) at Y = 1.
Definition at line 126 of file iec_gas.py.
Referenced by capacity(), drop(), and flow().
| float feedtwin.comps.iec_gas.GasCv.capacity | ( | self, | |
| float | p1, | ||
| float | rho1, | ||
| float | gamma ) |
Choked mass flow [kg/s]: ``Y = 2/3`` at ``x = F_gamma . xT``.
Definition at line 147 of file iec_gas.py.
References _scale(), max, and x_critical().
Referenced by feedtwin.engine.card.InjectorCard.pressure_drop(), and feedtwin.engine.card.InjectorCard.to_dict().
| float feedtwin.comps.iec_gas.GasCv.drop | ( | self, | |
| float | mdot, | ||
| float | p1, | ||
| float | rho1, | ||
| float | gamma ) |
Pressure drop that passes ``|mdot|`` [Pa]. Up to the choked capacity this is the inverse of :meth:`flow`. Past it no drop passes the flow -- the caller should pin it at :meth:`capacity` -- and the value returned there is ``x_crit p1 (mdot / capacity)^2``: continuous at the choke and rising, so a solver iterate that strays past it is pushed back rather than handed a cliff.
Definition at line 152 of file iec_gas.py.
References _scale(), feedtwin.comps.iec_gas.expansion_drop(), and x_critical().
| float feedtwin.comps.iec_gas.GasCv.flow | ( | self, | |
| float | p1, | ||
| float | rho1, | ||
| float | gamma, | ||
| float | dp ) |
Mass flow at a drop ``dp`` [kg/s]; the choked value past the choke.
Definition at line 138 of file iec_gas.py.
References _scale(), min, and x_critical().
| float feedtwin.comps.iec_gas.GasCv.x_critical | ( | self, | |
| float | gamma ) |
``F_gamma . xT``: the drop ratio at which the flow chokes, never past 1 (a downstream pressure below zero).
Definition at line 133 of file iec_gas.py.
Referenced by capacity(), drop(), and flow().
| feedtwin.comps.iec_gas.GasCv.bore |
Definition at line 131 of file iec_gas.py.
Referenced by _scale(), engine.layerx.diag.start.Element.area(), engine.layerx.diag.waterhammer.Pipeline.area(), feedtwin.comps.manifold.ManifoldPort.area(), feedtwin.model.segments.LineSegment.bore_si(), and feedtwin.comps.wall.LineWall.exchange().
| feedtwin.comps.iec_gas.GasCv.cv |
Definition at line 131 of file iec_gas.py.
Referenced by _scale(), and feedtwin.props.state.ThermoState.gamma().
| feedtwin.comps.iec_gas.GasCv.xT |
Definition at line 136 of file iec_gas.py.