Next Article in Journal
An Artificial Intelligence Frequency Regulation Strategy for Renewable Energy Grids Based on Hybrid Energy Storage
Previous Article in Journal
Cable External Breakage Source Localization Method Based on Improved Generalized Cross-Correlation Phase Transform with Multi-Sensor Fusion
Previous Article in Special Issue
Collaborative Scheduling Framework for Post-Disaster Restoration: Integrating Electric Vehicles and Traffic Dynamics in Waterlogging Scenarios
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Green’s Function Approach for Simulating District Heating Networks

by
Ke Xu
1,2,
Dengxin Ai
1,
Changlong Sun
3,
Yan Qi
1,
Jiaojiao Wang
3,4,
Fan Yang
3,4 and
Hechen Ren
3,4,5,*
1
Electric Power Research Institute of State Grid, Tianjin Electric Power Company, Tianjin 300010, China
2
State Grid Smart Internet of Vehicle Co., Ltd., Beijing 100052, China
3
Center for Joint Quantum Studies, Department of Physics, Tianjin University, Tianjin 300350, China
4
Tianjin Key Laboratory of Low Dimensional Materials Physics and Preparing Technology, Department of Physics, Tianjin University, Tianjin 300350, China
5
Joint School of National University of Singapore and Tianjin University, International Campus of Tianjin University, Binhai New City, Fuzhou 350207, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(10), 2627; https://doi.org/10.3390/en18102627
Submission received: 12 March 2025 / Revised: 22 April 2025 / Accepted: 15 May 2025 / Published: 20 May 2025

Abstract

:
In this paper, we introduce a mathematical framework for analyzing and optimizing district heating networks by leveraging the Green’s function method. Traditional numerical methods for simulating district heating networks often face computational challenges and lack transparency in revealing cause-and-effect relationships in heat propagation. By treating temperature as a scalar field, we employ Green’s function methods to derive analytical solutions that provide a more transparent and intuitive understanding of how heat propagates through the network in response to various inputs. We demonstrate the application of this framework through two numerical examples involving heating networks. Comparative results show that, under identical hardware conditions, the Green’s function method requires only about one-fifth of the computational time compared to the finite element method for the same case. This approach offers distinct advantages in terms of computational efficiency, accuracy, and interpretability, enabling more effective design, optimization, and control of sustainable district heating systems.

1. Introduction

The escalating threat of global warming imposes a strict limit on our carbon budget [1,2]. Reaching net zero CO2 emissions demands that we be more conscientious than ever about our power generation and consumption and has given rise to smart, integrated energy systems. Across the globe, space heating and cooling consume more than half of our household energy usage [3,4,5]. Among these systems, district heating (Figure 1), which distributes heat from a central heat source to consumers through a system of pipes, is a widely adopted approach. But it remains heavily reliant on fossil fuels like coal and natural gas. In China, for instance, a staggering 90% of district heating energy comes from burning fossil fuels [6]. Diversifying the energy sources that feed district heating systems can make a significant contribution to reducing our global carbon footprint [7]. Optimizing the efficiency of district heating networks offers a double benefit in lowering greenhouse gas emissions. It does so by conserving energy and expanding our ability to integrate clean energy sources into these networks [8,9,10].
A crucial step towards achieving optimized heating efficiency is to model and simulate the temperature profile of heating networks accurately and in a timely manner. Previous works on this subject include a variety of numerical methods, such as finite element [11], plug flow [12,13], steady-state [14,15], dynamic [16,17], and the characteristics method [18,19]. However, a common drawback of these numerical methods—and of solving differential equations in general—is their sensitivity to details of the method itself, the size of the steps taken, and even minute changes in local conditions. For example, when a small dip in one power supply’s output results in a dramatic shift in the stability of the network’s temperature solution, one needs to discern a real chaotic regime from a numerical artifact. To make this task more challenging, these numerical methods often lack transparency when it comes to showing cause and effect across different parts of the system. To see how a user’s heater affects the temperature experienced by other users, one would need to rewrite the entire network’s conditions and solve the problem all over again. Intuitively, however, we should be able to predict this effect simply by knowing the flow through the pipes and the baseline temperature profile, assuming all else stays the same. Furthermore, when multiple users adjust their heaters at different times, we would expect the combined effect to be integrated in a way that aligns with the timestamps of the events.
Central to field theory in physics, Green’s function offers an elegant and effective way to solve partial differential equations. In describing the concept of a field, it is most famously used to solve equations in electrodynamics [20]. In modern physics, Green’s functions have also proven to be a powerful tool for understanding electronic systems, including many-body systems like superconductors [21].
A key advantage of Green’s functions is that they present solutions in a causal form. When using Green’s function methods to solve a partial differential equation, we first solve the homogeneous equation, which describes a uniform spacetime with no source or drain of the field. Then we solve the inhomogeneous equation with an impulse source, hence determining the Green’s function. Once the Green’s function is obtained, the full solution to the differential equation is obtained by integrating over all sources and sinks of the field. In real-world problems, this approach not only provides a clear picture of the causal relationships between the source and the field but also reduces computational complexity.
Green’s functions offer an intuitive framework for visualizing how heating impulses propagate through a network over time, as depicted in Figure 1, making them particularly well-suited for solving heat conduction problems [22,23,24,25]. The limited application of Green’s functions to district heating network analysis may stem from the conceptual challenge of treating temperature as a field. Fundamentally, temperature is a statistical property of an ensemble of excitations rather than a conventional field or excitation in itself. However, the differential equation it obeys in the context of heat propagation and diffusion aligns with that of a scalar field, with heat sources and drains acting as its charges. In a district heating system, the dynamic changes in temperature at each point in the network are controlled by the inputs from heaters and users. By viewing temperature as a scalar field, we can gain valuable insights into how it responds to various triggers. Furthermore, since the differential equation governing temperature is linear, individual solutions can be linearly superimposed. As a result, the final temperature distribution is obtained by integrating the contributions from all inputs across the network [22].
In this paper, we introduce a novel framework for solving district network heating problems by leveraging the power of Green’s functions. We begin by investigating the heat conduction equation within a flowing medium subject to heat dissipation. We derive solutions for both homogeneous and inhomogeneous cases, incorporating boundary conditions that reflect the network topology. These analytical solutions serve as building blocks for modeling integrated heating networks. To demonstrate the effectiveness of this approach, we apply it to two model systems. By employing the Green’s function method for district heating network computations, we achieve both accurate and computationally efficient solutions for the system’s temperature distribution. Through reasonable approximations, we can derive analytical solutions for even highly complex problems, providing deeper insights into heating system dynamics while streamlining the modeling process.
The remainder of the paper is organized as follows. In Section 2, we introduce the Green’s function method and present analytical Green’s functions of the heat conduction equation under different boundary conditions. In Section 3, we present two numerical examples, illustrating temperature distribution calculations using the Green’s function method, along with a comparison to the finite element method in terms of both accuracy and computational efficiency.
By promoting a new perspective that treats temperature as a field, this work sheds light on how concepts from field theory can enhance the simulation and optimization of complex energy networks. As such, this approach not only equips the energy community with a novel computational method but also introduces a powerful conceptual tool, paving the way for further advancements in the field of integrated energy systems.

