STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.model.curve Namespace Reference

Classes

class  CurveError
class  Curve
class  CurveSpec

Functions

Curve curve_from_points (Sequence[float] x, Sequence[float] y, *, str x_unit, str y_unit, str reference, Provenance source=Provenance.MEASURED)

Detailed Description

Tabulated data: the parameters that are not single numbers.

A :class:`Param` covers a scalar. Real hardware also comes with curves --
a valve's Cv against stem position, a pump's head against flow, and above all a
measured pressure drop against mass flow, which is what a cold-flow test
produces and what supersedes every correlation in this package.

Same rules as a scalar: units are declared and converted once, provenance is
mandatory, and interpolation **refuses outside the measured range** rather than
extrapolating. An extrapolated measurement carries a measurement's authority and
a guess's accuracy, which is the worst of both.

Discovered in Phase 03 rather than designed in Phase 02: the need only became
concrete once components had to accept a measured Δp table. It is a small,
additive extension -- :class:`ComponentInstance` grew a ``curves`` field
alongside ``params`` -- and nothing that existed had to change.

Function Documentation

◆ curve_from_points()

Curve feedtwin.model.curve.curve_from_points ( Sequence[float] x,
Sequence[float] y,
* ,
str x_unit,
str y_unit,
str reference,
Provenance source = Provenance.MEASURED )
Build a measured curve. What a test-data reader produces.

Definition at line 159 of file curve.py.