STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.props.state.ThermoState Class Reference

Public Member Functions

float gamma (self)
float nu (self)
str __str__ (self)

Static Public Attributes

float quality | None

Detailed Description

An immutable snapshot of one fluid at one state point. All SI.

``quality`` is ``None`` outside the two-phase dome rather than a sentinel.
Backends signal "not applicable" with out-of-band numbers -- CoolProp uses
-1 in one situation and -1000 in another -- and letting either escape into
a mass balance as a vapour fraction is the kind of bug that produces a
plausible-looking wrong answer rather than a crash.

Definition at line 121 of file state.py.

Member Function Documentation

◆ __str__()

str feedtwin.props.state.ThermoState.__str__ ( self)

Definition at line 159 of file state.py.

References quality.

◆ gamma()

float feedtwin.props.state.ThermoState.gamma ( self)

◆ nu()

Member Data Documentation

◆ quality

float feedtwin.props.state.ThermoState.quality | None
static

Definition at line 147 of file state.py.

Referenced by __str__().


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