wecopttool.utilities.plot_power_flow
- plot_power_flow(power_flows, tolerance=None)[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’
tolerance (Optional[float]) – Tolerance value for sankey diagram.
- Return type:
tuple(Figure, Axes)