thermal
Classes:
-
LawOption–Law options used for series generation.
-
LocalTSGenerationBehavior–Options related to time series generation.
-
ThermalCluster–Thermal cluster modelling object
-
ThermalClusterGroup–Enumeration of the different possibilities of thermal cluster group.
-
ThermalClusterProperties–Thermal cluster properties.
-
ThermalClusterPropertiesUpdate–Update thermal cluster properties.
LawOption
Law options used for series generation. The uniform law is used by default.
LocalTSGenerationBehavior
Options related to time series generation.
The option USE_GLOBAL is used by default.
Attributes:
-
USE_GLOBAL–Use the global time series parameters.
-
FORCE_NO_GENERATION–Do not generate time series.
-
FORCE_GENERATION–Force the generation of time series.
ThermalCluster
ThermalCluster(
thermal_service: BaseThermalService,
area_id: str,
name: str,
properties: Optional[ThermalClusterProperties] = None,
)
Thermal cluster modelling object
Methods:
-
get_co2_cost_matrix–Get \(\ce{CO2}\) cost matrix.
-
get_fuel_cost_matrix–Get fuel cost matrix.
-
get_prepro_data_matrix–Get matrix corresponding to the TS-GENERATOR matrix in AntaresWeb.
-
get_prepro_modulation_matrix–Get matrix corresponding to the COMMON matrix in AntaresWeb.
-
get_series_matrix–Get availibility matrix.
-
set_co2_cost–Set \(\ce{CO2}\) cost matrix.
-
set_fuel_cost–Set fuel cost matrix.
-
set_prepro_data–Set matrix corresponding to the TS-GENERATOR matrix in AntaresWeb.
-
set_prepro_modulation–Set matrix corresponding to the COMMON matrix in AntaresWeb.
-
set_series–Set availibility time-series.
-
update_properties–Update properties of the thermal cluster.
Attributes:
-
area_id(str) –Area ID.
-
id(str) –ID of the thermal cluster.
-
name(str) –Name of the thermal cluster.
-
properties(ThermalClusterProperties) –Properties of the thermal cluster.
Source code in src/antares/craft/model/thermal.py
get_co2_cost_matrix
Get \(\ce{CO2}\) cost matrix.
Returns:
-
DataFrame–The \(\ce{CO2}\) cost matrix.
get_fuel_cost_matrix
Get fuel cost matrix.
Returns:
-
DataFrame–The fuel cost matrix.
get_prepro_data_matrix
Get matrix corresponding to the TS-GENERATOR matrix in AntaresWeb.
Returns:
-
matrix(DataFrame) –Matrix with outage probabilities and durations to use inside the timeseries generation.
Source code in src/antares/craft/model/thermal.py
get_prepro_modulation_matrix
Get matrix corresponding to the COMMON matrix in AntaresWeb.
Returns:
-
matrix(DataFrame) –Matrix for the "Marginal cost modulation", "Market bid modulation", "Capacity modulation" and "Min gen modulation".
Source code in src/antares/craft/model/thermal.py
get_series_matrix
Get availibility matrix.
Returns:
-
DataFrame–The availibility time-series of the thermal cluster.
Source code in src/antares/craft/model/thermal.py
set_co2_cost
set_co2_cost(matrix: DataFrame) -> None
Set \(\ce{CO2}\) cost matrix.
Parameters:
-
(matrixDataFrame) –The \(\ce{CO2}\) cost matrix.
Source code in src/antares/craft/model/thermal.py
set_fuel_cost
set_fuel_cost(matrix: DataFrame) -> None
Set fuel cost matrix.
Parameters:
-
(matrixDataFrame) –The fuel cost matrix.
set_prepro_data
set_prepro_data(matrix: DataFrame) -> None
Set matrix corresponding to the TS-GENERATOR matrix in AntaresWeb.
Parameters:
-
(matrixDataFrame) –Matrix with outage probabilities and durations to use inside the timeseries generation.
Source code in src/antares/craft/model/thermal.py
set_prepro_modulation
set_prepro_modulation(matrix: DataFrame) -> None
Set matrix corresponding to the COMMON matrix in AntaresWeb.
Parameters:
-
(matrixDataFrame) –Matrix for the "Marginal cost modulation", "Market bid modulation", "Capacity modulation" and "Min gen modulation".
Source code in src/antares/craft/model/thermal.py
set_series
set_series(matrix: DataFrame) -> None
Set availibility time-series.
Parameters:
-
(matrixDataFrame) –Availibity time-series.
update_properties
update_properties(
properties: ThermalClusterPropertiesUpdate,
) -> ThermalClusterProperties
Update properties of the thermal cluster.
Parameters:
-
(propertiesThermalClusterPropertiesUpdate) –Properties to update.
Returns:
-
ThermalClusterProperties–The updated thermal properties.
Source code in src/antares/craft/model/thermal.py
ThermalClusterGroup
Enumeration of the different possibilities of thermal cluster group.
Attributes:
-
NUCLEAR–Nuclear.
-
LIGNITE–Lignite.
-
HARD_COAL–Hard coal.
-
GAS–Gas.
-
OIL–Oil.
-
MIXED_FUEL–Mixed fuel.
-
OTHER1–Other 1.
-
OTHER2–Other 2.
-
OTHER3–Other 3.
-
OTHER4–Other 4.
ThermalClusterProperties
dataclass
ThermalClusterProperties(
enabled: bool = True,
unit_count: int = 1,
nominal_capacity: float = 0,
group: str = value,
gen_ts: LocalTSGenerationBehavior = USE_GLOBAL,
min_stable_power: float = 0,
min_up_time: int = 1,
min_down_time: int = 1,
must_run: bool = False,
spinning: float = 0,
volatility_forced: float = 0,
volatility_planned: float = 0,
law_forced: LawOption = UNIFORM,
law_planned: LawOption = UNIFORM,
marginal_cost: float = 0,
spread_cost: float = 0,
fixed_cost: float = 0,
startup_cost: float = 0,
market_bid_cost: float = 0,
co2: float = 0,
nh3: float = 0,
so2: float = 0,
nox: float = 0,
pm2_5: float = 0,
pm5: float = 0,
pm10: float = 0,
nmvoc: float = 0,
op1: float = 0,
op2: float = 0,
op3: float = 0,
op4: float = 0,
op5: float = 0,
cost_generation: ThermalCostGeneration = SET_MANUALLY,
efficiency: float = 100,
variable_o_m_cost: float = 0,
)
Thermal cluster properties.
Attributes:
-
enabled(bool) –Whether the cluster is enabled in the simulation.
-
unit_count(int) –Number of generation units in the cluster.
-
nominal_capacity(float) –Nominal capacity of a single unit in MW.
-
group(str) –Type of thermal generation to organize clusters.
-
gen_ts(LocalTSGenerationBehavior) – -
min_stable_power(float) – -
min_up_time(int) –Duration needed for the cluster to reach its nominal capacity from an initial off state.
-
min_down_time(int) –Duration needed for the cluster to shutdown from its nominal capacity.
-
must_run(bool) –Whether the cluster must run or not.
-
spinning(float) – -
volatility_forced(float) – -
volatility_planned(float) – -
law_forced(LawOption) – -
law_planned(LawOption) – -
marginal_cost(float) –Marginal cost.
-
spread_cost(float) –Spread cost.
-
fixed_cost(float) – -
startup_cost(float) –Start up cost of a unit.
-
market_bid_cost(float) –Market bid cost.
-
co2(float) –Emission rate of \(\ce{CO2}\) in t/MWh.
-
nh3(float) –Emission rate of \(\ce{NH3}\) in t/MWh.
-
so2(float) –Emission rate of \(\ce{SO2}\) in t/MWh.
-
nox(float) –Emission rate of \(\ce{NOx}\) in t/MWh.
-
pm2_5(float) –Emission rate of \(\ce{PM_{2.5}}\) in t/MWh.
-
pm5(float) –Emission rate of \(\ce{PM5}\) in t/MWh.
-
pm10(float) –Emission rate of \(\ce{PM10}\) in t/MWh.
-
nmvoc(float) –Emission rate of \(\ce{NMVOC}\) in t/MWh.
-
op1(float) –Emission rate of other polluant 1 in t/MWh.
-
op2(float) –Emission rate of other polluant 2 in t/MWh.
-
op3(float) –Emission rate of other polluant 3 in t/MWh.
-
op4(float) –Emission rate of other polluant 4 in t/MWh.
-
op5(float) –Emission rate of other polluant 5 in t/MWh.
-
cost_generation(ThermalCostGeneration) –Generation cost.
-
efficiency(float) –Efficiency of the cluster.
-
variable_o_m_cost(float) –Variable O&M costs.
ThermalClusterPropertiesUpdate
dataclass
ThermalClusterPropertiesUpdate(
enabled: Optional[bool] = None,
unit_count: Optional[int] = None,
nominal_capacity: Optional[float] = None,
group: Optional[str] = None,
gen_ts: Optional[LocalTSGenerationBehavior] = None,
min_stable_power: Optional[float] = None,
min_up_time: Optional[int] = None,
min_down_time: Optional[int] = None,
must_run: Optional[bool] = None,
spinning: Optional[float] = None,
volatility_forced: Optional[float] = None,
volatility_planned: Optional[float] = None,
law_forced: Optional[LawOption] = None,
law_planned: Optional[LawOption] = None,
marginal_cost: Optional[float] = None,
spread_cost: Optional[float] = None,
fixed_cost: Optional[float] = None,
startup_cost: Optional[float] = None,
market_bid_cost: Optional[float] = None,
co2: Optional[float] = None,
nh3: Optional[float] = None,
so2: Optional[float] = None,
nox: Optional[float] = None,
pm2_5: Optional[float] = None,
pm5: Optional[float] = None,
pm10: Optional[float] = None,
nmvoc: Optional[float] = None,
op1: Optional[float] = None,
op2: Optional[float] = None,
op3: Optional[float] = None,
op4: Optional[float] = None,
op5: Optional[float] = None,
cost_generation: Optional[ThermalCostGeneration] = None,
efficiency: Optional[float] = None,
variable_o_m_cost: Optional[float] = None,
)
Update thermal cluster properties.
Attributes:
-
group(Optional[str]) –Type of thermal generation to organize clusters.
-
gen_ts(Optional[LocalTSGenerationBehavior]) – -
min_stable_power(Optional[float]) – -
min_up_time(Optional[int]) –Duration needed for the cluster to reach its nominal capacity from an initial off state.
-
min_down_time(Optional[int]) –Duration needed for the cluster to shutdown from its nominal capacity.
-
must_run(Optional[bool]) –Whether the cluster must run or not.
-
spinning(Optional[float]) – -
volatility_forced(Optional[float]) – -
volatility_planned(Optional[float]) – -
law_forced(Optional[LawOption]) – -
law_planned(Optional[LawOption]) – -
marginal_cost(Optional[float]) –Marginal cost.
-
spread_cost(Optional[float]) –Spread cost.
-
fixed_cost(Optional[float]) – -
startup_cost(Optional[float]) –Start up cost of a unit.
-
market_bid_cost(Optional[float]) –Market bid cost.
-
co2(Optional[float]) –Emission rate of \(\ce{CO2}\) in t/MWh.
-
nh3(Optional[float]) –Emission rate of \(\ce{NH3}\) in t/MWh.
-
so2(Optional[float]) –Emission rate of \(\ce{SO2}\) in t/MWh.
-
nox(Optional[float]) –Emission rate of \(\ce{NOx}\) in t/MWh.
-
pm2_5(Optional[float]) –Emission rate of \(\ce{PM{2.5}}\) in t/MWh.
-
pm5(Optional[float]) –Emission rate of \(\ce{PM5}\) in t/MWh.
-
pm10(Optional[float]) –Emission rate of \(\ce{PM10}\) in t/MWh.
-
nmvoc(Optional[float]) –Emission rate of \(\ce{NMVOC}\) in t/MWh.
-
op1(Optional[float]) –Emission rate of other polluant 1 in t/MWh.
-
op2(Optional[float]) –Emission rate of other polluant 2 in t/MWh.
-
op3(Optional[float]) –Emission rate of other polluant 3 in t/MWh.
-
op4(Optional[float]) –Emission rate of other polluant 4 in t/MWh.
-
op5(Optional[float]) –Emission rate of other polluant 5 in t/MWh.
-
cost_generation(Optional[ThermalCostGeneration]) –Generation cost.
-
efficiency(Optional[float]) –Efficiency of the cluster.
-
variable_o_m_cost(Optional[float]) –Variable O&M costs.