2. Green’s Function of the Heat Conduction Equation

2.1. Introduction to the Green’s Function Method

The Green’s function method constitutes a rigorous mathematical framework for solving inhomogeneous partial differential equations (PDEs). This approach enables the construction of complete solutions through the superposition of responses to impulsive excitations. Mathematically, the Green’s function G ( x , t ; ξ , τ ) is the solution to a PDE driven by Dirac delta source terms such as δ x ξ δ ( t τ ) . Physically, it is the response of the system at point x and time t induced by a unit impulse applied at position ξ and instant τ .
For instance, for the heat conduction equation for water in a one-dimensional pipe:
ρ c T t κ 2 T x 2 = Q ,
the Green’s function G ( x , t ; ξ , τ ) is defined as the solution to the equation
ρ c G t κ 2 G x 2 = δ x ξ δ t τ
under specific boundary conditions. Here T , v , ρ , c , and κ denote the temperature, flow velocity, density, specific heat capacity, and thermal conductivity of water, respectively, while Q ( x , t ) represents the heat source power per unit volume. The Dirac delta functions δ x ξ and δ ( t τ ) at the right-hand side describe an instantaneous point source located at position ξ and time τ .
Once the Green’s function G x , t ; ξ , τ of the equation is obtained, the solution to the original PDE under an arbitrary heat source Q can be constructed through integrals. With the initial temperature distribution T x , 0 and heat source Q , the solution to Equation (1) is expressed as:
T x , t = G x , t ; ξ , 0 T ξ , 0 d ξ + 0 t G x , t ; ξ , τ Q ξ , τ d ξ d τ .
Here, the first integral term describes how the initial temperature distribution evolves over time, while the second double integral term reflects contributions from the heat source Q ( x , t ) . This formulation elegantly separates the effects of the initial state and the external heat source, providing a clear and systematic framework for analyzing the system’s temperature evolution.

2.2. Heat Conduction Equation for a 1D Cylindrical Pipe with a Steady Flow Velocity

