STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.props.state.Phase Class Reference
Inheritance diagram for feedtwin.props.state.Phase:
[legend]
Collaboration diagram for feedtwin.props.state.Phase:
[legend]

Public Member Functions

bool is_two_phase (self)
bool is_liquid_like (self)

Static Public Attributes

str LIQUID = "liquid"
str GAS = "gas"
str TWO_PHASE = "two_phase"
str SUPERCRITICAL = "supercritical"
str SUPERCRITICAL_GAS = "supercritical_gas"
str SUPERCRITICAL_LIQUID = "supercritical_liquid"
str CRITICAL_POINT = "critical_point"
str UNKNOWN = "unknown"

Detailed Description

Fluid phase, independent of any backend's integer encoding.

Backends map their own constants onto this so that nothing above the
property layer imports a CoolProp enum -- the point of ADR-0001's boundary
is that swapping an equation-of-state library is a change inside
``props/backends/``, not a change everywhere ``phase == 6`` was written.

Definition at line 33 of file state.py.

Member Function Documentation

◆ is_liquid_like()

bool feedtwin.props.state.Phase.is_liquid_like ( self)
Liquid or supercritical-liquid: dense, effectively incompressible.

Used to pick correlations -- single-phase liquid pressure drop applies
to a supercritical liquid too, and asking ``phase is Phase.LIQUID``
alone would silently route a supercritical LOX line down the gas path.

Definition at line 56 of file state.py.

◆ is_two_phase()

bool feedtwin.props.state.Phase.is_two_phase ( self)

Definition at line 52 of file state.py.

Member Data Documentation

◆ CRITICAL_POINT

str feedtwin.props.state.Phase.CRITICAL_POINT = "critical_point"
static

Definition at line 48 of file state.py.

◆ GAS

str feedtwin.props.state.Phase.GAS = "gas"
static

Definition at line 43 of file state.py.

◆ LIQUID

str feedtwin.props.state.Phase.LIQUID = "liquid"
static

Definition at line 42 of file state.py.

◆ SUPERCRITICAL

str feedtwin.props.state.Phase.SUPERCRITICAL = "supercritical"
static

Definition at line 45 of file state.py.

◆ SUPERCRITICAL_GAS

str feedtwin.props.state.Phase.SUPERCRITICAL_GAS = "supercritical_gas"
static

Definition at line 46 of file state.py.

◆ SUPERCRITICAL_LIQUID

str feedtwin.props.state.Phase.SUPERCRITICAL_LIQUID = "supercritical_liquid"
static

Definition at line 47 of file state.py.

◆ TWO_PHASE

str feedtwin.props.state.Phase.TWO_PHASE = "two_phase"
static

Definition at line 44 of file state.py.

◆ UNKNOWN

str feedtwin.props.state.Phase.UNKNOWN = "unknown"
static

Definition at line 49 of file state.py.


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