thermopt.cycles.cycle_power_simple_offdesign module

thermopt.cycles.cycle_power_simple_offdesign module#

Simple power cycle with partial evaporation, off design on fixed hardware.

States: 1 pump inlet, 2 pump outlet, 3 turbine inlet, 4 turbine outlet.

Variables: p1, p3, h3, T_h,out, plus the controls pump_speed and heat_sink_mass_flow (optimized if in design_variables, fixed if in fixed_parameters.controls).

Equalities (set to 0 in the YAML): heater.UA_residual, cooler.UA_residual, compressor.head_residual, heater.energy_balance_residual.

thermopt.cycles.cycle_power_simple_offdesign.evaluate_cycle(variables, parameters, constraints, objective_function)[source]#
thermopt.cycles.cycle_power_simple_offdesign.evaluate_offdesign(parameters, z, controls, sizing=None)[source]#

Evaluate the cycle at z = [p1, p3, h3, T_h,out] on parameters["hardware"].

With sizing={"working_fluid_mass_flow": m} (design point), z is [p1, p3, h3], the hardware is sized and returned under "hardware".

thermopt.cycles.cycle_power_simple_offdesign.saturation_quality(fluid, p, h)[source]#

Quality from saturation enthalpies (also outside the dome); returns (Q, h_l, h_v).

thermopt.cycles.cycle_power_simple_offdesign.size_hardware(design_output, parameters)[source]#

Size the hardware from a converged simple design output.

Flows are scaled to heat_source.mass_flow. Returns (hardware, design_output, design_controls).