Depicting the dynamics of a district heating system requires consideration of both fluid motion and heat transfer processes. However, Equation (1) does not account for the effects of water flow within the pipeline and, therefore, is inadequate.
During the heating process, the average velocity v of the water flow is generally maintained constant. Under this steady-flow condition, the heat conduction equation for a one-dimensional (1D) pipeline can be obtained by considering energy conservation [8]:
ρ c T ( x , t ) t + ρ c v T ( x , t ) x κ 2 T x , t x 2 = Q x , t .
On the left-hand side of Equation (4), the time-derivative term, ρ c T ( x , t ) t , describes the rate of change of the internal energy density over time. The spatial-derivative term, ρ c v T ( x , t ) x , accounts for the advection of internal energy density due to the water flow. The third term, κ 2 T x , t x 2 , is the heat diffusion term, representing heat conduction driven by the temperature gradient.
The heat source term Q ( x , t ) on the right-hand side of Equation (1) describes the energy exchange between the water and the environment. It consists of three components: a positive term Q 1 , representing external heating, such as heating from electric boilers; a negative term Q 2 , corresponding to the heat load from users; and a dissipation term Q 3 = μ T T 0 / A , describing heat loss from the water to the environment. Here, μ is the heat dissipation coefficient of the pipeline, T 0 is the environmental temperature, and A is the cross-sectional area of the pipeline. The dissipation term Q 3 is a linear function of temperature. Since Q 3 is not a controllable parameter during the heating process, it is convenient to move it to the left-hand side of the equation and no longer treat it as a source term, i.e., letting Q = Q 1 + Q 2 . This yields the modified heat conduction equation:
ρ c T t + ρ c v T x κ 2 T x 2 + μ T T 0 A = Q = Q 1 + Q 2 .
Traditional dynamic simulation approaches typically solve Equation (5) using numerical methods, which often suffer from high computational complexity and cost, and are thus cumbersome for practical use. To address these limitations, in this work, we employ the Green’s function method to solve Equation (5).
However, the complexity of Equation (5) poses significant challenges for directly deriving its Green’s function. Given that the Green’s function for Equation (1) has known analytical solutions under various common boundary conditions, we first apply a mathematical transformation to recast it into a form analogous to Equation (1). This transformation simplifies the problem and allows us to address the additional terms in Equation (5), such as the advection and dissipation terms, using the well-established analytical framework for Equation (1).
To achieve this, we introduce a new function W ( x , t ) to replace the temperature distribution T ( x , t ) . The function W ( x , t ) is defined by the relationship
W x , t e θ ( x , t ) = T x , t T 0 ,
where
θ x , t = v 2 α x v 2 4 α + μ A ρ c t ,
and
α = κ ρ c .
Substituting Equations (6)–(8) into Equation (2) gives the governing equation for W ( x , t ) :
ρ c W ( x , t ) t κ 2 W x , t x 2 = Q exp v x 2 α + v 2 t 4 α + μ t A ρ c .
The mathematical transformation above involves two key mappings: the temperature distribution T ( x , t ) is mapped to W ( x , t ) , and the heat source term Q is mapped to Q exp v x 2 α + v 2 t 4 α + μ t A ρ c .
Equations (1) and (9) have identical mathematical forms, so their Green’s functions are also the same, which enables the calculation of W ( x , t ) using the Green’s function method and subsequently recovers the original temperature distribution T ( x , t ) using Equation (6). This approach not only simplifies the computational process but also provides a more intuitive framework for understanding the temperature dynamics in the system.

2.3. Green’s Function of Heat Conduction Equation Under Different Boundary Conditions

To solve heating problems using the Green’s function method, the first step is to determine the Green’s function of the heat conduction equation (Equations (1) and (9)) under specified boundary conditions.
In practical applications, two primary boundary conditions are typically considered: periodic boundary conditions and fixed endpoint temperature boundary conditions for semi-infinite pipes. The periodic boundary condition is employed to model closed-loop heating systems with prescribed external heat sources, as demonstrated in the example in Section 3.1. Meanwhile, the fixed endpoint temperature boundary condition is utilized to model heating pipelines with a controlled inlet temperature, as illustrated in the example in Section 3.2.

2.3.1. Periodic Boundary Condition

The periodic boundary condition is particularly suited for modeling closed-loop pipeline systems. For a pipeline of total length L , the periodic condition enforces T 0 = T ( L ) and d T d x 0 = d T d x ( L ) at the connection point. These constraints result in a periodic Green’s function with the same period L , reflecting the physical reality that thermal disturbances propagate cyclically through the closed-loop pipeline.
For the conventional heat conduction equations like Equations (1) and (9), the Green’s function under periodic boundary conditions admits an analytical solution, expressed as
G x , t ; ξ , τ = n Z 1 4 π α t τ exp x ξ n L 2 4 α t τ .

2.3.2. Semi-Infinite 1D Pipe with a Fixed Endpoint Temperature

