hydro
Classes:
-
Hydro–Hydro object of modelling.
-
HydroAllocation–Diagonal term of the hydro allocations matrix used during a heuristic pre-allocation process,
-
HydroProperties–Hydro properties.
-
HydroPropertiesUpdate–Update hydro properties.
-
InflowStructure–The inflow structure.
-
InflowStructureUpdate–Update the inflow structure.
Hydro
Hydro(
service: BaseHydroService,
area_id: str,
properties: HydroProperties,
inflow_structure: InflowStructure,
allocation: list[HydroAllocation],
)
Hydro object of modelling.
Methods:
-
get_credit_modulations–Get credit modulation.
-
get_energy–Get energy.
-
get_inflow_pattern–Get inflow pattern.
-
get_maxpower–Get maximum power.
-
get_mingen–Get minimum generation time-series.
-
get_mod_series– -
get_reservoir–Get reservoir levels.
-
get_ror_series–Get run-of-river generation time-series.
-
get_water_values–Get water values.
-
set_allocation–Set allocation.
-
set_credits_modulation–Set credit_modulation.
-
set_energy–Set energy.
-
set_inflow_pattern–Set inflow pattern.
-
set_maxpower–Set maximum power.
-
set_mingen–Set minimum generation series.
-
set_mod_series–Set modulation series.
-
set_reservoir–Set reservoir.
-
set_ror_series–Set run-of-river generation series.
-
set_water_values–Set water values.
-
update_inflow_structure–Update inflow structure.
-
update_properties–Update hydro properties.
Attributes:
-
allocation(list[HydroAllocation]) –Hydro allocations.
-
area_id(str) –Area ID.
-
inflow_structure(InflowStructure) –Inflow structure.
-
properties(HydroProperties) –Hydro properties.
Source code in src/antares/craft/model/hydro.py
get_credit_modulations
Get credit modulation.
Returns:
-
DataFrame–Credit modulation
get_energy
get_inflow_pattern
Get inflow pattern.
Returns:
-
DataFrame–Inflow pattern time-series.
get_maxpower
get_mingen
Get minimum generation time-series.
Returns:
-
DataFrame–Minimum generation time-series.
get_mod_series
get_reservoir
Get reservoir levels.
Returns:
-
DataFrame–The reservoir level time-series.
get_ror_series
Get run-of-river generation time-series.
Returns:
-
DataFrame–Run-of-river time-series.
get_water_values
Get water values.
Returns:
-
DataFrame–Water values time-series which depend on the date (365 days) and the reservoir fill percentage.
Source code in src/antares/craft/model/hydro.py
set_allocation
set_allocation(allocation: list[HydroAllocation]) -> None
Set allocation.
Parameters:
-
(allocationlist[HydroAllocation]) –list of the hydro allocation
Source code in src/antares/craft/model/hydro.py
set_credits_modulation
set_credits_modulation(series: DataFrame) -> None
Set credit_modulation.
Parameters:
-
(seriesDataFrame) –A matrix of the generating power and the pumping power depending on the reservoir fill level.
Source code in src/antares/craft/model/hydro.py
set_energy
set_energy(series: DataFrame) -> None
set_inflow_pattern
set_inflow_pattern(series: DataFrame) -> None
Set inflow pattern.
Parameters:
-
(seriesDataFrame) –The time-series.
set_maxpower
set_maxpower(series: DataFrame) -> None
Set maximum power.
Parameters:
-
(seriesDataFrame) –The time-series.
set_mingen
set_mingen(series: DataFrame) -> None
Set minimum generation series.
Parameters:
-
(seriesDataFrame) –The time-series.
set_mod_series
set_mod_series(series: DataFrame) -> None
Set modulation series.
Parameters:
-
(seriesDataFrame) –The time-series.
set_reservoir
set_reservoir(series: DataFrame) -> None
Set reservoir.
Parameters:
-
(seriesDataFrame) –The time-series.
set_ror_series
set_ror_series(series: DataFrame) -> None
Set run-of-river generation series.
Parameters:
-
(seriesDataFrame) –The time-series.
set_water_values
set_water_values(series: DataFrame) -> None
Set water values.
Parameters:
-
(seriesDataFrame) –The time-series.
update_inflow_structure
update_inflow_structure(inflow_structure: InflowStructureUpdate) -> None
Update inflow structure.
Parameters:
-
(inflow_structureInflowStructureUpdate) –Inflow structure to update.
Source code in src/antares/craft/model/hydro.py
update_properties
update_properties(properties: HydroPropertiesUpdate) -> None
Update hydro properties.
Parameters:
-
(propertiesHydroPropertiesUpdate) –Hydro properties to update.
Source code in src/antares/craft/model/hydro.py
HydroAllocation
dataclass
HydroProperties
dataclass
HydroProperties(
inter_daily_breakdown: float = 1,
intra_daily_modulation: float = 24,
inter_monthly_breakdown: float = 1,
reservoir: bool = False,
reservoir_capacity: float = 0,
follow_load: bool = True,
use_water: bool = False,
hard_bounds: bool = False,
initialize_reservoir_date: int = 0,
use_heuristic: bool = True,
power_to_level: bool = False,
use_leeway: bool = False,
leeway_low: float = 1,
leeway_up: float = 1,
pumping_efficiency: float = 1,
overflow_spilled_cost_difference: Optional[float] = None,
)
Hydro properties.
Attributes:
-
inter_daily_breakdown(float) –Inter daily brekdown.
-
intra_daily_modulation(float) –Intra daily modulation.
-
inter_monthly_breakdown(float) –Inter monthly breakdown.
-
reservoir(bool) –Whether or not use reservoir management.
-
reservoir_capacity(float) –Reservoir capacity in MWh.
-
follow_load(bool) –Whether or not follow load modulations.
-
use_water(bool) –Whether or not use water values.
-
hard_bounds(bool) –Whether or not use hard bounds on rule curves.
-
initialize_reservoir_date(int) –The number of the month (0 to 11).
-
use_heuristic(bool) –Whether or not use the hydro heuristic in the simulation. See more on the hydro heuristic here.
-
power_to_level(bool) –Whether or not use power to level modulations.
-
use_leeway(bool) –Whether or not use leeway.
-
leeway_low(float) –Leeway low bound.
-
leeway_up(float) –Leeway upper bound.
-
pumping_efficiency(float) –Pumping efficiency ratio.
-
overflow_spilled_cost_difference(Optional[float]) –(Introduced in v9.2)
Methods:
-
from_update_properties–Create a new
HydroPropertiesinstance by updating the current properties. -
to_update_properties–Converts the current
HydroPropertiesinstance into aHydroPropertiesUpdateobject.
from_update_properties
from_update_properties(update_properties: HydroPropertiesUpdate) -> HydroProperties
Create a new HydroProperties instance by updating the current properties.
Parameters:
-
(update_propertiesHydroPropertiesUpdate) –An object containing the properties to update. Only non-None fields in
update_propertieswill override the current values.
Returns:
-
HydroProperties–A new instance with updated properties.
Source code in src/antares/craft/model/hydro.py
to_update_properties
to_update_properties() -> HydroPropertiesUpdate
Converts the current HydroProperties instance into a HydroPropertiesUpdate object.
Returns:
-
HydroPropertiesUpdate–An instance of
HydroPropertiesUpdatewith all properties initialized -
HydroPropertiesUpdate–to the current values of this
HydroPropertiesinstance.
Source code in src/antares/craft/model/hydro.py
HydroPropertiesUpdate
dataclass
HydroPropertiesUpdate(
inter_daily_breakdown: Optional[float] = None,
intra_daily_modulation: Optional[float] = None,
inter_monthly_breakdown: Optional[float] = None,
reservoir: Optional[bool] = None,
reservoir_capacity: Optional[float] = None,
follow_load: Optional[bool] = None,
use_water: Optional[bool] = None,
hard_bounds: Optional[bool] = None,
initialize_reservoir_date: Optional[int] = None,
use_heuristic: Optional[bool] = None,
power_to_level: Optional[bool] = None,
use_leeway: Optional[bool] = None,
leeway_low: Optional[float] = None,
leeway_up: Optional[float] = None,
pumping_efficiency: Optional[float] = None,
overflow_spilled_cost_difference: Optional[float] = None,
)
Update hydro properties.
Attributes:
-
inter_daily_breakdown(Optional[float]) –Inter daily brekdown.
-
intra_daily_modulation(Optional[float]) –Intra daily modulation.
-
inter_monthly_breakdown(Optional[float]) –Inter monthly breakdown.
-
reservoir(Optional[bool]) –Whether or not use reservoir management.
-
reservoir_capacity(Optional[float]) –Reservoir capacity in MWh.
-
follow_load(Optional[bool]) –Whether or not follow load modulations.
-
use_water(Optional[bool]) –Whether or not use water values.
-
hard_bounds(Optional[bool]) –Whether or not use hard bounds on rule curves.
-
initialize_reservoir_date(Optional[int]) –The number of the month (0 to 11).
-
use_heuristic(Optional[bool]) –Whether or not use the hydro heuristic in the simulation.
-
power_to_level(Optional[bool]) –Whether or not use power to level modulations.
-
use_leeway(Optional[bool]) –Whether or not use leeway.
-
leeway_low(Optional[float]) –Leeway low bound.
-
leeway_up(Optional[float]) –Leeway upper bound.
-
pumping_efficiency(Optional[float]) –Pumping efficiency ratio.
-
overflow_spilled_cost_difference(Optional[float]) –(Introduced in v9.2)
InflowStructure
dataclass
InflowStructure(intermonthly_correlation: float = 0.5)