Calculating the energy consumption from a time series of instantaneous power measurements

By Mateusz, 8 August, 2024

Calculating the energy consumption from a time series of instantaneous power measurements

Energy is the integration of instantaneous power over time. The amount of carbon emissions is proportional to the energy consumed. Some measurement methods allow direct determination of energy consumption. Other methods may give a time series of the power being consumed at discrete points. We can use such a time series of power data to estimate the energy consumed. As long as the power does not vary wildly between the given data points, this will be a close estimate and timestamps are in the same intervals of time.

When limited to only showing current power consumed, the user should collect as much data as possible to help approximate the estimation. 

To get power consumed over the time, we will need to use the following formula (based upon the trapezoidal rule (Stewart, n.d.)):

Figure 1
Formula for energy consumption from a time series of instantaneous power measurement

and

Figure 2
Formula to calculate the time difference between the intervals

 

E total energy consumed in watt-hours (Wh). The next variable n is the total number of timestamps. Pi​ would be the power of the i timestamp(W) and lastly Delta ti would be the time difference between i and i+1 (s) timestamp. The time intervals can be different, just make sure to adjust the formula accordingly using the second formula in Picture 2 where ti would be the time at which the power was measured.

Example:

timestamp 1: 150W 0s

timestamp 2: 400W 10s

timestamp 3: 800W 25s

timestamp 4: 300W 30s

First, the Delta ti should be calculated using the formula from Picture 2.

Δt1​= t2− t1​= 10s− 0s = 10s

Δt2​=t3− t2​= 25s −10s = 15s

Δt3= t4​ − t3​ = 30s − 25s = 5s

(time stamps are in hourly interval, so Delta ti would be 1 for each one of them to simplify the example, as t2 -t1 = 1h and t3 - t2 = 1h too. But these would vary if the timestamps were not taken at the same interval, i.e. second timestamp after 2h and then next one after 4h)

The first step would be to find the energy consumed for each interval.

E1 = ((400W+150W) ÷ 2) × 10s  = (550 ÷ 2) × 10s = 2750J

E2 = ((800W+400W) ÷ 2) × 15s = (1200 ÷ 2) × 15s = 9000J

E3 = ((300W+800W) ÷ 2) × 5s = (1100 ÷ 2) × 5s = 2750J

E = Energy1 + Energy2 + Energy3= 2750J + 9000J + 2750J = 14500J

1KWh = 3600000 Joules

14500J = 0.00403 kWh

This value later can be converted to Joules by multiplying times, 3600 which in this example would result in 3,150,000 Joules. That result would then allow calculating the carbon footprint based on the energy consumed, which is explained here. 


 

References

James Stewart (n.d.). Approximate Integration: Trapezoid Rule and Simpson’s Rule. Available at: https://www.stewartcalculus.com/data/default/upfiles/09631_ApproximateIntegration_ptg1_hr_stu_001-022.pdf (Accessed on: 22nd August 2024)