In district heating systems, controlling the inlet temperature of pipelines is a widely adopted operational strategy. In such cases, it is necessary to model the pipeline using fixed endpoint temperature boundary conditions for a semi-infinite domain. When the endpoint temperature is fixed at T 0 , t = 0 , the Green’s functions for Equations (1) and (9) can be derived using the method of images. The principle of this method is to introduce a virtual negative image source in the x < 0 region for each real heat source in x > 0 , which ensures that the boundary condition T 0 , t = 0 is satisfied. The resulting Green’s function for Equations (1) and (9) is
G x , t ; ξ , τ = 1 4 π α t τ e x p x ξ 2 4 α t τ e x p x + ξ 2 4 α t τ .
The Green’s function given by Equation (11) can also be used to calculate the temperature distribution under non-zero boundary conditions T 0 , t = T 1 0 . In this case, we define a new variable T = T T 1 , which satisfies T 0 , t = 0 . Using Equations (3) and (11), T x , t is given by
T x , t = 0 G x , t ; ξ , 0 T ξ , 0 d ξ + 0 t 0 G x , t ; ξ , τ Q ξ , τ d ξ d τ .
The original temperature distribution is then recovered via T = T + T 1 :
T x , t = T 1 + 0 G x , t ; ξ , 0 T ξ , 0 T 1 d ξ   + 0 t 0 G x , t ; ξ , τ Q ξ , τ d ξ d τ .

2.4. High-Flow-Velocity Approximation

2.4.1. Transient States

In the previous sections, we analytically derived the Green’s functions of Equation (5) under both the periodic boundary condition (Equation (10)) and the fixed endpoint temperature condition (Equation (11)). These results provide analytical solutions for heat transfer in 1D pipelines with steady flow velocities.
However, in engineering applications, the flow velocity in main pipelines typically exceeds 1 m/s. Under such high-flow conditions, the contribution of advection to heat transfer significantly outweighs that of thermal diffusion. As a result, the heat diffusion term, κ 2 T x , t x 2 , can be safely neglected [13,26,27]. With this approximation, Equation (5) is simplified to:
ρ c T t + ρ c v T x + μ T T 0 A = Q .
Equation (14) is a first-order PDE, which is much simpler than Equation (5). To solve for its Green’s functions, we first introduce the relative temperature Δ T = T T 0 to eliminate the inhomogeneous term μ T 0 / A on the left-hand side of the equation:
ρ c Δ T t + ρ c v Δ T x + μ A Δ T = Q .
The Green’s function for Equation (15) under the periodic boundary condition T x = T x + L can then be obtained using Fourier series expansion:
G x , t ; ξ , τ = 1 ρ c L e μ A ρ c ( t τ ) n Z δ x ξ v t τ n L .
This expression allows for the calculation of the temperature distribution in a closed-loop pipeline of total length L .
To simulate semi-infinite pipelines with given inlet temperatures, we also need the Green’s function for Equation (15) under the boundary condition T x , 0 = 0 . The Green’s function is given by
G x , t ; ξ , τ = 1 ρ c e μ A ρ c t τ δ x ξ v t τ ,
where x 0 and ξ > 0 .
In the examples presented in Section 3, we will use Equations (16) and (17) for numerical calculations.

2.4.2. Steady State

Calculating the temperature distribution T ( x , t ) using Equation (3) requires knowledge of the initial temperature distribution T ( x , 0 ) . However, in many practical applications, the system is often assumed to be in a steady state at t = 0 , and T ( x , 0 ) is not directly known. In such cases, the initial temperature distribution T ( x , 0 ) must be determined by solving the steady-state equation.
A steady state refers to a condition where the system remains unchanged over time. In this state, all heat source terms are time-independent, and the temperature distribution T ( x ) is also time-invariant. Under steady-state conditions, Equation (15) simplifies to:
ρ c v x Δ T + μ A Δ T = Q .
Equation (16) is a first-order partial differential equation in x and can also be solved using the Green’s function method. In the following, we present the Green’s functions for Equation (16) under both periodic boundary conditions and fixed endpoint temperature boundary conditions.
Under periodic boundary conditions with a period of L , the Green’s function for Equation (16) is obtained as
G x , ξ = 1 ρ c v L n Z e i 2 π L n x ξ i 2 π L n + μ ρ c v A .
With this Green’s function, the steady-state temperature distribution T ( x ) is given by
T x = T 0 + Δ T ( x ) = T 0 + 0 L G x , ξ Q ξ d ξ .
Under the boundary condition of a fixed endpoint temperature, the Green’s function for Equation (16) is given by
G x , ξ = 1 ρ c v e μ ρ c v A x ξ H x ξ ,
where H x ξ is the Heaviside step function, ensuring that G x , ξ = 0 when x < ξ .
For a fixed endpoint temperature, T 0 = T 1 , T ( x ) can be obtained using the Green’s function in Equation (19) as
T x = T 0 + T 1 T 0 e μ ρ c v A x + 0 G x , ξ Q ξ d ξ .
Here, T x consists of two non-constant terms: The exponentially decaying term represents the influence of the boundary temperature in the presence of dissipation, while the integral term accounts for the impact of the heat source on the steady-state temperature distribution.
It is straightforward to verify that the solution T ( x ) given by Equation (20) satisfies the required boundary conditions. As x 0 , T x T 1 , ensuring the correct endpoint temperature, and as x , T x T 0 , indicating that the temperature asymptotically approaches the ambient temperature.
In the examples presented in Section 3, we will use the Green’s functions given by Equations (17) and (19) for computing the steady-state temperature distributions.

