pywr.recorders.TotalHydroEnergyRecorder

class pywr.recorders.TotalHydroEnergyRecorder

Calculates the total energy production using the hydropower equation from a model run.

This recorder saves the total energy production in each scenario during a model run. It does not save a timeseries or power, but rather total energy.

Parameters:
water_elevation_parameter : Parameter instance (default=None)

Elevation of water entering the turbine. The difference of this value with the turbine_elevation gives the working head of the turbine.

turbine_elevation : double

Elevation of the turbine itself. The difference between the water_elevation and this value gives the working head of the turbine.

efficiency : float (default=1.0)

The efficiency of the turbine.

density : float (default=1000.0)

The density of water.

flow_unit_conversion : float (default=1.0)

A factor used to transform the units of flow to be compatible with the equation here. This should convert flow to units of \(m^3/day\)

energy_unit_conversion : float (default=1e-6)

A factor used to transform the units of total energy. Defaults to 1e-6 to return \(MJ\).

Notes

The hydropower calculation uses the following equation.

\[P = \rho * g * \delta H * q\]

The flow rate in should be converted to units of \(m^3\) per day using the flow_unit_conversion parameter.

Head is calculated from the given water_elevation_parameter and turbine_elevation value. If water elevation is given then head is the difference in elevation between the water and the turbine. If water elevation parameter is None then the head is simply the turbine elevation.

__init__($self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

after Calculate the
aggregated_value
before
finish
load
register
reset
setup
unregister
values

Attributes

agg_func
children
comment
density
efficiency
energy_unit_conversion
epsilon
flow_unit_conversion
ignore_nan
is_constraint
is_objective
model
name
node
parents
turbine_elevation
water_elevation_parameter