pub struct Battery {
pub meta: AssetMeta,
pub capacity: Energy,
pub max_charge: Power,
pub max_discharge: Power,
pub efficiency_charge: f64,
pub efficiency_discharge: f64,
pub soc_min: Soc,
pub soc_max: Soc,
pub reserve_soc: Soc,
pub chemistry: Chemistry,
pub grid_charging_allowed: bool,
}Expand description
A stationary battery.
Fields§
§meta: AssetMetaIdentity and connection.
capacity: EnergyUsable capacity.
max_charge: PowerMaximum charging power.
max_discharge: PowerMaximum discharging power, as a positive magnitude.
efficiency_charge: f64One-way charging efficiency in (0, 1].
efficiency_discharge: f64One-way discharging efficiency in (0, 1].
soc_min: SocLowest state of charge the system will use in normal operation.
soc_max: SocHighest state of charge the system will use.
reserve_soc: SocEnergy held back for a power cut. Neither planner nor arbiter may plan below it; only an islanded system may use it.
chemistry: ChemistryCell chemistry.
grid_charging_allowed: boolWhether the system can charge from the grid at all. A storage system that cannot is outside MiSpeL entirely and always “green”.
Implementations§
Source§impl Battery
impl Battery
Sourcepub fn discharge_floor(&self) -> Soc
pub fn discharge_floor(&self) -> Soc
The lowest state of charge normal operation may reach: the operating floor, or the backup reserve where that is higher.
A reserve is a promise to the household — “there will be something left when the street goes dark” — so it binds the guard, not only the planner.