3. Numerical Examples

In this section, we present two numerical examples to illustrate temperature distribution calculations using the Green’s function method. The first example involves a system with a single heating loop, where the water temperature distribution along the pipeline is calculated with respect to the heat source power. The second example examines the temperature distribution in a heating network. The variation in water temperature in the return pipeline is calculated as a function of user load, under the condition of a constant inlet water temperature. The flowchart of the numerical calculation is presented in Figure A1. In both cases, the results obtained using the Green’s function method are in excellent agreement with those from the finite element method, thus validating the reliability of the proposed computational approach.

3.1. Single Heating Loops

In this example, we apply the Green’s function method to calculate the temperature distribution in a closed-loop heating system. The model consists of an electric boiler, a booster pump, two heating pipelines, and a user heat load unit, as shown in Figure 2a. The electric boiler serves as the heat source, heating the water, while the booster pump is used to maintain a constant water flow velocity.
The model parameters are as follows: the lengths of the supply and return pipelines are L 1 = L 2 = 5 km, corresponding to a total pipeline length of L = L 1 + L 2 = 10 km. The heat dissipation coefficient and cross-sectional area of the pipeline are set to μ = 2.8 W/(m∙K) and A = 0.05 m2, respectively. The water flow velocity is v = 2 m/s, and the ambient temperature is T 0 = 0   °C. The electric boiler’s heating power P S varies over time, as depicted in Figure 2b, while the user heat load power remains constant at P L = 8 MW. It is assumed that the density, specific heat capacity, and thermal conductivity of water are temperature-independent, with values of ρ = 1000 kg/m3, c = 4200 J/(kg·K), and κ = 0.7 W/(m·K). The system is assumed to be in a steady state at t = 0 .
Given that the flow velocity is significantly higher than the thermal diffusion speed, we neglect the thermal diffusion term in Equation (5) based on the discussion in Section 2.4 and instead employ Equations (15) and (18) for numerical calculations. Assuming that the heat source is located at x = 0 and the user heat load is at x = L 1 , the heat source terms corresponding to external heating and user heat load can be expressed as Q 1 = P s δ x / A and Q 2 = P L δ x L 1 / A , respectively.
Since the system is in a steady state at t = 0 , we first determine the initial temperature distribution T x , 0 using the steady-state equation (Equation (18)) along with its Green’s function under periodic boundary conditions (Equation (19)). After that, we compute the time-dependent temperature distribution T x , t using the transient equation (Equation (15)) and the corresponding Green’s function under periodic boundary conditions (Equation (16)). The flowchart of the simulation is shown in Figure A1.
The solid lines in Figure 2c depict the inlet and outlet temperatures of both the supply and return pipelines as functions of time. For validation, we also performed the same calculations using the finite element method, with the results shown as dashed lines in Figure 2c. The results obtained from both methods are in perfect agreement, validating the numerical reliability of the Green’s function approach. Furthermore, under identical hardware conditions, the Green’s function method completed the computation in 2.4 s, compared to 11.8 s required by the finite element method, demonstrating a significant improvement in computational efficiency.

3.2. Heating Networks

The following numerical example considers a heating network consisting of two parallel user load units. As illustrated in Figure 3a, the main supply pipeline bifurcates at node A, distributing heat to user loads Load 1 and Load 2, while the return pipelines converge at node D. The return pipelines merge at node D. The numerical method used in this example can be readily extended to more complex networks incorporating additional heat loads.
The model parameters are as follows: The supply and return pipeline lengths for Load 1 are both L L o a d 1 = 2 km, while those for Load 2 are L L o a d 2 = 3 km. The cross-sectional area of the branch pipelines is A = 0.025 m2, the heat dissipation coefficient is μ = 4 W/(m∙K), and the water flow velocity is v = 2 m/s. The heat load powers P L 1 and P L 2 vary independently over time, following the curves shown in Figure 3b. The water temperature at node A is kept constant at T A = 90   ° C , and the ambient temperature is T 0 = 0   ° C . The density, specific heat capacity, and thermal conductivity of water are assumed to be ρ = 1000 kg/m3, c = 4200 J/(kg·K), and κ = 0.7 W/(m·K), respectively. The system is in a steady state at t = 0 .
The numerical calculations in this example are also based on Equations (15) and (18). Since the temperature at node A is constant, we utilize the Green’s functions for boundary conditions with fixed endpoint temperatures (Equations (17) and (21)) for both transient and steady-state analyses. The computational procedure is as follows: First, the initial temperature distributions of the two heating branches, T L o a d 1 ( x ) and T L o a d 2 ( x ) , are obtained using the steady-state Equation (18) and its corresponding Green’s function (21). Then, the outlet temperatures of the return pipelines, T B and T C , are computed as functions of time using the transient Equation (15) and its corresponding Green’s function (17). Finally, the mixed temperature at node D is determined as a weighted average of T B and T C and tracked over time. The results are shown as solid lines in Figure 3c,d. The flowchart of the simulation is shown in Figure A1.
To validate the reliability of our calculations, we repeated the computations using the finite element method, with the results shown as dashed lines in Figure 3c,d. As evident from the comparison, the results obtained from both methods are in perfect agreement, confirming the accuracy and reliability of the Green’s function approach.

