pyskyfire.network.blocks.TurbineBlock¶
- class pyskyfire.network.blocks.TurbineBlock(name: str, st_in: str, st_out: str, P_req_key: str, eta: float, medium: str)¶
Bases:
digraph inheritance7494bab22f { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "FluidBlock" [URL="FluidBlock.html#pyskyfire.network.blocks.FluidBlock",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract base for blocks that transform **fluid** states."]; "ABC" -> "FluidBlock" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TurbineBlock" [URL="TurbineBlock.html#pyskyfire.network.blocks.TurbineBlock",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Single-stage turbine model."]; "FluidBlock" -> "TurbineBlock" [arrowsize=0.5,style="setlinewidth(0.5)"]; }FluidBlockSingle-stage turbine model.
Consumes a required shaft-power signal and computes an outlet state that provides that work at given efficiency.
- Parameters:
- Attributes:
See also
TransmissionBlockAggregates power demands into the required shaft power.
- compute(stations: Dict[str, Station], signals: Dict[str, float]) tuple[Dict[str, Station], Dict[str, float]]¶
Compute outlet state delivering the requested shaft power.
- Parameters:
- Returns:
- Raises:
ValueErrorIf inlet mass flow is non-positive, or if no physical expansion can supply the requested power.
Notes
Total-to-total expansion evaluated on enthalpy and entropy rather than on temperature and pressure, so no ideal-gas or constant-
c_passumption is made. The isentropic enthalpy dropw_req / ηsets the exit pressure at constant inlet entropy; the actual dropw_reqthen sets the exit temperature at that pressure.