|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| bool | has_curve (self) |
| float | bore_si (self) |
| float | stated_length (self) |
| float | tube_length (self) |
Static Public Attributes | |
| str | method = DEFAULT_METHOD |
| Param | bore = None |
| Param | length = None |
| Param | roughness = None |
| Param | elevation_change = None |
| Param | K = None |
| str | length_basis = "tube" |
| str | tube_size = "" |
| str | standard = "" |
| tuple | fittings = () |
| Curve | curve = None |
One length of one bore, with whatever is fitted to it.
Definition at line 110 of file segments.py.
| float feedtwin.model.segments.LineSegment.bore_si | ( | self | ) |
Flow diameter [m], or zero if the segment does not state one.
Definition at line 134 of file segments.py.
References feedtwin.comps.iec_gas.GasCv.bore, feedtwin.model.segments.Fitting.bore, and bore.
| bool feedtwin.model.segments.LineSegment.has_curve | ( | self | ) |
Definition at line 130 of file segments.py.
References feedtwin.comps.elements.MeasuredElement.curve, and curve.
| float feedtwin.model.segments.LineSegment.stated_length | ( | self | ) |
The length as written [m], whatever its basis.
Definition at line 139 of file segments.py.
References feedtwin.model.segments.Fitting.length, length, gnss_frame_parser_t.length, and self_test_spi_frame_t.length.
Referenced by tube_length().
| float feedtwin.model.segments.LineSegment.tube_length | ( | self | ) |
Straight tube in this segment [m], with fitting bodies removed. With ``length_basis == "overall"`` the stated length runs end to end, so each fitting's body less its thread engagement comes out -- otherwise the fittings are paid for twice, once as K and once as the tube they displace. This refuses to guess. If the basis is overall and any fitting has no body length, the stated length is returned whole; the reader has already warned about it. A partial subtraction is a wrong number that looks careful, which is worse than a stated one that is flagged.
Definition at line 143 of file segments.py.
References fittings, length_basis, max, and stated_length().
|
static |
Definition at line 115 of file segments.py.
Referenced by engine.layerx.diag.start.Element.area(), engine.layerx.diag.waterhammer.Pipeline.area(), feedtwin.comps.manifold.ManifoldPort.area(), bore_si(), and feedtwin.comps.wall.LineWall.exchange().
|
static |
Definition at line 124 of file segments.py.
Referenced by has_curve().
|
static |
Definition at line 118 of file segments.py.
|
static |
Definition at line 123 of file segments.py.
Referenced by tube_length().
|
static |
Definition at line 119 of file segments.py.
|
static |
Definition at line 116 of file segments.py.
Referenced by engine.layerx.diag.start.Element.inertance(), stated_length(), and engine.layerx.diag.start.Element.volume().
|
static |
Definition at line 120 of file segments.py.
Referenced by tube_length().
|
static |
Definition at line 114 of file segments.py.
|
static |
Definition at line 117 of file segments.py.
|
static |
Definition at line 122 of file segments.py.
|
static |
Definition at line 121 of file segments.py.