4. Conclusions

In this work, we introduced a Green’s-function-based approach for simulating the temperature distribution in district heating networks. By transforming the heat conduction equation into a solvable form, we derived the analytical Green’s functions under both periodic and fixed endpoint temperature boundary conditions, establishing a unified mathematical foundation for analyzing thermal propagation in complex pipeline networks.
The methodology was systematically validated through two building-block examples: a single-loop heating system and a multi-user heating network with distributed thermal loads. In both scenarios, the Green’s function approach produced results consistent with those obtained from finite element simulations, demonstrating its high accuracy and reliability. In addition, benchmark comparisons showed that, under identical hardware conditions, the Green’s function method required only about one-fifth of the computation time compared to the finite element method, confirming its outstanding computational efficiency.
Compared to traditional numerical methods, the Green’s function method offers key advantages, including reduced computational complexity and a clear causal relationship between heat sources and temperature distributions. This approach not only improves the efficiency of heating network simulations but also provides deeper insights into system dynamics. Our findings highlight the potential of Green’s functions as a powerful analytical framework for optimizing district heating systems and integrating renewable energy sources.
Future work will focus on extending this method to more complex heating networks, incorporating time-dependent boundary conditions, and exploring its applications in practical energy management scenarios.

Author Contributions

C.S., J.W., D.A., C.S., J.W., F.Y. and H.R. performed the theoretical derivation; C.S. performed the numerical calculation; K.X., D.A., Y.Q., F.Y. and H.R. conceived the project; F.Y. and H.R. supervised the project; F.Y. and H.R. wrote and edited the manuscript with the input of all authors. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by State Grid Tianjin Electric Power Company (grant number: Electric Science R&D 2023-49). H.R. acknowledges funding support from the National Natural Science Foundation of China.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

Authors Ke Xu, Dengxin Ai, and Yan Qi are employed by the company Electric Power Research Institute of State Grid, Tianjin Electric Power Company. Author Ke Xu is employed by the company State Grid Smart Internet of Vehicle Co., Ltd. The authors declare that this study received funding from State Grid Tianjin Electric Power Company. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Nomenclature

SymbolDescriptionUnit
T Temperature°C
T 0 Ambient temperature°C
T , Δ T Temperature differences relative to the endpoint or the ambient°C
T A ,   T B ,   T C , T D Temperature at given positions in the pipeline°C
T L o a d 1 , T L o a d 2 Temperature distribution of the heating branches°C
x ,   ξ Spatial coordinateskm
v Flow velocity of waterm/s
t ,   τ TimeHour
G Green’s function-
δ Dirac delta function-
ACross-sectional area of pipelinesm2
L ,   L 1 ,   L 2 , L L o a d 1 ,   L L o a d 2 Length of pipelineskm
μ Heat dissipation coefficient of pipelinesW/(m∙K)
c Specific heat capacity of waterJ/(kg·K)
κ Thermal conductivity of waterW/(m·K)
Q ,   Q 1 ,   Q 2 ,   Q Heat source power per unit volumeMW/m3
W Intermediate variable defined in Equation (6)-
θ Intermediate variable defined in Equation (7)-
α Intermediate variable defined in Equation (8)-
n Summation index-
P S Power of heat sourceMW
P L ,   P L 1 , P L 2 Power of heat loadMW

Abbreviations

The following abbreviation is used in this manuscript:
PDEPartial differential equations

Appendix A

The simulations in Section 3 were performed using Python 3.9.11 for both the Green’s function and the finite-element method. The flowchart is shown in Figure A1.
Figure A1. Flowchart of the numerical examples in Section 3.
Figure A1. Flowchart of the numerical examples in Section 3.
Energies 18 02627 g0a1

