wecopttool.utilities.plot_power_flow

plot_power_flow(power_flows)[source]

Plot power flow through a WEC as Sankey diagram.

Parameters:

power_flows (dict[str, float]) – Power flow dictionary produced by for example by wecopttool.utilities.calculate_power_flows(). Required keys: ‘Optimal Excitation’, ‘Radiated’, ‘Actual Excitation’ ‘Electrical (solver)’, ‘Mechanical (solver)’, ‘Absorbed’, ‘Unused Potential’, ‘PTO Loss’

Return type:

tuple(Figure, Axes)