STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.model.segments.LineSegment Class Reference
Collaboration diagram for feedtwin.model.segments.LineSegment:
[legend]

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

Detailed Description

One length of one bore, with whatever is fitted to it.

Definition at line 110 of file segments.py.

Member Function Documentation

◆ bore_si()

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.

◆ has_curve()

bool feedtwin.model.segments.LineSegment.has_curve ( self)

Definition at line 130 of file segments.py.

References feedtwin.comps.elements.MeasuredElement.curve, and curve.

◆ stated_length()

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().

◆ 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().

Member Data Documentation

◆ bore

◆ curve

Curve feedtwin.model.segments.LineSegment.curve = None
static

Definition at line 124 of file segments.py.

Referenced by has_curve().

◆ elevation_change

Param feedtwin.model.segments.LineSegment.elevation_change = None
static

Definition at line 118 of file segments.py.

◆ fittings

tuple feedtwin.model.segments.LineSegment.fittings = ()
static

Definition at line 123 of file segments.py.

Referenced by tube_length().

◆ K

Param feedtwin.model.segments.LineSegment.K = None
static

Definition at line 119 of file segments.py.

◆ length

Param feedtwin.model.segments.LineSegment.length = None
static

◆ length_basis

str feedtwin.model.segments.LineSegment.length_basis = "tube"
static

Definition at line 120 of file segments.py.

Referenced by tube_length().

◆ method

str feedtwin.model.segments.LineSegment.method = DEFAULT_METHOD
static

Definition at line 114 of file segments.py.

◆ roughness

Param feedtwin.model.segments.LineSegment.roughness = None
static

Definition at line 117 of file segments.py.

◆ standard

str feedtwin.model.segments.LineSegment.standard = ""
static

Definition at line 122 of file segments.py.

◆ tube_size

str feedtwin.model.segments.LineSegment.tube_size = ""
static

Definition at line 121 of file segments.py.


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