References

  1. IPCC. Summary for Policymakers. In Climate Change 2023: Synthesis Report; Lee, H., Romero, J., Eds.; IPCC: Geneva, Switzerland, 2023; pp. 1–34. [Google Scholar]
  2. Delbeke, J.; Runge-Metzger, A. The Paris Agreement. In Towards a Climate-Neutral Europe, 1st ed.; Delbeke, J., Vis, P., Eds.; Routledge: London, UK, 2019; pp. 24–45. [Google Scholar]
  3. U.S. Energy Information Administration-EIA-Independent Statistics and Analysis. Available online: https://www.eia.gov/consumption/residential/data/2020/index.php (accessed on 29 December 2024).
  4. Van de Graaf, T. International energy agency. In Handbook of Governance and Security, 1st ed.; Sperling, J., Ed.; Edward Elgar Publishing: London, UK, 2014; pp. 489–503. [Google Scholar]
  5. IRENA International Renewable Energy Agency, Power to Heat and Cooling: Status. Available online: https://www.irena.org/Innovation-landscape-for-smart-electrification/Power-to-heat-and-cooling/Status (accessed on 29 December 2024).
  6. Tracking Clean Energy Progress 2023-Analysis-IEA. Available online: https://www.iea.org/reports/tracking-clean-energy-progress-2023 (accessed on 29 December 2024).
  7. Liu, S.; Guo, Y.; Wagner, F.; Liu, H.; Cui, R.Y.; Mauzerall, D.L. Diversifying heat sources in China’s urban district heating systems will reduce risk of carbon lock-in. Nat. Energy 2024, 9, 1021–1031. [Google Scholar] [CrossRef]
  8. Kuntuarova, S.; Licklederer, T.; Huynh, T.; Zinsmeister, D.; Hamacher, T.; Perić, V. Design and simulation of district heating networks: A review of modeling approaches and tools. Energy 2024, 305, 132189. [Google Scholar] [CrossRef]
  9. Pans, M.A.; Claudio, G.; Eames, P.C. Modelling of 4Th generation district heating systems integrated with different thermal energy storage technologies—Methodology. Energy Convers. Manag. 2023, 276, 116545. [Google Scholar] [CrossRef]
  10. Chen, J.; Lv, H.; Ding, L.; Zhang, K.; Lai, Z.; Chenglong, H. Quasi-dynamic modeling and simulation of district heating systems: A Laplace Transform-Based Approach. Energy Rep. 2024, 11, 2794–2804. [Google Scholar] [CrossRef]
  11. Dalla Rosa, A.; Li, H.; Svendsen, S. Modeling transient heat transfer in small-size twin pipes for end-user connections to low-energy district heating networks. Heat. Transf. Eng. 2013, 34, 372–384. [Google Scholar] [CrossRef]
  12. Sartor, K.; Dewalef, P. Experimental validation of heat transport modelling in district heating networks. Energy 2017, 137, 961–968. [Google Scholar] [CrossRef]
  13. Schweiger, G.; Larsson, P.; Magnusson, F.; Lauenburg, P.; Velut, S. District heating and cooling systems–Framework for Modelica-based simulation and dynamic optimization. Energy 2017, 137, 566–578. [Google Scholar] [CrossRef]
  14. Van der Heijde, B.; Aertgeerts, A.; Helsen, L. Modelling steady-state thermal behaviour of double thermal network pipes. Int. J. Therm. Sci. 2017, 117, 316–327. [Google Scholar] [CrossRef]
  15. Zhang, S.; Gu, W.; Yao, S.; Lu, S.; Zhou, S.; Wu, Z. Partitional decoupling method for fast calculation of energy flow in a large-scale heat and electricity integrated energy system. IEEE Trans. Sustain. Energy 2020, 12, 501–513. [Google Scholar] [CrossRef]
  16. Pass, R.Z.; Wetter, M.; Piette, M.A. A thermodynamic analysis of a novel bidirectional district heating and cooling network. Energy 2018, 144, 20–30. [Google Scholar] [CrossRef]
  17. Guelpa, E.; Verda, V. Compact physical model for simulation of thermal networks. Energy 2019, 175, 998–1008. [Google Scholar] [CrossRef]
  18. Stevanovic, V.D.; Zivkovic, B.; Prica, S.; Maslovaric, B.; Karamarkovic, V.; Trkulja, V. Prediction of thermal transients in district heating systems. Energ. Convers. Manag. 2009, 50, 2167–2173. [Google Scholar] [CrossRef]
  19. Denarie, A.; Aprile, M.; Motta, M. Heat transmission over long pipes: New model for fast and accurate district heating simulations. Energy 2019, 166, 267–276. [Google Scholar] [CrossRef]
  20. Jackson, J.D. Classical Electrodynamics, 3rd ed.; John Wiley & Sons: Hoboken, NJ, USA, 1998; p. 39. [Google Scholar]
  21. Fetter, A.L.; Walecka, J.D. Green’s Functions and Field Theory (Fermions). In Quantum Theory of Many-Particle Systems, 1st ed.; McGraw-Hill: New York, NY, USA, 1971; pp. 64–82. [Google Scholar]
  22. Cole, K.D.; Beck, J.V.; Haji-Sheikh, A.; Litkouhi, B. Introduction to Green’s Functions. In Heat Conduction Using Green’s Functions, 2nd ed.; Taylor and Francis: London, UK, 2011; pp. 1–46. [Google Scholar]
  23. Beck, J.V. Green’s function solution for transient heat conduction problems. Int. J. Heat. Mass. Tran. 1984, 27, 1235–1244. [Google Scholar] [CrossRef]
  24. Cole, K.D. Fast-converging series for heat conduction in the circular cylinder. J. Eng. Math. 2004, 49, 217–232. [Google Scholar] [CrossRef]
  25. Cole, K.D.; Yen, D.H. Green’s functions, temperature and heat flux in the rectangle. Int. J. Heat. Mass. Tran. 2001, 44, 3883–3894. [Google Scholar] [CrossRef]
  26. Giraud, L.; Bavière, R.; Vallée, M.; Paulus, C. Presentation, validation and application of the District Heating Modelica library. In Proceedings of the 11th International Modelica Conference, Versailles, France, 21 September 2015. [Google Scholar]
  27. Van der Heijde, B.; Fuchs, M.; Ribas Tugores, C.; Schweiger, G.; Sartor, K.; Basciotti, D.; Müller, D.; Nytsch-Geusen, C.; Wetter, M.; Helsen, L. Dynamic equation-based thermo-hydraulic pipe model for district heating and cooling systems. Energ. Convers. Manag. 2017, 151, 158–169. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of a district heating network. The red peak represents a heat pulse originating from the central heat source and propagating through the supply pipeline, while the blue valleys represent cooling pulses generated by heat consumers and traveling through the return pipeline.
