District Energy Plugin¶
The Big Picture¶
A district level thermal energy plant comprises several equipment that serve the distribution network for a project’s hot water, chilled water and electricity requirements by converting grid purchased utilities into usable thermal and electrical energy. The plant inputs, usually a combination of grid electricity and natural gas, can vary considerably based on the selection, capacity and efficiency of various plant equipment. The thermal plant should be configured carefully after considering the load balance between project electricity and thermal energy requirements, and the relative emissions and costs associated with grid electricity and natural gas.
The model is defined as a cascade of different components (energy modules) that try to meet the demand (either hot water, chilled water or electricity) for all 8760 hours of the year. A module will supply energy up to its given capacity. If the demand is higher than a module’s capacity, the remaining demand will be met by the subsequent modules in the chain. The chain of energy supplies is defined here and illustrated in Fig. 14.
The input to the tool includes hourly load profiles for hot water, chilled water, and electricity, as simulated by the Operational Energy Module and, in a future version of this plugin, the dynamic distribution network module. As each equipment is individually enabled or disabled by the user, and its performance characteristics are modified, the thermal plant planning tool calculates the hourly consumption of purchased grid electricity and natural gas.
Input Profiles¶
Model component / Input parameter  Default Value 

Hourly chilled water load profile (kWh)  From distribution network 
Hourly hot water load profile (kWh)  
Hourly electricity load profile (kWh)  
Hourly location solar radiation data (kWh/m2)  From selected weather file 
Hourly location wind speed data (m/s) 
Note
In this version of the plugin, the model assumes there is no heat loss due to the distribution network.
Energy Supply Modules¶
The following section presents a mathematical description of each energy modules.
Absorption chillers¶
The model assumes that the absorption chillers meet the base load. It is the first module that will be used to meet the demand up to the chillers capacity. The annual hot water required to generate project chilled water, \(hw_{abs}\), is added to the projects hot water demand and can be expressed as:
The chilled water demand met by the absorption chiller, \(chw_{abs}\), is given by:
Input Parameters¶
Model component / Input parameter  Description  Default Value 

Capacity as percent of peak cooling load (%)  Ratio of cooling delivered by absorption chillers to total load at peak conditions  0 
Cooling coefficient of performance  Average annual ratio of useful cooling delivered to natural gas consumed  0.90 
Typical Values¶
Table Table 9 summarizes typical chiller efficiency ranges for different chiller technologies.
Chiller type  Typical efficiency  Capacity (KW) 

Steam driven centrifugal HW absorption chiller (single effect)  COP 0.55–0.70  <200 to >11500 
Steam absorption chiller (single effect)  COP 0.60–0.8  <200 to >11500 
Direct fired (double effect) absorption chiller  COP 0.85–1.30  <350 to >11500 
Electric chillers¶
If the absorption chillers can’t supply all the chilled water demand, then the electric chillers will cover the remaining. This module has a infinite capacity. It’s electricity demand [kWh] is defined as:
and the chilled water produced [kWh] is defined as:
Input Parameters¶
Model component / Input parameter  Description  Default Value 

Cooling coefficient of performance  Average annual ratio of useful cooling delivered to electricity consumed  4.40 
Typical Values¶
Table Table 10 summarizes typical chiller efficiency ranges for different chiller technologies.
Chiller type  Typical efficiency  Capacity (KW) 

Electric centrifugal (standard single compressor)  COP 4.7–6.75  1750 to > 5275 
Electric centrifugal (standard dual compressor)  COP 4.7–6.75  5275 to >14000 
Electric centrifugal (single compressor industrial – field erected)  COP 4.7–6.75  8800 to > 20000 
Solar thermal collectors¶
Similarly to chilled water, the hourly hot water load profile (\(hw_n\)), is an input to the model from the distribution network. This module calculates hot water generation potential per unit collector area based on user defined values of collector efficiency (\(eff_{shw}\)), an area utilization factor to account for collector frames and other infrastructural requirements (\(util_{shw}\)), and miscellaneous losses (\(loss_{shw}\)). In addition to these performance parameters, users input an offset target as a percentage of total annual hot water demand (\(off_{shw}\)). In combination with the hourly solar radiation data available from the weather file (\(rad_n\)), the model calculates the overall area needed for solar collectors (\(area_{shw}\)), and the annual total solar hot water generation to meet building loads (\(hw_{shw}\)), which can be expressed as:
Note
This module cannot model the solar radiation on an inclined surface. It will therefore assume solar collectors are laid horizontally. This simplification is fine considering the level of detail of an early design analysis.
Model component / Input parameter  Description  Default Value 

