File size: 1,030 Bytes
88bc772 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | from dataclasses import dataclass
@dataclass(frozen=True)
class Battery:
"""
Data class representing a battery energy storage system.
Attributes
----------
e_max_mwh : float
Maximum energy capacity of the battery in MWh.
p_ch_max_mw : float
Maximum charging power of the battery in MW.
p_dis_max_mw : float
Maximum discharging power of the battery in MW.
eta_ch : float
Charging efficiency of the battery (default is 0.95).
eta_dis : float
Discharging efficiency of the battery (default is 0.95).
soc_min : float
Minimum state of charge as a fraction of the battery capacity (default is 0.0
representing 0%).
soc_max : float
Maximum state of charge as a fraction of the battery capacity (default is 1.0
representing 100%).
"""
e_max_mwh: float
p_ch_max_mw: float
p_dis_max_mw: float
eta_ch: float = 0.90
eta_dis: float = 0.90
soc_min: float = 0.1 # 0%
soc_max: float = 0.9 # 100% |