Skip to main content

Battery

A data center can have a battery. A battery stores energy from the power source and can supply it to the hosts later. A Battery Policy decides when it charges and discharges.

FieldTypeDefaultDescription
namestring"Battery"Name of the battery.
capacityEnergyrequiredThe amount of energy the battery can store.
chargingSpeedPowerrequiredThe speed at which the battery charges.
initialChargeEnergy0The charge at the start of the simulation.
policypolicyrequiredWhen the battery charges and discharges.
embodiedCarbonnumber0The carbon emitted to manufacture the battery, in kg CO2.
expectedLifetimenumber0The expected lifetime of the battery, in years.
caution

A plain number for capacity or initialCharge is read in Joule. Write "100 kWh" for kilowatt-hours.

Battery Policies​

The Battery policy decides when to charge and discharge the battery. At the moment, OpenDC only supports the use of batteries to reduce the carbon emissions of a datacenter. This is done by charging when carbon intensity is low, and discharging when high.

TypeFieldsThe carbon intensity is low when it is
singlecarbonThresholdbelow carbonThreshold.
doublelowerThreshold, upperThresholdbelow lowerThreshold, and high when it is above upperThreshold. In between, the battery is idle.
runningMeanstartingThreshold, windowSizebelow the mean of the last windowSize carbon intensities.
runningMeanPlusstartingThreshold, windowSizelike runningMean, but the battery only starts charging once the carbon intensity stops decreasing.

Example​

"battery": {
"capacity": "100 kWh",
"chargingSpeed": "5000 W",
"initialCharge": "20 kWh",
"policy": { "type": "runningMeanPlus", "startingThreshold": 150.0, "windowSize": 168 },
"embodiedCarbon": 1200.0,
"expectedLifetime": 10.0
}