Figure 1. Schematic diagram of a district heating network. The red peak represents a heat pulse originating from the central heat source and propagating through the supply pipeline, while the blue valleys represent cooling pulses generated by heat consumers and traveling through the return pipeline.
Energies 18 02627 g001
Figure 2. (a) Schematic diagram of the closed-loop heating system analyzed in Section 3.1. (b) Time-dependent variation of the boiler’s heating power P S and P L 2 . (c) Inlet and outlet temperatures of the supply and return pipelines as functions of time, computed using the Green’s function method (solid lines) and the finite element method (dashed lines).
Figure 2. (a) Schematic diagram of the closed-loop heating system analyzed in Section 3.1. (b) Time-dependent variation of the boiler’s heating power P S and P L 2 . (c) Inlet and outlet temperatures of the supply and return pipelines as functions of time, computed using the Green’s function method (solid lines) and the finite element method (dashed lines).
Energies 18 02627 g002
Figure 3. (a) Schematic diagram of a heating network with two heat load units. (b) Time-dependent variation of the heat load powers P L 1 . (c) Outlet temperatures T A and T B as functions of time, computed using the Green’s function method (solid lines) and the finite element method (dashed lines). The red line represents the temperature of node A for reference. (d) Temperature of node D as a function of time, calculated using the Green’s function method (solid lines) and the finite element method (dashed lines). The red line indicates the temperature of node A for reference.
Figure 3. (a) Schematic diagram of a heating network with two heat load units. (b) Time-dependent variation of the heat load powers P L 1 . (c) Outlet temperatures T A and T B as functions of time, computed using the Green’s function method (solid lines) and the finite element method (dashed lines). The red line represents the temperature of node A for reference. (d) Temperature of node D as a function of time, calculated using the Green’s function method (solid lines) and the finite element method (dashed lines). The red line indicates the temperature of node A for reference.
Energies 18 02627 g003
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xu, K.; Ai, D.; Sun, C.; Qi, Y.; Wang, J.; Yang, F.; Ren, H. Green’s Function Approach for Simulating District Heating Networks. Energies 2025, 18, 2627. https://doi.org/10.3390/en18102627

AMA Style

Xu K, Ai D, Sun C, Qi Y, Wang J, Yang F, Ren H. Green’s Function Approach for Simulating District Heating Networks. Energies. 2025; 18(10):2627. https://doi.org/10.3390/en18102627

Chicago/Turabian Style

Xu, Ke, Dengxin Ai, Changlong Sun, Yan Qi, Jiaojiao Wang, Fan Yang, and Hechen Ren. 2025. "Green’s Function Approach for Simulating District Heating Networks" Energies 18, no. 10: 2627. https://doi.org/10.3390/en18102627

APA Style

Xu, K., Ai, D., Sun, C., Qi, Y., Wang, J., Yang, F., & Ren, H. (2025). Green’s Function Approach for Simulating District Heating Networks. Energies, 18(10), 2627. https://doi.org/10.3390/en18102627

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop