Grid connectivity is a key aspect of this work as it enables dynamic energy optimization by utilizing real-time data from the grid for better load balancing and demand response. This mode integrates RESs like PV systems with the grid to ensure a stable supply when RESs are insufficient. It enhances operational efficiency by allowing for the sale of excess renewable energy and optimization based on time-of-use pricing. The grid-connected model also supports scalability, providing a foundation for smart communities with microgrids and energy hubs.
2.2. SGT Formulation
This work considers a characteristic home from [
25,
29,
30], with slight modifications for a one-story townhouse in Burnaby. The base model is a two-story townhouse (2140 sq ft) built in 1995 and renovated in 2007–2008 [
25]. Major renovations typically occur every 15–20 years. The home is oriented south to enhance resource efficiency. The one-Bd SGT is for a young couple in their 30s without children. The two-Bd SGT is for a couple in their late 30s with one child. The three-Bd SGT is for a couple in their early 40s with two teenage children. The four-Bd SGT is for a mature couple in their mid-40s with a family of five.
Leadership in Energy and Environmental Design (LEED) certification and Canada Green Building Council (CGBC) standards are crucial for resource efficiency and emission reduction [
25]. The approach focuses on limiting emissions by using electricity as the sole energy source and installing PV systems for net-zero energy [
31]. This eliminates on-site fossil fuel usage. Surplus electricity can be exported to neighbors during sunnier months. Neighbors with their own PV systems may also generate excess energy, particularly during peak sunlight hours.
Table 1 lists the sustainable materials and components used for SGTs in Canada [
21]. Each is selected for its eco-friendly properties and contribution to sustainable living. Many are already widely used in sustainable buildings globally. Bamboo flooring is renewable, durable, and aesthetically appealing. Recycled and reclaimed wood are commonly used for structural and decorative purposes, promoting waste reduction and resource conservation. PV panels, LED lighting, and heat pumps are essential for energy-efficient buildings and are employed in residential and commercial buildings and GBs [
32,
33,
34]. They meet local and international codes for sustainability, resource efficiency, fire safety, and structural integrity [
35,
36,
37], including LEED and Building Research Establishment Environmental Assessment Method (BREEAM) standards.
Having both air conditioners and heat pumps in SGB designs ensures efficient temperature control year-round, saving energy and reducing environmental impact [
38,
39]. Heat pumps transfer heat rather than generate it, making them more energy-efficient than traditional heating systems. They can provide both heating and cooling, reducing the need for separate systems. As heat pumps use electricity, they help reduce GHG emissions. High-efficiency air conditioners are better suited for extreme cooling needs. Modern air conditioners, especially those connected to smart systems, allow remote control and optimized cooling cycles for energy reduction [
38,
39]. This work considers R6 windows that reduce heat transfer and improve insulation, thus lowering energy consumption for heating and cooling [
21]. This conforms with R2000, a Canadian energy efficiency standard [
40].
Figure 3 shows the SGT components in grid-connected mode. An HVAC system performance model based on [
20,
40,
41] is employed here.
2.2.1. Connecting Townhouses for Improved SGTs
Connecting residential buildings reduces resource consumption and costs [
42]. This is crucial in SGTs to lower load consumption, lower costs, and improve efficiency. Connected buildings enable more efficient energy management [
42] as they form a single unit similar to Micro-Grids (MGs) [
43,
44]. CSGTs in grid-connected mode are considered to reduce electricity consumption, improve demand response, and enhance overall performance. The building consists of four connected townhouses (one-, two-, three-, and four-bedroom CSGTs). Grid connection adds to the system complexity. In this work, the challenges and solutions related to load consumption in SGTs connected to the grid are examined [
42]. The advantages of connecting SGTs include reduced resource consumption, lower costs, improved efficiency, and load optimization. These benefits demonstrate how connected systems contribute to sustainable and efficient SGBs.
Real datasets for connected townhouses include two key components: connected water systems [
25,
45] and party walls [
46,
47]. Party walls are shared walls between adjacent properties and are commonly found in townhouses. They are jointly owned and maintained by property owners. Agreements for party walls outline the responsibilities for maintenance, repairs, alterations, and dispute resolution. Connected townhouses depend on these walls for structural integrity, noise reduction, fire safety, and boundary responsibilities. Connected water systems are also crucial for building performance and occupant comfort [
45]. This work investigates the operational aspects of district cooling systems in connected buildings [
45]. These systems distribute chilled water to multiple buildings, which improves resource efficiency. Resource consumption, temperature management, and system efficiency are examined, as well as how building operations impact cooling infrastructure performance.
2.2.2. CGST Formulation
The CGST formulation is based on the results in [
48,
49]. The heat transfer is given by
where
Q is the heat transfer rate,
k is the thermal conductivity of the wall material,
A is the surface area of the wall,
is the temperature difference across the wall, and
d is the thickness of the wall. This expression describes conductive heat transfer, where thermal energy moves through a solid material. The heat transfer rate is proportional to the thermal conductivity of the material and the cross-sectional area through which the heat moves. It also depends on the temperature difference across the material. However, the rate is inversely proportional to the thickness of the material. This is important for designing energy-efficient systems such as insulation in buildings.
The continuity is
and indicates that the rate of change of mass
within the volume is equal to the difference between the mass flow rate entering
and leaving
the system. This is used to analyze fluid behavior in pipes, ducts, and other systems.
The resource consumption is given by
and is the sum of the consumptions
across different components, systems, or time periods. The goal is to optimize the conditions, such as temperature settings and flow rates, to minimize consumption while maintaining comfortable temperature levels and ensuring adequate flow rates.
The building energy balance is
where Energy In is the total resource consumption and PV output. This includes electricity (lighting, HVAC), gas, and water use. PV output is part of Energy In as it reduces the need for external energy. Energy Out consists of heat loss, heat gain, and total resource consumption output. Heat loss occurs through walls, windows, and the building envelope, while heat gain is the reverse. Total resource consumption output includes energy used by internal systems like HVAC, lighting, and appliances. Energy Storage refers to changes in energy storage within the building, both internally and externally.
Renewable Energy Integration (REI) refers to the incorporation of RES into the building energy system
where Renewable Energy Used is the energy derived from renewable sources like PV panels, and Total Energy Consumption is the resources consumed by the building. This provides a quantitative measure of how much of the building resource consumption is being met by RESs. A higher REI indicates a greater reliance on RES. This is desirable to reduce the carbon footprint and achieve sustainability goals.
The Smart Technology Utilization Index (STUI) is a metric used to quantify the effectiveness and efficiency of smart technology implementation in a building and is given by
where Number of Smart Devices is the number of smart devices used in the building and Total Devices is the number of devices in the building.
Table 2 gives a detailed breakdown of the specifications for the SGTs, ranging from a base townhouse with one bedroom (Base) to a large townhouse with four bedrooms (four-Bd). It provides parameters such as bedroom sizes, living spaces, and total area.
Table 3 summarizes the key energy system parameters for the SGTs. Water heating demand is the energy required for daily hot water use (kWh/day) and varies with the number of bedrooms and expected water consumption. HVAC system capacity is the required HVAC capacity (kW) to maintain indoor comfort and varies by townhouse size and layout. PV panel capacity is the installed capacity (kW) of the PV panels. These data are used in OpenStudio to evaluate energy performance and optimize the design for energy-efficient GBs.
Accurate resource consumption modeling depends on the floor plan, building size, and height, as in
Figure 4 and
Table 2. Floor plans show the building layout, including bedrooms, kitchen, living room, bathrooms, and storage. Building size and height reflect the volume and capacity of the building, which affect energy needs for heating, cooling, and ventilation. Townhouse sizes are measured in square feet (sq ft).
2.3. Experimental Setup
This work employs data collection and software tools to create and test models. Data collection involves building, resource consumption, and weather data. These were gathered through sensors placed within the building. OpenStudio 3.8.0 was used for energy simulation by creating virtual building models for resource consumption scenarios and efficiency solutions. Python 3.11.5 [
50] was used for energy optimization, with pandas for data manipulation, NumPy [
51] for numerical calculation, and Matplotlib [
52] for visualization. The Ninja [
53] website was used to analyze and compare PV systems [
54,
55]. The building model was created in OpenStudio 3.8.0, which integrates with EnergyPlus. OpenStudio automatically converts the .osm file into an EnergyPlus input file (.idf) for execution. The CSGT results were generated using Python and EnergyPlus. Python interfaces with EnergyPlus through the pyenergyplus library. This facilitates simulation automation and the extraction of performance data.
Experiments were conducted to validate the models. Four different townhouse sizes were analyzed to evaluate energy performance, efficiency, and sustainability. Energy performance measures the balance between resources consumed and generated for heating, cooling, lighting, and appliances. Different townhouse sizes cater to various family needs. The models were trained on historical data and validated against real-world observations. Cross-validation was employed to ensure robust solutions.
Real datasets from [
25,
29,
37,
38,
39] are used for modeling. Scripts for converting database tables into datasets were obtained from these references. The AMPds2 dataset is openly available via Harvard Dataverse in CSV, tab-delimited, and RData formats [
25,
29,
30,
37]. The data collection system shown in
Figure 5 monitors resources such as electricity, water, and gas. Data are collected from meters and sent to data acquisition units, which transmit it to a central server. A WiFi access point and cloud connection allow for remote access and integration of external data, enabling real-time monitoring to optimize resource management [
22,
26,
27,
37]. A Building Management System (BMS) is not necessary due to the moderate size of the building network, the simplicity of energy optimization, and the ability to refine strategies through monitoring and assessment. Industrial meters are used for their precision, durability, and reliability. They easily integrate with data acquisition systems for real-time analysis and are suitable for monitoring multiple resources in complex networks like connected townhouses.
Assessing the efficiency, performance, and accuracy of PV panels is key to optimizing RE generation in sustainable housing.
Table 4 provides PV panel parameters for different SGT sizes. A 1 kW system produces about 1200 kWh/year, assuming 1200 h of effective sunlight and 15% cell efficiency. SGT production is calculated by multiplying capacity (in kW) by 1200 kWh/kW/year. Thus, the one-Bd SGT (2.56 kW) produces 3072 kWh/year, the two-Bd (3.21 kW) produces 3840 kWh/year, the three-Bd (3.84 kW) produces 4608 kWh/year, and the four-Bd (4.48 kW) produces 5376 kWh/year. The payback period is calculated based on energy savings.
The total installation cost is
and the annual energy savings is
Then, the payback period for the one-Bd SGT (2.56 kW) is 12.4 years, the two-Bd SGT (3.21 kW) is 15.5 years, the three-Bd SGT (3.84 kW) is 18.6 years, and the four-Bd SGT (4.48 kW) is 21.6 years. These results provide insights into the financial investment and energy savings for SGTs, which help assess their economic viability.
2.4. SGT Performance Metrics
This section presents the key metrics for evaluating and improving the resource efficiency, performance, emissions, and cost of SGTs. The Total Energy Use Intensity (TEUI) is
where Total Energy Consumption is the sum of all energy in kWh and Total Building Area is the floor area in sq ft. This gives an energy efficiency measure per unit area [
56]. The Total Energy Demand Intensity (TEDI) is
where Total Energy Demand is the peak demand in kW and Total Building Area is the floor area in sq ft. A lower TEDI indicates better resource efficiency.
The Energy Consumption Based on Size of Home (SOH) is
where
k is a constant factor to normalize the relationship between the total area of the home and energy consumption intensity. Energy Consumption Intensity is the average rate of resource consumption per unit area. The Control Efficiency Index (CEI) is
where AEU is the actual resource consumption and OEU is the optimal energy usage under ideal conditions. The CEI is used to identify inefficiencies in control strategies.
The Waste Recycling Rate (WRR) is
where Weight of Recycled Waste (WRW) is the total recycled waste weight and Total Weight of Waste is the total weight of the waste generated. A higher WRR indicates better recycling performance. The Material Recycling Percentage (MRP) is
where WRM is the recycled material weight, and TWMU is the total weight of the material used.
The Indoor Air Quality (IAQ) Index is
where IAQ Measurement is the quantitative assessment of indoor air quality parameters such as CO
2, VOCs, CO, and O
3 [
57].
The Seasonal Energy Efficiency Ratio (SEER) is
where the EER values are the efficiencies for different cooling capacities. The Energy Efficiency Ratio (EER) is
where BTU denotes British thermal unit, which is a unit of energy used to measure heat, and W is the power consumption of the system in watts. The Heating Seasonal Performance Factor (HSPF) is
The Coefficient of Performance (COP) is
where Q is the useful heat output and W is the work input required.
The Water Efficiency is
where Water Saved is the amount of water saved by efficiency measures and Total Water Used is the total amount of water consumed.
The Electrical Consumption Efficiency (ECE) is
where Useful Electrical Output is the total electrical energy used by the system and Electrical Input includes energy losses. The Gas Consumption Efficiency (GCE) is
where Heat Output is the useful heat energy from gas and Gas Input is the total gas consumed.
The
R-value is a measure of the thermal resistance of a material, indicating how well it resists the flow of heat. It is used to indicate the insulation properties of a material, with higher values indicating better insulation [
58]. The
R-value of insulation material (in ft
2F·hr/BTU) is
d is the thickness of the insulation material (in inches), and k is the thermal conductivity of the material (in BTU·in/(ft2F·hr)). This value is used to represent the thermal resistance of building components such as walls, windows, roofs, and floors, which contribute to the overall thermal efficiency of the building envelope and thus impact energy performance. OpenStudio allows R-values to be input for components to analyze thermal performance. Key R-values include exterior walls (R-30), windows (R-5, triple-pane with low-emissivity coatings), roof/ceiling (R-50), and floor/slab (R-20, to reduce heat loss through the foundation). OpenStudio provides detailed thermal metrics based on the specified materials and their properties.
The carbon footprint of building operations, expressed in kgCO
2, is
It includes CO
2, CH
4, and N
2O emissions converted into CO
2 equivalents. The floor area of the building is in sq ft [
59]. Regulatory compliance with code standards, including TEUI, TEDI, and GHGI thresholds, is critical. Meeting or exceeding these benchmarks shows environmental leadership [
59]. Buildings with favorable TEUI, TEDI, and GHGI ratings attract more investment, improving long-term viability and economic value [
59]. Incorporating these into building design and management improves resource use and reduces environmental impact. It also enhances building resilience [
59].
A cost analysis helps evaluate resource consumption savings, Return on Investment (ROI), and overall cost–benefit. This is vital for assessing the economic feasibility of efficiency measures and sustainability goals [
60]. The cost of energy is
where Total Energy Consumption is the total resources consumed by the building and Unit Cost is the cost of energy in kWh. Cost savings are the financial savings achieved by comparing costs before and after efficiency measures are implemented
where Cost Before is the cost incurred before implementing resource efficiency initiatives and Cost After is the cost after their implementation. The ROI assesses the financial return on the investment made and is given by
where Net Savings is the total savings achieved from resource efficiency measures and Initial Investment is the cost of implementing these measures. The Net Benefit is the overall financial benefit and is given by
where Total Savings is the cumulative savings achieved from resource efficiency initiatives and Total Costs is the total cost of implementing and maintaining these measures.
The HVAC metric is defined as
where
is the
ith parameter value,
and
are the corresponding maximum and minimum values, and
n is the number of parameters. The parameters included in this metric are heat transfer efficiency, fluid dynamics efficiency, building energy balance, TEUI, TEDI, cooling energy consumption, and IAQ.
Table 5 presents the outcomes for water systems and party wall connections in the SGTs. These results are for grid-connected mode and include daily hot water usage, energy savings, PV panel output, and HVAC system usage. This shows that the daily hot water usage increases with the number of bedrooms, from 58.9 gallons for the one-Bd SGT to 128.6 gallons for the four-Bd SGT. The energy savings from shared walls improve with townhouse size, from 8.2% in the one-Bd unit to 18.1% in the four-Bd unit. The PV panel output increases with unit size from 6.8 kWh for the one-Bd unit to 11.9 kWh for the four-Bd unit. HVAC system usage slightly decreases with shared walls, from 1.32 tons for the one-Bd unit to 2.74 tons for the four-Bd unit. One ton is 12,000 BTU/hour of cooling capacity. As the number of bedrooms increases, resource usage and energy output also increase. Shared walls, however, yield significant energy savings. Comparing
Table 3 and
Table 5 indicates the improvements in efficiency and resource use with shared infrastructure in CSGTs. These units benefit from better energy management, reduced costs, and greater sustainability. The results in
Table 3 and
Table 5 show that CSGTs perform better in several key areas. Shared walls reduce total resource consumption. PV panel output indicates effective solar resource use, and HVAC usage is lower than the capacity in
Table 3, reflecting better energy management. Daily hot water use is also optimized in connected SGTs. Thus, CSGTs provide clear improvements in resource efficiency, solar utilization, and HVAC usage.