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

Public Member Functions

float pressure_drop (self, float mdot, FlowConditions flow)
dict[str, float] diagnostics (self, float mdot, FlowConditions flow)
Public Member Functions inherited from feedtwin.comps.base.HydraulicComponent
None __init__ (self, ComponentInstance instance)
str id (self)
str type (self)
float static_head (self, FlowConditions flow)
float total_dp (self, float mdot, FlowConditions flow)
float signal (self, FlowConditions flow, str name, float default=1.0)
bool isolates (self, Mapping[str, float]|None signals=None)
float|None flow_ceiling (self, FlowConditions flow)
float|None pinned_flow (self, float dp_available, FlowConditions flow)
bool is_choked (self, float dp_available, FlowConditions flow)
list[Violation] check (self)
int n_residuals (self)
Sequence[float] residuals (self, EvalContext ctx)
Mapping[str, float] outputs (self, EvalContext ctx)
FlowConditions conditions (self, PortState port, Mapping[str, float] signals)
str __repr__ (self)

Static Public Attributes

str METER = "ISO 5167 orifice"
dict CHARACTERISTICS
Static Public Attributes inherited from feedtwin.comps.base.HydraulicComponent
str inlet_port = "inlet"
str outlet_port = "outlet"
bool symmetric = False
 conditions_provider = None

Protected Member Functions

float _solve_downstream (self, float p1, float mdot, FlowConditions flow)

Additional Inherited Members

Public Attributes inherited from feedtwin.comps.base.HydraulicComponent
 instance = instance
 p = instance.si_params()
 opt = dict(instance.options)

Detailed Description

A metering orifice, with the discharge coefficient from ISO 5167.

Reader-Harris/Gallagher via ``fluids``: C depends on the beta ratio, the
Reynolds number and the tapping arrangement, so unlike :class:`OrificeCd`
this needs no measured coefficient -- which is the point of using a standard
geometry in the first place.

Definition at line 481 of file elements.py.

Member Function Documentation

◆ _solve_downstream()

float feedtwin.comps.elements.OrificeISO5167._solve_downstream ( self,
float p1,
float mdot,
FlowConditions flow )
protected

Definition at line 504 of file elements.py.

References METER, p, and feedtwin.comps.base.HydraulicComponent.p.

Referenced by pressure_drop().

◆ diagnostics()

dict[str, float] feedtwin.comps.elements.OrificeISO5167.diagnostics ( self,
float mdot,
FlowConditions flow )
Derived quantities worth reporting: velocity, Reynolds number, K.

Never consumed by a solver. This is what a frame and a report show, and
what makes a result inspectable rather than just a number.

Reimplemented from feedtwin.comps.base.HydraulicComponent.

Definition at line 524 of file elements.py.

References p, feedtwin.comps.base.HydraulicComponent.p, and feedtwin.comps.base.HydraulicComponent.pressure_drop().

◆ pressure_drop()

float feedtwin.comps.elements.OrificeISO5167.pressure_drop ( self,
float mdot,
FlowConditions flow )
Flow-dependent pressure loss [Pa]. Always non-negative.

A *loss*: it opposes the flow, so it lowers the downstream pressure
whichever way the fluid is going. Reverse flow is each component's own
business -- symmetric for a pipe, very much not for a check valve.

Anything that does **not** depend on the direction of flow belongs in
:meth:`static_head`, not here. See that method for why the distinction
is load-bearing rather than tidy.

Reimplemented from feedtwin.comps.base.HydraulicComponent.

Definition at line 494 of file elements.py.

References _solve_downstream().

Member Data Documentation

◆ CHARACTERISTICS

dict feedtwin.comps.elements.OrificeISO5167.CHARACTERISTICS
static
Initial value:
= {
"linear": cv.Cv_char_linear,
"equal_percentage": cv.Cv_char_equal_percentage,
"quick_opening": cv.Cv_char_quick_opening,
}

Definition at line 538 of file elements.py.

◆ METER

str feedtwin.comps.elements.OrificeISO5167.METER = "ISO 5167 orifice"
static

Definition at line 492 of file elements.py.

Referenced by _solve_downstream().


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