Power_Management_Plugin

Classes:

Power_Management_Plugin(dcf, print_info)

Management of electricity production and consumption.

Functions:

allocate_power(consumption, flexible_power, ...)

Allocate available power to consumers based on their type.

calculate_fulfillment(demand, remaining)

Calculate fulfillment of demand using stored power.

class pyH2A.Plugins.Power_Management_Plugin.Power_Management_Plugin(dcf, print_info)[source]

Management of electricity production and consumption.

Parameters:
Power Generation > Available energy (daily) > Valuedict, optional

Available energy, daily basis, dictionary of years

Power Generation > Stored energy (daily) > Valuedict, optional

Stored energy, daily basis, dictionary of years

Power Consumption > […] > Valuend.array or float, optional

Array of yearly power consumption values

Power Consumption > […] > Typestr, optional

Type of power consumer, either ‘flexible’ for power consumer that can consume both available power (not stored) or stored power, or ‘on_demand’ for power consumer that can only consume stored power.

Grid Electricity > Cost > Valuefloat or nd.array, optional

Cost of grid electricity, can be float or nd.array with same shape as Technical Operating Parameters and Specifications> Output per Year > Value

Returns:
Power Generation > Available energy (yearly) > Valuend.array

Reamining available energy, yearly basis.

Power Generation > Stored energy (yearly) > Valuend.array

Reamining stored energy, yearly basis.

Power Generation > Available energy (daily) > Valuefloat

Available energy (daily) is set to zero, since available energy is now only in yearly format.

Power Generation > Stored energy (daily) > Valuefloat

Stored energy (daily) is set to zero, since stored energy is now only in yearly format.

Grid Electricity > Used grid electricity (yearly) > Valuend.array

Used grid electricity, yearly basis.

Other Variable Operating Cost - Grid Electricity > Cost of grid electricity (yearly) > Valuend.array

Cost of grid electricity, yearly basis.

Methods:

calculate_consumers(dcf)

Negoitate available and stored power with power consumers.

calculate_consumers(dcf)[source]

Negoitate available and stored power with power consumers. Including fall back options if power generation (either available power or stored power is not available). In those cases they are set to zero.

pyH2A.Plugins.Power_Management_Plugin.allocate_power(consumption, flexible_power, stored_power)[source]

Allocate available power to consumers based on their type.

pyH2A.Plugins.Power_Management_Plugin.calculate_fulfillment(demand, remaining)[source]

Calculate fulfillment of demand using stored power.