odys.domain.entities.battery¶
Battery value object: capacity, power limits, charging/discharging efficiency, state-of-charge bounds, self-discharge, and degradation cost. Owned by BatteryStorage and ElectricVehicle.
See Battery in the User Guide.
Battery value object.
This module provides the Battery class: the physics of storing electrical energy, shared by assets that have a battery (battery storage, electric vehicles).
Battery
¶
Bases: BaseModel
Physics of a battery: capacity, power limits, efficiencies, and state of charge limits.
A battery has no name and no identity of its own. It is a value object that
an asset (BatteryStorage, ElectricVehicle) owns. Its state of charge at
the start and end of an optimization belongs to that run, not to the battery,
and is given as an initial or final condition of the EnergySystem.
Source code in src/odys/domain/entities/battery.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |