Source code for oemof.eesyplan.facades.providers.DSO_hydrogen
from oemof.eesyplan.facades.providers.dso import DSO
[docs]
class DsoHydrogen(DSO):
[docs]
def __init__(
self,
name,
bus_h2,
energy_price=0.3,
feedin_tariff=0.1,
peak_demand_pricing=0,
peak_demand_pricing_period=1,
renewable_share=0.44,
feedin_cap=None,
):
"""
Energy provider for hydrogen distribution.
This class represents a distribution system operator (DSO) that
provides hydrogen from the utility grid with pricing and
feedin capabilities.
.. important ::
The renewable share affects the overall system renewable
factor calculation.
:Structure:
*input* & *output*
bus : bus_h2
Parameters
----------
name : str
|name|
energy_price : float, default=0.3
|energy_prics|
feedin_tariff : float, default=0.1
|feedin_tariff|
peak_demand_pricing : float, default=0
|peak_demand_pricing|
peak_demand_pricing_period : int, default=1
|peak_demand_period|
renewable_share : float, default=0.44
|renewable_share|
feedin_cap : float or None, default=None
|feedin_cap|
Examples
--------
>>> from oemof.eesyplan import CarrierBus
>>> h2bus = CarrierBus(name="h2_bus")
>>> my_dso = DsoHydrogen(
... name="main_grid",
... bus_h2=h2bus,
... energy_price=0.25,
... feedin_tariff=0.08,
... )
"""
super().__init__(
name=name,
bus=bus_h2,
energy_price=energy_price,
feedin_tariff=feedin_tariff,
peak_demand_pricing=peak_demand_pricing,
peak_demand_pricing_period=peak_demand_pricing_period,
renewable_share=renewable_share,
feedin_cap=feedin_cap,
)