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

Public Member Functions

float pressure_drop (self, float mdot, FlowConditions flow)
float|None flow_ceiling (self, FlowConditions flow)
bool is_choked (self, float dp_available, 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 pinned_flow (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)

Additional Inherited Members

Public Attributes inherited from feedtwin.comps.base.HydraulicComponent
 instance = instance
 p = instance.si_params()
 opt = dict(instance.options)
Static Public Attributes inherited from feedtwin.comps.base.HydraulicComponent
str inlet_port = "inlet"
str outlet_port = "outlet"
bool symmetric = False
 conditions_provider = None

Detailed Description

Forward flow through a Cv; reverse flow through a seat leak.

The first component here that is not a smooth function of flow. Forward, it
is a valve with a cracking pressure to overcome; backward, it is very nearly
shut. That discontinuity at zero flow is exactly why the solver interface is
residual-based rather than ``dp(mdot)``, and it is the component to re-check
when Phase 04 settles that interface.

Definition at line 765 of file elements.py.

Member Function Documentation

◆ diagnostics()

dict[str, float] feedtwin.comps.elements.CheckValve.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 798 of file elements.py.

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

◆ flow_ceiling()

float | None feedtwin.comps.elements.CheckValve.flow_ceiling ( self,
FlowConditions flow )
Zero: what a check valve short of its cracking pressure passes.
Consulted only when :meth:`is_choked` says it has not cracked.

Reimplemented from feedtwin.comps.base.HydraulicComponent.

Definition at line 789 of file elements.py.

◆ is_choked()

bool feedtwin.comps.elements.CheckValve.is_choked ( self,
float dp_available,
FlowConditions flow )
Shut: a forward drop that has not reached the cracking pressure.

Reimplemented from feedtwin.comps.base.HydraulicComponent.

Definition at line 794 of file elements.py.

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

◆ pressure_drop()

float feedtwin.comps.elements.CheckValve.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 775 of file elements.py.

References feedtwin.comps.elements._dynamic_head(), max, p, and feedtwin.comps.base.HydraulicComponent.p.


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