Skip to content

StephanieWillis/solar-and-heat-pump-savings

Repository files navigation

Heat pump and solar savings

Web app to estimate bill and carbon savings from installing solar, a heat pump, or both in a home. Calculations account for proportion of solar generation that is used within the home vs. exported.

Calculations are hourly rather than half-hourly because the Solar generation API we are using gives hourly results.

Running

docker compose up

or 

pip install -r requirements.txt
cd src
streamlit run main.py 

When using docker compose the url given in your terminal is wrong. The correct url is http://localhost:8083 (because the port stated in the docker file is 8082)

Solar output calculation

Using EU joint research centre calculations.

API. They have various options. The interesting two from our perspective are:

  1. Hourly solar radiation and PV data: does the solar generation calculation for you. This includes very detailed calculations accounting for losses due to temperature and shading due to objects on the horizon
  2. Typical Meteorological Year (TMY) data: Typical year so accounts for any year-on-year variation. Does not include solar generation calculations.

We use #1 here because the solar calculation functionality is more useful than the averaging functionality. A quick analysis of year-on-year variation (documented in documentation/solar_year_on_year_variation) shows the standard deviation is about 3% of the total annual generation. That does mean you could be quite significantly off if you chose the wrong year, but we will go with it for a minute. Later we could pull multiple years and average.

Data sources

Electricity demand excluding space and water heating

Annual totals

Annual electricity demand excluding space and water hetaing is from Table 2 of this energy savings trust report The numbers are a good match for other sources such as the ECUK 2022:Consumption data tables .

Hourly profiles

Using Elexon's user demand profile data for Domestic Unrestricted (single rate) customers (Class 1). This data gives an averaged demand profile for this user class, as explained here . Thanks to the cutmyenergybill project for alerting me to this dataset. The fact that this data is averaged isn't ideal because it is likely smoother than a real demand profile and so may give estimates of solar self-use that are too high. The data also likely includes some households that use some electric resistance heating which may mean that we are double counting a small amount of heating consumption. If you know of better data that gets around these problems please let me know.

Demand profiles in other sources such as this paper and this report are largely consistent with the elexon profiles, but they do show slightly lower winter peak demand.

Heat demand

We took annual heating demand values and half-hourly heating demand profiles from the UKERC dataset "Spatio-temporal heat demand for LSOAs in England and Wales". The methodology use to produce this data can be found in this paper, and the code itself can be found here.

Annual totals

To get indicative values of annual heating demand by building type we used the 'Annual_heating_demand_LSOA' data and took the weighted average for each system/built form combination. We used the values for homes with gas boilers and without energy efficiency upgrades on the basis they are likely to be most representative of the typical stock. The resulting values are hard coded in the constants module.

To corroborate the above, this nesta analysis ) uses small, medium and large heat demand at 9500kWh, 14,500kWh, and 22,000 kWh respectively. This agrees well with the averages produced using the process described above.

Hourly profiles

Half-hourly heating demand profiles for each heating system are taken from the UKERC dataset "Spatio-temporal heat demand for LSOAs in England and Wales".

From their Readme: "The normalised profiles have been temperature corrected based on the number of degree days difference between a typical year and year 2013. Hence, the sum of the values of a normalised heat production profile is equal to 0.961203 instead of 1."" In the step where we pickle the demand profile we normalize it so the profiles sum to 1.

Heating system efficiencies

Heat pumps - using rounded values from 7 kW Vaillant arotherm SCOP data with flow temperature of 55C. These efficiencies are above recorded averages (2.76 according to this nesta analysis) but lower than reported values for high quality installs.

Gas boiler - using 84%, as used in this Delta EE report). Using 80% for water heating due to lower efficiencies in the summer when the boiler only heats hot water.

Oil boiler - using the same values as for a gas boiler because SAP assumptions for a condensing oil boiler are very similar to those for modern condensing gas combi.

Emissions factors

Gas and oil numbers from BEIS UK Government GHG Conversion Factors for Company Reporting , kWh (Net CV) for Natural gas and Burning oil. Electricity emissions factors are UK average from the start of 2022 to 2022-10-26. Data from National Grid ESO.

Tariffs

The default tariffs for gas and electricity are based on the average rate under the October 2023 price cap, which is active until the 30th of December 2023. The electricity export tariff is Octopus's Outgoing Fixed. The oil tariff is a rough average based on Boiler Juice data for September and October 2023.

Cost data

Solar costs are from BEIS data for 2021/22 installs accredited under MCS. We used the upper confidence interval given prices have likely risen since 2021/2022

Heat pump and gas boiler costs from Nesta's How to reduce the cost of heat pumps report

  • Used tables 1 (for semi only) and 2 (for terrace, flat, detached) from
  • Corrected gas boiler cost for semi-detached by same amount as heat pump shifts to keep equivalent
  • Assumed oil and direct electric baseline costs are the same as gas boiler costs. This is probably a poor assumption in the direct electric case

The Nesta prices were in £2021 so we inflated the figures by ratio of retail price index from Oct 2021 to September 2023. That amounts to a 21% cost increase.

Other relevant cost resources here and here

Grant: Boiler Upgrade Scheme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published