Target offset as percent of annual energy (%)  Ratio of heating delivered by solar collectors to total annual heating requirement  0 
Collector efficiency (%)  Average annual ratio of the heat output from collectors divided by received solar radiation  45 
Area utilization factor (%)  Accounts for collector frames and other infrastructural requirements  75 
Miscellaneous losses (%)  Accounts for other losses including leakage, distribution, or context shading  15 
Hot Water Storage Tanks¶
Any solar generation that is surplus to the project loads for each hour is assumed to charge a hot water tank. Based on a user defined tank capacity (\(cap_{hwt}\)), the previous hour’s charge (\(chg_{n1}\)) and current balance (surplus  deficits), the model calculates the tank charge for each hour (\(chg_n\)). First, the solar hot water balance is defined as:
It represents the energy that goes into or comes out of the storage system. If \(bal_{shw}\) is negative, it means that we are discharging the tank during this timestep. If it is positive, then we are charging the tank. Tank charging and discharging is limited by the charging and discharging rates, which are calculated based on the size of the storage.
Note
Charging and Discharging Rates
The module assumes the storage system can be fully charged during \(n\) days of autonomy, assuming only 12 hours per day can supply solar energy to the tank. For example, if a storage tank has an autonomy of 3 days, it’s charging rate will be \(rate = \frac{cap_{hwt}}{nb_{days} * \text{12 hours/day}} \text{[kWh/h]}\), where \(cap_{hwt}\) is the capacity of the tank [kWh] and \(nb_{days}\) is the number of days of autonomy specified by the user.
Input Parameters¶
Model component / Input parameter  Description  Default Value 

Capacity as the number of days of autonomy (#)  Number of average annual days that tanks can meet demand once fully charged  0 
Miscellaneous losses (%)  Accounts for other losses including leakage and distribution  15 
Electric Heat Pumps¶
The model assumes that these loads are first met by renewables along with thermal storage, and only demand in surplus of their user defined capacity is sent over to the remaining equipment. The electricity consumption (\(elec_{ehp}\)), required to generate hot water from heat pumps is based on their capacity (\(cap_{ehp}\)), and heating coefficient of performance (\(hcop_{ehp}\)), and can be expressed as:
The hot water produced is then defined as:
Input Parameters¶
Model component / Input parameter  Description  Default Value 

Capacity as percent of peak heating load (%)  Ratio of heating delivered by heat pumps to total load at peak conditions  0 
Heating coefficient of performance  Average annual ratio of useful heating delivered to electricity consumed  3.20 
Natural gas boilers¶
The Natural Gas Boilers acts as the last module that can produce hot water. Its priority is lower than the Combined Heat & Power plant, which means that the hot water produced by the boilers supplements any remaining energy that could not be produced by the Solar thermal collectors, the Hot Water Storage Tanks or the Combined Heat & Power plant.
With a user defined heating efficiency (\(eff_{ngb}\)), the hot water produced by the Natural Gas Boilers (\(hw_{ngb}\)) is defined as:
The natural gas consumption of the boilers is then defined as:
Input Parameters¶
Model component / Input parameter  Description  Default Value 

Heating efficiency (%)  Average annual ratio of useful heating delivered to fuel consumed  70 
Photovoltaic Array¶
The photovoltaic calculation is based on user defined values for panel efficiency (\(eff_{pv}\)), an area utilization factor to account for panel frames and other infrastructural requirements (\(util_{pv}\)), and miscellaneous losses (\(loss_{pv}\)). In addition to these performance parameters, users input an offset target as a percentage of total electricity demand. In combination with the hourly solar radiation data available from the weather file (\(rad_n\)), The model calculates the overall area needed for the photovoltaic array (\(area_pv\)), and the total electricity generation (\(elec_pv\)), which can be expressed as:
Note
This module cannot model the solar radiation on an incline surface. It will therefore assume solar collectors are laid horizontally.
Model component / Input parameter  Description  Default Value 

Target offset as percent of annual energy (%)  Ratio of electricity delivered by PV Array to total annual electricity requirement  0 
Cell efficiency (%)  Average annual ratio of electricity output from array divided by received solar radiation  15 
Area utilization factor (%)  Accounts for module frames and other infrastructural requirements  75 
Miscellaneous losses (%)  Accounts for other losses including line losses and balance of system  15 
Wind Turbines¶
The wind turbine calculation is based on user defined values for turbine coefficient of performance (\(C_p\)), the rotor area per turbine (\(A\)), and miscellaneous losses (\(loss_{wnd}\)). In addition to these performance parameters, users input an offset target as a percentage of total electricity demand (\(off_{wnd}\)). In combination with the hourly wind velocity data available from the weather file (\(V\)), the model calculates the number of turbines needed and the annual electricity generation based on equation (12) and equation (13).
Equation (14) is taken from windpowerengineering.com.
Input Parameters¶
Model component / Input parameter  Description  Default Value 

Target offset as percent of annual energy (%)  Ratio of electricity delivered by wind turbines to total annual electricity requirement  0 
Turbine coefficient of performance  Average annual ratio of power captured by turbine to total power available in the wind  0.3 
Cutin speed (m/s)  Minimum wind speed at which the turbine blades overcome friction and begin to rotate  5 
Cutout speed (m/s)  Speed at which the turbine blades are brought to rest to avoid damage from high winds  25 
Rotor area per turbine (m2)  The swept area is the plane of wind intersected by the turbine  15 
Miscellaneous losses (%)  Accounts for other losses  15 
Battery Bank¶
Any renewable energy generation that is surplus of the project loads for each hour is assumed to charge a Battery Bank. Based on a user defined battery capacity (\(cap_{bat}\)), the previous hour’s charge (\(chg_{n1}\)) and current balance (surplus  deficits), the model calculates the battery charge for each hour (\(chg_n\)). Similarly to the Hot water tank, charging and discharging of the battery is limited by its charging and discharging rates. The rates are assumed to follow the same principles as the hot water tank charging and discharging rates.
The electricity balance is defined as the balance of generated electricity and electricity consumption at a particular timestep :
It represents the energy that goes into or comes out of the storage system. If \(bal_{bal}\) is negative, it means that we are discharging the battery during this timestep. If it is positive, then we are charging the battery. Furthermore, the battery sees a certain loss (\(loss_{bat}\)) whenever charging and discharging occurs and thus the battery charge is defined as:
Model component / Input parameter  Description  Default Value 

Capacity as number of days of autonomy (#)  Number of average annual days that batteries can meet demand once fully charged  0 
Miscellaneous losses (%)  Accounts for other losses including line losses and balance of system  15 
Combined Heat & Power¶
By default, the combined heat and power component tracks and serves the remaining project hot water demand up to its maximum heating capacity. The heating capacity is calculated by the model based on user defined electrical capacity (\(cap_{chp}\)), electricity generation efficiency (\(eff_{chp}\)), and heat recovery effectiveness (\(hrec_{chp}\)). The annual heating energy recovered from the combined heat and power plant and supplied to the project (\(hw_{chp}\)), can be expressed as:
The module can also be assigned to track electricity instead of the thermal load. In this case, the combined heat and power component tracks and serves the project electrical load up to its capacity that remains after subtracting the renewable system (\(elec_{ren}\)) and battery bank (\(elec_{bat}\)) supply from overall demand (\(elec_n\)).
Model component / Input parameter  Description  Default Value 

Tracking mode  Control the generator to prioritize meeting the hot water or electricity demand  Thermal 
Capacity as percent of peak electric load (%)  Ratio of electricity delivered by generator to total demand at peak conditions  0 
Electrical efficiency (%)  Average annual ratio of electricity delivered by generator to fuel consumed  22 
Waste heat recovery effectiveness (%)  Average annual ratio of usable heat recovered from generator to fuel consumed  29 
References¶
[1] 
